forked from ericgio/react-bootstrap-typeahead
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
54 lines (54 loc) · 1.51 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
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"mocha": true
},
"extends": "eslint:recommended",
"ecmaFeatures": {
"jsx": true,
},
"globals": {},
"parser": "babel-eslint",
"plugins": [
"react"
],
"rules": {
"array-bracket-spacing": [1, "never"],
"arrow-parens": [2, "as-needed"],
"comma-spacing": [1, {"before": false, "after": true}],
"computed-property-spacing": [1, "never"],
"comma-dangle": [2, "always-multiline"],
"eqeqeq": [2, "allow-null"],
"indent": [2, 2, {"SwitchCase": 1}],
"jsx-quotes": [1, "prefer-double"],
"key-spacing": [1, {"beforeColon": false, "afterColon": true}],
"linebreak-style": [2, "unix"],
"max-len": [1, 80, 2, {
"ignorePattern": "\\s.+=\\s*require\\s*\\(",
"ignoreUrls": true
}],
"no-case-declarations": 0,
"no-debugger": 2,
"no-undef": 2,
"no-unreachable": 2,
"no-unused-vars": [2, {"args": "none"}],
"object-curly-spacing": [1, "never"],
"quotes": [2, "single", "avoid-escape"],
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/react-in-jsx-scope": 2,
"react/jsx-closing-bracket-location": [1, {
"nonEmpty": "after-props",
"selfClosing": "tag-aligned"
}],
"react/jsx-no-undef": 2,
"react/jsx-key": 1,
"react/jsx-sort-props": [1, {"ignoreCase": true}],
"react/no-direct-mutation-state": 2,
"semi": [2, "always"],
"space-before-function-paren": [1, "never"],
"space-in-parens": [1, "never"],
},
}