-
-
Notifications
You must be signed in to change notification settings - Fork 2k
/
.eslintrc
78 lines (78 loc) · 1.96 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
{
"extends": "airbnb",
"root": true,
"env": {
"node": true,
},
"parser": "@babel/eslint-parser",
"ignorePatterns": [
"/build",
"_book",
"packages/*/build/",
// Temporarily copied
"packages/*/LICENSE.md",
"packages/enzyme/README.md",
"packages/enzyme-adapter-react-*/README.md",
"packages/enzyme-adapter-utils*/README.md",
],
"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/**"
],
"extends": ["plugin:markdown/recommended"],
"rules": {
"class-methods-use-this": 0,
"import/extensions": 0,
"import/no-extraneous-dependencies": 0,
"import/no-unresolved": 0,
"import/prefer-default-export": 0,
"max-len": 0,
"no-console": 0,
"no-undef": 0,
"no-unused-vars": 0,
"react/jsx-filename-extension": 0,
"react/jsx-fragments": 0,
"react/jsx-no-undef": 0,
"react/jsx-no-useless-fragment": 0,
"react/jsx-one-expression-per-line": 0,
"react/no-multi-comp": 0,
"react/no-unknown-property": 0,
"react/no-unused-class-component-methods": 0,
"react/react-in-jsx-scope": 0,
},
},
],
}