From: Jérôme Benoit Date: Sat, 5 Mar 2022 21:55:03 +0000 (+0100) Subject: Refine eslint configuration X-Git-Tag: v2.2.1~92 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=e99dbb6932ed5548a9bdf3497a00539a143a23a7;p=poolifier.git Refine eslint configuration Signed-off-by: Jérôme Benoit --- diff --git a/.eslintrc.js b/.eslintrc.js index 15fcb940..a6a077fa 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -112,7 +112,7 @@ module.exports = defineConfig({ } }, { - files: ['*.js'], + files: ['**/*.js'], extends: 'plugin:node/recommended', rules: { '@typescript-eslint/no-unused-vars': 'off', diff --git a/.gitignore b/.gitignore index d3b8590e..8ddca4be 100644 --- a/.gitignore +++ b/.gitignore @@ -53,6 +53,7 @@ build/config.gypi .DS_Store # Project specifics +.eslintcache .history/ .scannerwork lib diff --git a/package.json b/package.json index 0d95853c..10212b7f 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,8 @@ "coverage": "nyc report --reporter=lcov", "coverage:html": "nyc report --reporter=html", "format": "prettier --loglevel silent --write .; prettierx --write .", - "lint": "eslint .", - "lint:fix": "eslint . --fix", + "lint": "eslint . --cache", + "lint:fix": "eslint . --cache --fix", "typedoc": "typedoc", "prepublishOnly": "npm run build:prod" },