-
Notifications
You must be signed in to change notification settings - Fork 152
/
.eslintrc
53 lines (53 loc) · 1.4 KB
/
.eslintrc
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
47
48
49
50
51
52
53
{
"extends": [
"eslint:recommended",
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:cypress/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime"
],
"env": {
"node": true,
"browser": true,
"jest": true
},
"settings": {
"react": {
"version": "detect"
}
},
"globals": {
"page": true
},
"ignorePatterns": ["prism-langs.ts", "**/dist/**/*", "**/build/**/*", "**/node_modules/**/*", "**/public/**/*", "**/.docusaurus/**/*"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["react", "react-hooks", "prettier", "@typescript-eslint"],
"rules": {
"max-params": 0,
"max-statements": 0,
"react/react-in-jsx-scope": "off",
"react/jsx-uses-react": "off",
"no-invalid-this": 0,
"no-magic-numbers": 0,
"no-unused-expressions": 0,
"prettier/prettier": "error",
"react/no-multi-comp": 0,
"react/prefer-es6-class": 0,
"react/prop-types": 0,
"react/sort-prop-types": 0,
"react/no-string-refs": 0,
"@typescript-eslint/no-unused-vars": ["error", { "ignoreRestSiblings": true }],
"react/no-did-update-set-state": 0,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"@typescript-eslint/no-var-requires": 0
},
}