eslint should lint its own config file

This commit is contained in:
Greg Shuflin 2022-05-01 16:13:18 -07:00
parent 43cb50c09b
commit c612e5329a
2 changed files with 31 additions and 31 deletions

View File

@ -4,8 +4,8 @@ module.exports = {
es2021: true,
},
extends: [
'plugin:react/recommended',
'xo',
"plugin:react/recommended",
"xo",
],
parser: "@typescript-eslint/parser",
parserOptions: {
@ -13,20 +13,20 @@ module.exports = {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
sourceType: "module",
},
plugins: [
'react',
"@typescript-eslint"
"react",
"@typescript-eslint",
],
rules: {
"arrow-parens": ["error", "always"],
"indent": ["error", 4],
indent: ["error", 4],
"unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/no-unused-vars": ["error", {argsIgnorePattern: "^_"}],
"no-redeclare": "off",
"@typescript-eslint/no-redeclare": ["error"],
"quotes": ["error", "double"],
"no-warning-comments": "off"
quotes: ["error", "double"],
"no-warning-comments": "off",
},
};

View File

@ -11,8 +11,8 @@
"build": "parcel build index.html --no-source-maps --detailed-report",
"prebuild": "yarn run typecheck",
"typecheck": "tsc --noEmit --jsx preserve",
"lint": "eslint --ext .ts,.tsx src",
"lint-fix": "eslint --ext .ts,.tsx src --fix"
"lint": "eslint --ext .ts,.tsx,.js .",
"lint-fix": "eslint --ext .ts,.tsx,.js . --fix"
},
"devDependencies": {
"@parcel/transformer-image": "2.0.0-rc.0",