Skip to content

Commit 13a0ad0

Browse files
authored
Specify --ignore-path for ESLint (#1443)
Otherwise, all files are included
1 parent e8d563c commit 13a0ad0

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

package.json

+2-6
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
],
5151
"scripts": {
5252
"test": "c8 --reporter=html --reporter=text mocha \"test/*/_index.js\" \"**/*.test.js\" --ignore=\"node_modules/**\"",
53-
"lint": "eslint . && prettier --list-different \"**/*.js\" --ignore-path .gitignore",
54-
"fix": "eslint . --fix && prettier --write \"**/*.js\" --ignore-path .gitignore",
53+
"lint": "eslint --ignore-path .gitignore . && prettier --list-different \"**/*.js\" --ignore-path .gitignore",
54+
"fix": "eslint --ignore-path .gitignore --fix . && prettier --write \"**/*.js\" --ignore-path .gitignore",
5555
"typecheck": "tsc",
5656
"test-browser": "rollup -c && node ./test/browser.js",
5757
"test-regression": "NO_DIFF=1 node ./test/regression.js",
@@ -61,10 +61,6 @@
6161
"singleQuote": true
6262
},
6363
"eslintConfig": {
64-
"ignorePatterns": [
65-
"dist",
66-
"fixtures"
67-
],
6864
"parserOptions": {
6965
"ecmaVersion": "2021"
7066
},
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = { plugins };
1+
module.exports = { plugins }; // eslint-disable-line no-undef

0 commit comments

Comments
 (0)