forked from fga-eps-mds/2019.2-Gymnasteg-Frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
45 lines (44 loc) · 1.08 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
{
"parser": "babel-eslint",
"extends": "airbnb",
"rules": {
"indent": ["warn", 2],
"function-paren-newline": "off",
"no-console": ["error", { "allow": ["info", "warn", "error"] }],
"class-methods-use-this": "off",
"object-curly-newline": "off",
"implicit-arrow-linebreak": "off",
"react/jsx-indent": ["warn", 2],
"react/jsx-indent-props": ["warn", 2],
"react/jsx-filename-extension": "off",
"camelcase": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-props-no-spreading": "off",
"jsx-a11y/no-noninteractive-element-to-interactive-role": "off",
"max-len": [
"error",
80,
2,
{
"ignorePattern": "^import\\s.+\\sfrom\\s.+;$",
"ignoreUrls": true
}
]
},
"env": {
"browser": true
},
"overrides": [
{
"files": ["src/**/*.test.js", "src/**/*.test.jsx", "__mocks__/**/*.js"],
"rules": {
"import/no-extraneous-dependencies": "off",
"global-require": "off"
},
"env": {
"browser": false,
"jest": true
}
}
]
}