-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
78 lines (78 loc) · 1.93 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"es6": true
},
"extends": [
"google",
"prettier",
"plugin:react/recommended",
"prettier/react"
],
"rules": {
"linebreak-style": "off",
"eol-last": "off",
"max-len": "off",
"one-var": "off",
"no-use-before-define": ["warn", { "functions": true, "classes": true }],
"no-warning-comments": "off",
"brace-style": "off",
"no-nested-ternary": "off",
"no-mixed-requires": "off",
"no-negated-condition": "off",
"no-tabs": "off",
"camelcase": "off",
"new-cap": "off",
"no-mixed-spaces-and-tabs": "off",
"quote-props": "off",
"space-before-function-paren": "off",
"guard-for-in": "off",
"max-nested-callbacks": "off",
"no-unmodified-loop-condition": "off",
"comma-dangle": "off",
"require-jsdoc": "off",
"arrow-parens": "off",
"prettier/prettier": "error",
"react/jsx-indent": "off",
"react/jsx-uses-vars": "error",
"react/jsx-uses-react": "error",
"react/jsx-indent-props": "off",
"react/no-unescaped-entities": "off",
"react/prop-types": "off",
"react/no-deprecated": "off",
"object-curly-spacing": "off",
"array-bracket-spacing": "off",
"no-invalid-this": 0,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-unused-vars": "error",
"no-unused-vars": "off"
},
"globals": {
"io": true,
"app": true,
"document": true,
"window": true,
"expect": true,
"describe": true,
"it": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020,
"ecmaFeatures": {
"jsx": true,
"tsx": true
}
},
"plugins": ["react", "react-hooks", "prettier", "@typescript-eslint"],
"settings": {
"react": {
"createClass": "createReactClass",
"version": "detect"
}
}
}