This repository has been archived by the owner on Jul 12, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.eslintrc.json
103 lines (103 loc) · 2.7 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"root": true,
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"es6": true
// "worker": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"babel",
"react"
],
"extends": "airbnb",
"rules": {
"no-nested-ternary": "off",
"class-methods-use-this": "off",
"consistent-return": "off",
"global-require": "off",
"import/extensions": "off",
"import/no-duplicates": "off",
"import/no-dynamic-require": "off",
"import/no-extraneous-dependencies": "off",
"import/no-named-as-default": "off",
"import/no-named-as-default-member": "off",
"import/no-unresolved": "off",
"jsx-a11y/anchor-has-content": "off",
"jsx-a11y/anchor-is-valid": [
"warn",
{
"aspects": [
"invalidHref"
]
}
],
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/interactive-supports-focus": "off",
"jsx-a11y/label-has-for": [ 2, {
"required": {
"every": [ "id" ]
}
}],
"jsx-a11y/no-static-element-interactions": "off",
"linebreak-style": "off",
"max-len": "off",
"no-bitwise": "off",
"no-console": "error",
"no-control-regex": "off",
"no-debugger": "off",
"no-else-return": "off",
"no-param-reassign": "off",
"no-trailing-spaces": "off",
"no-unused-vars": "off",
"prefer-destructuring": "off",
"operator-linebreak": "off",
"react/jsx-wrap-multilines": "off",
"react/jsx-closing-tag-location": "off",
"react/no-access-state-in-setstate": "off",
"object-curly-newline": "off",
"lines-between-class-members": "off",
"implicit-arrow-linebreak": "off",
"no-template-curly-in-string": "off",
"function-paren-newline": "off",
"eact/jsx-closing-tag-location": "off",
"react/no-unused-state": "off",
"react/destructuring-assignment": "off",
"react/jsx-filename-extension": "off",
"react/jsx-no-target-blank": "off",
"react/button-has-type": "off",
"react/jsx-no-bind": [
"error",
{
"ignoreRefs": true,
"allowArrowFunctions": true,
"allowBind": true
}
],
"react/jsx-one-expression-per-line": "off",
"react/no-array-index-key": 0,
"react/no-unused-prop-types": "off",
"react/prefer-stateless-function": ["off",
{
"ignorePureComponents": true
}
],
"react/prop-types": "off",
"react/require-default-props": "off",
"react/sort-comp": "off",
"react/jsx-curly-brace-presence": "off",
"jsx-a11y/label-has-associated-control": "off"
},
"globals": {
"Choerodon": true
}
}