-
Notifications
You must be signed in to change notification settings - Fork 24
/
.eslintrc.json
88 lines (88 loc) · 2.99 KB
/
.eslintrc.json
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
85
86
87
88
{
"extends": [
"airbnb",
"plugin:eslint-comments/recommended",
"plugin:flowtype/recommended",
"plugin:react/recommended",
"prettier",
"prettier/flowtype",
"prettier/react"
],
"plugins": ["react", "react-hooks", "import", "flowtype", "flow-header"],
"parserOptions": {
"ecmaVersion": 8
},
"env": {
"browser": true
},
"parser": "babel-eslint",
"settings": {
"import/resolver": "webpack",
"import/ignore": ["$three.*"],
"import/core-modules": ["three"]
},
"globals": {
"ga": false,
"browser": false,
"routes": false,
"jsRoutes": false,
"JQuery": false,
"SyntheticInputEvent": false,
"$Keys": false,
"$Subtype": false,
"Generator": false
},
"rules": {
"array-callback-return": "warn",
"class-methods-use-this": "off",
"eslint-comments/disable-enable-pair": ["error", { "allowWholeFile": true }],
"eslint-comments/no-unused-disable": "error",
"flowtype/no-types-missing-file-annotation": "off",
"import/extensions": ["warn", { "js": "never", "jsx": "always" }],
"import/no-cycle": "off",
"import/no-named-as-default-member": "warn",
"import/no-unresolved": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/label-has-for": "off",
"lines-between-class-members": ["warn", "always", { "exceptAfterSingleLine": true }],
"max-len": ["off", 100],
"no-bitwise": "off",
"no-confusing-arrow": "off",
"no-continue": "warn",
"no-duplicate-imports": "off",
"no-else-return": "off",
"no-mixed-operators": "off",
"no-multi-str": "off",
"no-param-reassign": "warn",
"no-plusplus": "off",
"no-restricted-properties": ["off", { "object": "Math", "property": "pow" }],
"no-restricted-syntax": "warn",
"no-restricted-syntax": ["error", "ForInStatement"],
"no-restricted-globals": "warn",
"no-underscore-dangle": "off",
"no-unused-vars": ["error", { "argsIgnorePattern": "^_", "ignoreRestSiblings": true }],
"no-use-before-define": ["error", { "functions": false, "classes": false }],
"one-var": ["error", "never"],
"operator-assignment": "warn",
"prefer-destructuring": "warn",
"quote-props": ["error", "as-needed", { "numbers": true }],
"quotes": ["error", "double", { "avoidEscape": true }],
"radix": "off",
"react/default-props-match-prop-types": ["error", { "allowRequiredDefaults": true }],
"react/destructuring-assignment": "off",
"react/jsx-filename-extension": "off",
"react/no-multi-comp": "off",
"react/prop-types": "off",
"react/require-default-props": "off",
"react-hooks/rules-of-hooks": "error",
"import/newline-after-import": "off",
"flow-header/flow-header": "error",
"react/sort-comp": [
"error",
{ "order": ["type-annotations", "static-methods", "lifecycle", "everything-else", "render"] }
]
}
}