forked from enzymejs/enzyme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
64 lines (64 loc) · 1.43 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
{
"extends": "airbnb",
"root": true,
"env": {
"node": true,
},
"rules": {
"id-length": 0,
"react/no-find-dom-node": 1,
"import/first": 0,
"max-len": 0,
},
"overrides": [
{ // things that run in older envs, without babel
"files": [
"env.js",
"karma.conf.js",
"since.js",
],
"rules": {
"import/no-extraneous-dependencies": [2, {
"devDependencies": true,
}],
"comma-dangle": [2, {
arrays: "always-multiline",
objects: "always-multiline",
imports: "always-multiline",
exports: "always-multiline",
functions: "ignore",
}],
"strict": [2, "safe"],
"prefer-destructuring": 0,
"prefer-template": 0,
},
"parserOptions": {
sourceType: "script",
},
},
{
"files": [
"*.md",
"**/*.md",
],
"plugins": [
"markdown"
],
"rules": {
"class-methods-use-this": 0,
"import/no-unresolved": 0,
"import/no-extraneous-dependencies": 0,
"import/extensions": 0,
"max-len": 0,
"no-unused-vars": 0,
"no-console": 0,
"no-undef": 0,
"react/react-in-jsx-scope": 0,
"react/jsx-filename-extension": 0,
"react/jsx-no-undef": 0,
"react/no-multi-comp": 0,
"react/jsx-one-expression-per-line": 0,
},
},
],
}