-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
46 lines (45 loc) · 1.05 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 6,
sourceType: "module",
ecmaFeatures: {
jsx: true,
},
},
env: {
browser: true,
commonjs: true,
es6: true,
"jest/globals": true,
},
settings: {
react: {
version: "detect",
},
},
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "import", "jest", "react", "react-hooks"],
extends: [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
],
rules: {
eqeqeq: [2, "smart"],
"no-console": 2,
"no-alert": 2,
"no-unused-vars": 0,
"@typescript-eslint/no-unused-vars": [1, { argsIgnorePattern: "^_", ignoreRestSiblings: true }],
"import/order": 2,
"import/newline-after-import": 2,
"import/no-unresolved": 0,
// New JSX transforms
"react/jsx-uses-react": 0,
"react/react-in-jsx-scope": 0,
},
};