Skip to content

Commit

Permalink
remove react & web spesific plugin/rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ryota-murakami committed Nov 12, 2022
1 parent e4c5b36 commit 072ccad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
19 changes: 2 additions & 17 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,11 @@ module.exports = {
jest: true,
node: true,
},
extends: ['plugin:jsx-a11y/recommended'],
globals: {
JSX: 'readonly',
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
},
plugins: [
'jsx-a11y',
'import',
'sort-keys-fix',
'react-hooks',
'@typescript-eslint',
'prettier',
],
plugins: ['import', 'sort-keys-fix', '@typescript-eslint', 'prettier'],
root: true,
rules: {
'@typescript-eslint/consistent-type-imports': 'warn',
Expand Down Expand Up @@ -69,7 +58,6 @@ module.exports = {
},
},
],
'react-hooks/rules-of-hooks': 'error',
'sort-keys-fix/sort-keys-fix': 'warn',
},
settings: {
Expand All @@ -78,16 +66,13 @@ module.exports = {
},
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
extensions: ['.mjs', '.js', '.jsx', '.ts', '.tsx'],
},
typescript: {
alwaysTryTypes: true,
// always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
project: ['tsconfig.json'],
},
},
react: {
version: 'detect',
},
},
}
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
"eslint-config-prettier": "^8.5.0",
"eslint-import-resolver-typescript": "^2.7.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-sort-keys-fix": "^1.1.2",
"prettier": "^2.7.1"
},
Expand Down

0 comments on commit 072ccad

Please sign in to comment.