-
Notifications
You must be signed in to change notification settings - Fork 107
/
.eslintrc
84 lines (84 loc) · 2.42 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
79
80
81
82
83
84
{
"env": {
"browser": true,
"node": true,
"jest": true,
"es6": true
},
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["react", "prettier", "@typescript-eslint"],
"extends": ["eslint:recommended", "plugin:react/recommended", "prettier", "plugin:@typescript-eslint/recommended"],
"settings": {
"react": {
"createClass": "createReactClass",
"pragma": "React",
"version": "detect",
"flowVersion": "0.53"
}
},
"globals": {
"shallow": true
},
"rules": {
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/prefer-es6-class": [2],
"react/prop-types": "off",
"react/no-string-refs": "off",
"react/jsx-no-undef": "off",
"react/jsx-key": "off",
"react/react-in-jsx-scope": "off",
"no-case-declarations": "off",
"react/no-unescaped-entities": "off",
"linebreak-style": "off",
"no-unused-vars": ["error"],
"no-alert": "off",
"no-underscore-dangle": "off",
"vars-on-top": "off",
"space-before-function-paren": ["warn", "never"],
"no-mixed-operators": "off",
"key-spacing": "off",
"spaced-comment": "off",
"func-names": "off",
"padded-blocks": "off",
"quote-props": "off",
"one-var-declaration-per-line": "off",
"max-len": [1, 200, 2, { "ignoreComments": true }],
"object-curly-spacing": ["error", "always"],
"no-param-reassign": "off",
"one-var": "off",
"no-undef": "off",
"no-console": "off",
"comma-dangle": "off",
"no-multi-spaces": "off",
"no-prototype-builtins": "off",
"wrap-iife": ["error", "any"],
"no-use-before-define": "off",
"object-property-newline": "off",
"no-restricted-syntax": "off",
"no-else-return": "off",
"no-cond-assign": ["error", "except-parens"],
"space-infix-ops": ["warn", { "int32Hint": true }],
"no-nested-ternary": "off",
"global-require": "off",
"no-continue": "off",
"no-bitwise": "off",
"no-plusplus": "off",
"no-multi-assign": "off",
"react/no-unknown-property": "off",
"lines-between-class-members": ["off"],
"no-debugger": "warn",
"prettier/prettier": ["error"],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
}
}