-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
43 lines (43 loc) · 1.06 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
{
// Extend existing configuration d
// from ESlint and eslint-plugin-react defaults.
"extends": [
"eslint:recommended", "plugin:jest/recommended", "plugin:import/errors", "plugin:import/warnings"
],
// Enable ES6 support. If you want to use custom Babel
// features, you will need to enable a custom parser
// as described in a section below.
"parser": "babel-eslint",
"env": {
"node": true,
"es6": true,
"jest/globals": true
},
// Enable custom eslint-plugin-jest
"plugins": [
"jest"
],
"rules": {
// Disable `no-console` rule
"no-console": 0,
// Give a warning if identifiers contain underscores
"no-underscore-dangle": 1,
"no-trailing-spaces": ["error", { "skipBlankLines": true }],
"react/display-name": 0,
"react/prop-types": 0,
"indent": [
"error",
"tab",
{"SwitchCase": 1}
],
"linebreak-style": [
"error",
"unix"
],
"semi": [
"error",
"always"
],
"import/no-unresolved": [2, {"commonjs": true, "amd": true}]
}
}