forked from avocode/react-shortcuts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
97 lines (97 loc) · 2.03 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"parser": "babel-eslint",
"plugins": [
"import",
"react"
],
"extends": [ "airbnb" ],
"env": {
"browser": true,
"mocha": true,
"node": true
},
"rules": {
"array-bracket-spacing": 0,
"arrow-body-style": 0,
"comma-dangle": [ 2, "always-multiline" ],
"consistent-return": 0,
"default-case": 0,
"dot-notation": 0,
"func-names": 0,
"global-require": 0,
"import/default": 2,
"import/export": 2,
"import/imports-first": 0,
"import/named": 2,
"import/namespace": 2,
"import/no-extraneous-dependencies": [
"warn", {
"devDependencies": true
}
],
"import/no-unresolved": [
"error", {
"commonjs": true,
"amd": true
}
],
"import/prefer-default-export": 1,
"jsx-quotes": 0,
"new-cap": 0,
"max-len": 0,
"no-console": 0,
"no-fallthrough": 1,
"no-global-assign": 0,
"no-irregular-whitespace": [
"error", {
"skipStrings": true,
"skipTemplates": true,
"skipRegExps": true
}
],
"no-lonely-if": 0,
"no-param-reassign": 0,
"no-shadow": 1,
"no-underscore-dangle": 0,
"no-unsafe-negation": 0,
"no-unused-expressions": 0,
"no-unused-vars": [
"warn", {
"vars": "all",
"args": "none"
}
],
"no-use-before-define": [
"warn", {
"functions": false,
"classes": true
}
],
"quote-props": 0,
"react/no-find-dom-node": 1,
"react/prop-types": 1,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/prefer-stateless-function": 0,
"react/jsx-curly-spacing": 0,
"react/jsx-no-bind": 0,
"react/jsx-filename-extension": 0,
"semi": [ 2, "never" ],
},
"globals": {
"require": false,
"ga": false
},
"settings": {
"import/ignore": [
"node_modules",
"\\.json$"
],
"import/resolver": {
"webpack": {
"config": "webpack-js.config.js"
}
},
"import/parser": "babel-eslint",
}
}