This repository has been archived by the owner on Mar 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy path.eslintrc
80 lines (80 loc) · 2.12 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
{
"extends": "airbnb",
"parser": "babel-eslint",
"plugins": [
"babel",
"import",
"jsx-a11y",
"prefer-object-spread",
"react"
],
"parserOptions": {
"ecmaVersion": 6.5,
"ecmaFeatures": {
"jsx": true,
"modules": true,
"spread": true,
"experimentalObjectRestSpread": true
}
},
"settings": {
"import/parser": "babel-eslint",
},
"env": {
"es6": true,
"browser": true,
"node": true,
"mocha": true
},
"rules": {
"brace-style": [1, "1tbs", {"allowSingleLine": true}],
"eol-last": 0,
"global-require": 0,
"import/default": 2,
"import/named": 2,
"import/namespace": 2,
"import/no-duplicates": 2,
"import/no-extraneous-dependencies": ["error", {"devDependencies": ["**/*.story.js", "**/*.test.js", "./stories/index.js"]}],
"import/no-named-as-default": 2,
"import/no-unresolved": 2,
"import/prefer-default-export": 0,
"jsx-a11y/href-no-hash": 1,
"jsx-quotes": 1,
"max-len": [0, { "ignoreComments": true, "ignoreStrings": true }],
"no-alert": 0,
"no-console": 1,
"no-debugger": 1,
"no-lone-blocks": 0,
"no-multi-spaces": 0,
"no-trailing-spaces": 0,
"no-underscore-dangle": 0,
"no-unused-expressions": 0,
"no-var": 1,
"react/display-name": [ 1, {"ignoreTranspilerName": false }],
"react/forbid-prop-types": [1, {"forbid": ["any"]}],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/no-danger": 1,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/no-direct-mutation-state": 1,
"react/no-multi-comp": 1,
"react/no-set-state": 0,
"react/no-unknown-property": 1,
"react/no-unused-prop-types": [2, { "skipShapeProps": true }],
"react/prefer-es6-class": 1,
"react/prop-types": 1,
"react/react-in-jsx-scope": 1,
"react/require-extension": 1,
"react/self-closing-comp": 1,
"react/sort-comp": 1,
"react/wrap-multilines": 1,
"semi": [1, "always"]
},
"globals": {
"__DEV__": true,
"expect": true,
"assert": true,
"enzyme": true,
"sinon": true,
}
}