Refine eslint configuration
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 5 Mar 2022 21:55:03 +0000 (22:55 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 5 Mar 2022 21:55:03 +0000 (22:55 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.eslintrc.js
.gitignore
package.json

index 15fcb940ae0e8025076ceebc05196192d900e010..a6a077faf902fd0741234919af922213af7e9021 100644 (file)
@@ -112,7 +112,7 @@ module.exports = defineConfig({
       }
     },
     {
-      files: ['*.js'],
+      files: ['**/*.js'],
       extends: 'plugin:node/recommended',
       rules: {
         '@typescript-eslint/no-unused-vars': 'off',
index d3b8590e5d1dbce8eda34cc04c6e5a298eea2acc..8ddca4bea480b8dfb25dcd55fc9a35cce5820184 100644 (file)
@@ -53,6 +53,7 @@ build/config.gypi
 .DS_Store
 
 # Project specifics
+.eslintcache
 .history/
 .scannerwork
 lib
index 0d95853c30d00c2b50edebe3b8c9bb519d9b789c..10212b7f5bb098a11ff9d2c29eb762c6314c06ed 100644 (file)
@@ -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"
   },