-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
60 lines (60 loc) · 1.48 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
{
"parser": "babel-eslint",
"extends": [
"eslint:recommended",
"airbnb"
],
"env": {
"browser": true,
"node": true,
"jest": true
},
"globals": {
"__OPTMEDIA__": true
},
"rules": {
"quotes": ["error", "double"],
"semi": ["error", "never"],
"padding-line-between-statements": ["error",
{ "blankLine": "always", "prev": ["const", "let"], "next": "*" },
{ "blankLine": "any", "prev": ["const", "let"], "next": ["const", "let"] },
{ "blankLine": "always", "prev": "return", "next": "*" }
],
"no-console": ["error", {
"allow": ["warn", "error"]
}],
"padded-blocks": ["error", {
"classes": "always"
}],
"no-underscore-dangle": ["error", {
"allow": [
"__OPTMEDIA__",
"_options"
]
}],
"no-param-reassign": ["error", {
"ignorePropertyModificationsFor": [
"Component"
]
}],
"react/jsx-props-no-spreading": ["error", {
"exceptions": [
"Component"
]
}],
"camelcase": ["error", {
"allow": [
"^plugin_",
"^settings_",
"drop_console",
"dead_code",
"elements_selector"
]
}],
"comma-dangle": ["error", "always-multiline"],
"react/static-property-placement": ["error", "static public field"],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"import/no-extraneous-dependencies": "off",
"react/forbid-foreign-prop-types": "off"
}
}