-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
45 lines (45 loc) · 1.11 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
module.exports = {
"extends": "airbnb",
"plugins": [
"react",
"jsx-a11y",
"import"
],
"env": {
"jquery": true,
"mocha": true
},
"rules": {
"no-unused-vars": "warn",
"no-undef": "warn",
"no-console": "off",
"no-param-reassign": "off",
"no-case-declarations": "off",
"comma-dangle": "off",
"no-plusplus": "off",
"arrow-parens": 'off',
"no-tabs": "off",
"func-names": "off",
"max-len": "off",
"no-multiple-empty-lines": "off",
"no-useless-escape": "off",
"consistent-return": "off",
"indent": ["error", "tab"],
"space-before-function-paren": ["error", "never"],
"arrow-body-style": "off",
"no-trailing-spaces": "off",
"class-methods-use-this": "off",
"eol-last": "off",
"react/jsx-indent": [2, "tab"],
// "react/jsx-indent": "off",
"react/prefer-stateless-function": [0],
"react/jsx-indent-props": [2, "tab"],
"react/self-closing-comp": ["error", {
"component": true,
"html": false
}],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/forbid-prop-types": [0],
"jsx-a11y/no-static-element-interactions": [0]
}
};