-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
91 lines (91 loc) · 2.45 KB
/
.eslintrc.js
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
module.exports = {
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-underscore-dangle': 'off',
'arrow-parens': 'off',
'react/jsx-fragments': 'off',
'react/jsx-props-no-spreading': 'off',
'react/state-in-constructor': 'off',
'react/no-unused-state': 1,
'no-use-before-define': 1,
'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-associated-control': 'off',
'jsx-a11y/label-has-for': 'off',
'jsx-a11y/no-noninteractive-element-interactions': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'linebreak-style': 'off',
'max-len': 'off',
'no-console': 'off',
'no-control-regex': 'off',
'no-debugger': 'error',
'no-else-return': 'off',
'no-param-reassign': 'off',
'no-trailing-spaces': 'off',
'no-unused-vars': 'warn',
'object-curly-newline': 'off',
'react/destructuring-assignment': 'off',
'react/forbid-prop-types': 'off',
'react/jsx-filename-extension': 'off',
'react/static-property-placement': 'off',
'react/jsx-no-bind': 'off',
// [
// "error",
// {
// "ignoreRefs": true,
// "allowArrowFunctions": true,
// "allowBind": true
// }
// ],
'react/jsx-one-expression-per-line': 'off',
'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',
indent: ['off', 2],
'template-curly-spacing': 'off',
},
globals: {
Choerodon: true,
},
};