forked from ericgio/react-bootstrap-typeahead
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
90 lines (89 loc) · 2.16 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
{
"env": {
"browser": true,
"mocha": true,
},
"extends": [
"airbnb",
],
"globals": {},
"parser": "babel-eslint",
"plugins": [
],
"rules": {
"arrow-parens": [2, "always"],
"comma-dangle": [2, {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore",
}],
"lines-between-class-members": [2, "always", {
"exceptAfterSingleLine": true,
}],
"max-len": [1, 80, 2, {
"ignorePattern": "^import\\s.+\\sfrom\\s.+;$",
"ignoreUrls": true,
}],
"no-plusplus": [2, {
"allowForLoopAfterthoughts": true,
}],
"no-underscore-dangle": [2, {
"allowAfterThis": true
}],
"no-unused-expressions": [2, {
"allowShortCircuit": true,
"allowTernary": true,
}],
"no-unused-vars": [2, {
"args": "none",
"ignoreRestSiblings": true
}],
"object-curly-newline": [2, {
"consistent": true,
"multiline": true,
}],
"object-curly-spacing": [2, "never"],
"operator-linebreak": [2, "after"],
"react/destructuring-assignment": 0,
"react/jsx-filename-extension": [2, {
"extensions": [".js", ".jsx"]
}],
"react/jsx-closing-bracket-location": [2, {
"nonEmpty": "after-props",
"selfClosing": "tag-aligned",
}],
"react/jsx-wrap-multilines": [2, {
"arrow": "parens-new-line",
"return": "parens-new-line",
"assignment": "ignore",
"condition": "ignore",
"declaration": "ignore",
"logical": "ignore",
"prop": "ignore"
}],
"react/sort-comp": [2, {
"order": [
"state",
"instance-variables",
"static-methods",
"lifecycle",
"render",
"everything-else"
],
}],
"sort-keys": [2, "asc", {
"caseSensitive": false,
"natural": true,
}],
"arrow-body-style": 0,
"import/no-webpack-loader-syntax": 0,
"no-return-assign": 0,
"one-var": 0,
"one-var-declaration-per-line": 0,
"react/jsx-one-expression-per-line": 0,
"react/prop-types": 0,
"react/require-default-props": 0,
},
}