-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
110 lines (110 loc) · 3.56 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"arrowFunctions": true,
"binaryLiterals": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"octalLiterals": true,
"regexUFlag": true,
"regexYFlag": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true,
"unicodeCodePointEscapes": true,
"globalReturn": true,
"jsx": true,
"legacyDecorators": true
}
},
"rules": {
"no-useless-escape": 1,
"no-extra-parens": 0,
"no-undef": 2,
"no-console": 1,
"no-unused-vars": [2, { "vars": "all", "args": "after-used", "ignoreRestSiblings": false }],
"no-invalid-this": 0,
"arrow-parens": [2, "as-needed", { "requireForBlockBody": false }],
"no-case-declarations": 1,
"quotes": [2, "single", {"avoidEscape": true, "allowTemplateLiterals": true}],
"react/display-name": 0,
"react/jsx-quotes": [0, "single"],
"react/jsx-no-undef": [2, { "allowGlobals": true }],
"react/jsx-sort-props": 0,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/no-string-refs": 2,
"react/no-did-mount-set-state": 2,
"react/no-did-update-set-state": 2,
"react/no-multi-comp": 2,
"react/no-unknown-property": 2,
"react/prop-types": 2,
"react/react-in-jsx-scope": 2,
"react/self-closing-comp": 2,
"react/wrap-multilines": [0, {"declaration": true, "assignment": true, "return": true, "arrow": true}],
"react/jsx-no-duplicate-props": 2,
"react/style-prop-object": 2,
"jsx-control-statements/jsx-choose-not-empty": 2,
"jsx-control-statements/jsx-for-require-each": 2,
"jsx-control-statements/jsx-for-require-of": 2,
"jsx-control-statements/jsx-if-require-condition": 2,
"jsx-control-statements/jsx-otherwise-once-last": 2,
"jsx-control-statements/jsx-use-if-tag": 2,
"jsx-control-statements/jsx-when-require-condition": 2,
"jsx-control-statements/jsx-jcs-no-undef": 2,
"flowtype/space-after-type-colon": [0, "newer"],
"flowtype/use-flow-type": 1,
"flowtype/valid-syntax": 2,
"flowtype/type-id-match": [2, "^([A-Z][a-z0-9]*)"],
"flowtype/require-return-type": [1, "always", {"annotateUndefined":"always", "excludeArrowFunctions": true, "excludeMatching": ["render"]}],
"flowtype/require-parameter-type": [1, {"excludeArrowFunctions": true}],
"flowtype/no-dupe-keys": 2,
"flowtype/no-types-missing-file-annotation": 0,
"max-len": 0,
"no-use-before-define": [2, { "functions": false, "classes": true, "variables": true }],
"prefer-const": 0,
"react-hooks/rules-of-hooks": 2
},
"env": {
"node": true,
"browser": true,
"es6": true,
"jasmine": true,
"jsx-control-statements/jsx-control-statements": true
},
"parser": "babel-eslint",
"plugins": [
"react",
"jsx-control-statements",
"flowtype",
"react-hooks"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:jsx-control-statements/recommended",
"plugin:flowtype/recommended",
"babel"
],
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": false
},
"react": {
"createClass": "createReactClass",
"pragma": "React",
"version": "16.0"
}
}
}