Skip to content

Commit 0f4fb45

Browse files
committed
Update .eslintrc
1 parent 535abd0 commit 0f4fb45

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

.eslintrc.js

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ const jest = {
22
files: ['src/**/*.test.{ts,tsx}'],
33
env: {
44
jest: true,
5+
node: true,
6+
browser: false,
57
},
68
}
79

@@ -23,16 +25,16 @@ module.exports = {
2325
},
2426
parser: '@typescript-eslint/parser',
2527
extends: [
28+
'prettier',
29+
'prettier/@typescript-eslint',
30+
'prettier/react',
31+
2632
'eslint:recommended',
2733
'plugin:@typescript-eslint/recommended',
2834
'plugin:react/recommended',
2935

3036
'plugin:import/errors',
3137
'plugin:import/warnings',
32-
33-
'prettier',
34-
'prettier/@typescript-eslint',
35-
'prettier/react',
3638
],
3739
plugins: ['react-hooks'],
3840
parserOptions: {
@@ -54,13 +56,24 @@ module.exports = {
5456
},
5557
},
5658
rules: {
57-
'react-hooks/rules-of-hooks': 2,
5859
'no-console': 0,
60+
'no-var': 2,
61+
'no-void': 2,
62+
'no-with': 2,
63+
'object-shorthand': 1,
64+
'prefer-arrow-callback': 2,
65+
'prefer-const': 2,
66+
'prefer-rest-params': 2,
67+
'prefer-spread': 2,
68+
69+
'react-hooks/rules-of-hooks': 2,
70+
5971
'@typescript-eslint/explicit-function-return-type': 0,
6072
'@typescript-eslint/member-delimiter-style': 0,
6173
'@typescript-eslint/indent': [2, 2],
6274
'@typescript-eslint/member-ordering': 2,
6375
'@typescript-eslint/explicit-member-accessibility': 0,
76+
6477
'import/first': 2,
6578
'import/newline-after-import': 2,
6679
},

0 commit comments

Comments
 (0)