Skip to content

Commit

Permalink
New lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Dec 20, 2023
1 parent 79d735a commit a435c03
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 432 deletions.
19 changes: 18 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,28 @@
module.exports = {
extends: ['react-app', 'plugin:prettier/recommended'],
extends: [
'plugin:prettier/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-type-checked',
'plugin:@typescript-eslint/stylistic-type-checked',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
],
settings: {
react: {
version: 'detect',
},
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
tsconfigRootDir: __dirname,
project: './tsconfig.json',
},
rules: {
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/no-unsafe-assignment': 0,
'@typescript-eslint/no-unused-vars': [
'warn',
{
Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,10 @@
"cypress": "^13.6.1",
"eslint": "^8.36.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-prettier": "^5.1.0",
"eslint-plugin-react": "^7.20.3",
"eslint-plugin-react-hooks": "^4.0.8",
"eslint-plugin-react-hooks": "^4.6.0",
"jest": "^29.7.0",
"mobx": "^6.0.0",
"mobx-react": "^9.1.0",
Expand Down
Loading

0 comments on commit a435c03

Please sign in to comment.