未验证 提交 13a0ad05 编写于 作者: X XhmikosR 提交者: GitHub

Specify --ignore-path for ESLint (#1443)

Otherwise, all files are included
上级 e8d563c1
......@@ -50,8 +50,8 @@
],
"scripts": {
"test": "c8 --reporter=html --reporter=text mocha \"test/*/_index.js\" \"**/*.test.js\" --ignore=\"node_modules/**\"",
"lint": "eslint . && prettier --list-different \"**/*.js\" --ignore-path .gitignore",
"fix": "eslint . --fix && prettier --write \"**/*.js\" --ignore-path .gitignore",
"lint": "eslint --ignore-path .gitignore . && prettier --list-different \"**/*.js\" --ignore-path .gitignore",
"fix": "eslint --ignore-path .gitignore --fix . && prettier --write \"**/*.js\" --ignore-path .gitignore",
"typecheck": "tsc",
"test-browser": "rollup -c && node ./test/browser.js",
"test-regression": "NO_DIFF=1 node ./test/regression.js",
......@@ -61,10 +61,6 @@
"singleQuote": true
},
"eslintConfig": {
"ignorePatterns": [
"dist",
"fixtures"
],
"parserOptions": {
"ecmaVersion": "2021"
},
......
module.exports = { plugins };
module.exports = { plugins }; // eslint-disable-line no-undef
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册