-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
116 lines (106 loc) · 3.54 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
111
112
113
114
115
116
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"import",
"jsx-a11y",
"react"
],
"root": true,
"rules": {
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "ignore",
"exports": "ignore",
"functions": "ignore"
}
],
"indent": ["warn", 4, { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
"no-console": "warn",
"no-dupe-args": "error",
"no-dupe-class-members": "error",
"no-dupe-keys": "error",
"no-redeclare": "error",
"no-undef": "error",
"no-unexpected-multiline": "error",
"no-unused-vars": ["warn", {"args": "all", "argsIgnorePattern": "^_"}],
"object-curly-newline": "off",
"quotes": ["error", "double"],
"require-atomic-updates": "off",
"semi": ["error", "never"],
"space-before-function-paren": ["error", "always"],
"strict": "off",
"import/first": "error",
"import/no-amd": "error",
"import/no-webpack-loader-syntax": "error",
"react/forbid-foreign-prop-types": "error",
"react/jsx-closing-bracket-location": ["error", "line-aligned"],
"react/jsx-indent-props": ["error", 4],
"react/jsx-no-duplicate-props": ["error", { "ignoreCase": false }],
"react/jsx-no-undef": "error",
"react/jsx-tag-spacing": ["error", { "beforeSelfClosing": "always" }],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/no-direct-mutation-state": "error",
"react/react-in-jsx-scope": "error",
"react/require-render-return": "error",
"react/sort-comp": ["error", {
"order": [
"static-methods",
"lifecycle",
"/^on.+$/",
"/^(get|set)(?!(InitialState$|DefaultProps$)).+$/",
"everything-else",
"/^render.+$/",
"render"
]
}],
"react/sort-prop-types": ["error", {
"ignoreCase": false,
"callbacksLast": true,
"requiredFirst": true
}],
"react/style-prop-object": "error",
"jsx-a11y/accessible-emoji": "warn",
"jsx-a11y/alt-text": "warn",
"jsx-a11y/anchor-has-content": "warn",
"jsx-a11y/aria-activedescendant-has-tabindex": "warn",
"jsx-a11y/aria-props": "warn",
"jsx-a11y/aria-proptypes": "warn",
"jsx-a11y/aria-role": "warn",
"jsx-a11y/aria-unsupported-elements": "warn",
"jsx-a11y/heading-has-content": "warn",
"jsx-a11y/iframe-has-title": "warn",
"jsx-a11y/img-redundant-alt": "warn",
"jsx-a11y/no-access-key": "warn",
"jsx-a11y/no-distracting-elements": "warn",
"jsx-a11y/no-redundant-roles": "warn",
"jsx-a11y/role-has-required-aria-props": "warn",
"jsx-a11y/role-supports-aria-props": "warn",
"jsx-a11y/scope": "warn"
},
"settings": {
"react": {
"pragma": "React",
"version": "16.8.4"
}
}
}