-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
51 lines (51 loc) · 1.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
{
"parser": "babel-eslint",
"plugins": ["react", "jsx-a11y", "import"],
"extends": ["eslint:recommended", "plugin:react/recommended"],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"allowImportExportEverywhere": true,
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"amd": true,
"es6": true,
"node": true,
"jest": true
},
"globals": {
"expect": true
},
"rules": {
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"comma-dangle": ["error", "always-multiline"],
"no-alert": "warn",
"no-console": "warn",
"no-extra-semi": "error",
"no-trailing-spaces": ["warn", { "skipBlankLines": true }],
"no-undef": "error",
"no-underscore-dangle": "off",
"no-unreachable": "warn",
"no-unused-vars": "error",
"quotes": ["error", "single"],
"react/require-render-return": "error",
"react/self-closing-comp": "error",
"react/jsx-boolean-value": "error",
"react/jsx-closing-bracket-location": ["error", "tag-aligned"],
"react/jsx-curly-spacing": ["error", "never"],
"react/jsx-no-bind": ["error", { "allowArrowFunctions": true }],
"react/jsx-pascal-case": "error",
"react/jsx-wrap-multilines": "error",
"react/jsx-tag-spacing": ["error", { "beforeSelfClosing": "always" }],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/prefer-es6-class": "warn",
"react/prefer-stateless-function": "warn",
"react/prop-types": ["warn", { "ignore": ["children"] }],
"semi": "error"
}
}