-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
47 lines (44 loc) · 1.34 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
46
47
module.exports = {
extends: "eslint-config-standard",
root: true,
parser: "babel-eslint",
parserOptions: {
sourceType: "module",
ecmaVersion: 8
},
ecmaFeatures: {
jsx: true,
},
plugins: ['react'],
rules: {
"space-before-function-paren": ["error", "never"],
"prefer-const": "warn",
"comma-dangle": ["error", "only-multiline"],
"space-infix-ops": "off", // Until eslint #7489 lands
"new-cap": "off",
"no-unused-vars": ["error", { "varsIgnorePattern": "^_" }],
"no-return-assign": "off",
"no-unused-expressions": "off",
"one-var": "off",
"new-parens": "off",
"indent": ["error", 2, {SwitchCase: 0}],
"arrow-body-style": ["warn", "as-needed"],
"no-unused-vars": "off",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/react-in-jsx-scope": "error",
"import/first": "off",
"operator-linebreak": "off",
// This rule enforces a comma-first style, such as
// npm uses. I think it's great, but it can look a bit weird,
// so we're leaving it off for now (although stock Bones passes
// the linter with it on). If you decide you want to enforce
// this rule, change "off" to "error".
"comma-style": ["off", "first", {
exceptions: {
ArrayExpression: true,
ObjectExpression: true,
}
}],
},
}