-
Notifications
You must be signed in to change notification settings - Fork 13
/
.eslintrc
49 lines (49 loc) · 1.74 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
{
"env": {
"es6": true,
"mocha": true
},
"parser": "babel-eslint",
"plugins": ["react"],
"extends": "airbnb",
"globals": {
"afterEach": false,
"afterAll": false,
"beforeEach": false,
"beforeAll": false,
"jest": false,
"document": false,
"window": false,
"global": false,
"require": false,
"expect": false,
"should": false,
"chai": false,
"sinon": false,
"__DEVELOPMENT__": false
},
"rules": {
"max-len": ["error", 100, { "ignoreComments": true }],
"comma-dangle": ["warn", "always-multiline"], // disallow or enforce trailing commas
"curly": ["warn", "multi-or-nest"], // specify curly brace conventions for all control statements
"indent": ["warn", 4, {"SwitchCase": 1}], // this option sets a specific tab width for your code (off by default)
"brace-style": ["warn", "1tbs", { "allowSingleLine": true }], // enforce one true brace style (off by default)
"key-spacing": ["warn", {"beforeColon": false, "afterColon": true}], // enforces spacing between keys and values in object literal properties
"quotes": ["warn", "single", "avoid-escape"], // specify whether double or single quotes should be used
"keyword-spacing": ["warn", {"before": true, "after": true}], // require a space after certain keywords (off by default)
"linebreak-style": [0],
"arrow-parens": [0],
"new-cap": [0],
"function-paren-newline": [0],
"object-curly-newline": [0],
// Import
"import/no-extraneous-dependencies": [0],
"import/prefer-default-export": [0],
// React
"react/require-extension": [0],
"react/prop-types": [0],
"react/jsx-filename-extension": [0],
"react/jsx-indent": ["warn", 4],
"react/jsx-indent-props": ["warn", 4]
}
}