eslint should lint its own config file
This commit is contained in:
parent
43cb50c09b
commit
c612e5329a
18
.eslintrc.js
18
.eslintrc.js
@ -4,8 +4,8 @@ module.exports = {
|
|||||||
es2021: true,
|
es2021: true,
|
||||||
},
|
},
|
||||||
extends: [
|
extends: [
|
||||||
'plugin:react/recommended',
|
"plugin:react/recommended",
|
||||||
'xo',
|
"xo",
|
||||||
],
|
],
|
||||||
parser: "@typescript-eslint/parser",
|
parser: "@typescript-eslint/parser",
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
@ -13,20 +13,20 @@ module.exports = {
|
|||||||
jsx: true,
|
jsx: true,
|
||||||
},
|
},
|
||||||
ecmaVersion: 12,
|
ecmaVersion: 12,
|
||||||
sourceType: 'module',
|
sourceType: "module",
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
'react',
|
"react",
|
||||||
"@typescript-eslint"
|
"@typescript-eslint",
|
||||||
],
|
],
|
||||||
rules: {
|
rules: {
|
||||||
"arrow-parens": ["error", "always"],
|
"arrow-parens": ["error", "always"],
|
||||||
"indent": ["error", 4],
|
indent: ["error", 4],
|
||||||
"unused-vars": "off",
|
"unused-vars": "off",
|
||||||
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
|
"@typescript-eslint/no-unused-vars": ["error", {argsIgnorePattern: "^_"}],
|
||||||
"no-redeclare": "off",
|
"no-redeclare": "off",
|
||||||
"@typescript-eslint/no-redeclare": ["error"],
|
"@typescript-eslint/no-redeclare": ["error"],
|
||||||
"quotes": ["error", "double"],
|
quotes: ["error", "double"],
|
||||||
"no-warning-comments": "off"
|
"no-warning-comments": "off",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
"build": "parcel build index.html --no-source-maps --detailed-report",
|
"build": "parcel build index.html --no-source-maps --detailed-report",
|
||||||
"prebuild": "yarn run typecheck",
|
"prebuild": "yarn run typecheck",
|
||||||
"typecheck": "tsc --noEmit --jsx preserve",
|
"typecheck": "tsc --noEmit --jsx preserve",
|
||||||
"lint": "eslint --ext .ts,.tsx src",
|
"lint": "eslint --ext .ts,.tsx,.js .",
|
||||||
"lint-fix": "eslint --ext .ts,.tsx src --fix"
|
"lint-fix": "eslint --ext .ts,.tsx,.js . --fix"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@parcel/transformer-image": "2.0.0-rc.0",
|
"@parcel/transformer-image": "2.0.0-rc.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user