diff --git a/.eslintrc.js b/.eslintrc.js index 69da21bd6..40980292b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -18,7 +18,7 @@ module.exports = { 'rules': { "react/jsx-uses-react": "error", "react/jsx-uses-vars": "error", - "no-unused-vars": ["error", { "argsIgnorePattern": "event" }], + "no-unused-vars": ["error", { "argsIgnorePattern": "event|reject|resolve|prevState|snapshot|prevProps" }], "no-constant-condition": 0, "no-prototype-builtins": 0, "prettier/prettier": "error", diff --git a/package.json b/package.json index 6543388f3..6029c69f9 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,9 @@ "name": "joplin", "version": "1.0.0", "description": "[![Donate](https://joplinapp.org/images/badges/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=E8JMYD2LQ8MMA&lc=GB&item_name=Joplin+Development¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) [![Become a patron](https://joplinapp.org/images/badges/Patreon-Badge.svg)](https://www.patreon.com/joplin)", + "scripts": { + "linter": "./node_modules/.bin/eslint --fix --ext .js --ext .jsx" + }, "repository": { "type": "git", "url": "git+https://github.com/laurent22/joplin.git"