forked from react-bootstrap/react-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
110 lines (110 loc) · 2.61 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
98
99
100
101
102
103
104
105
106
107
108
109
110
{
"extends": ["eslint-config-airbnb", "prettier"],
"env": {
"browser": true
},
"globals": {
"__DEV__": false
},
"parser": "babel-eslint",
"plugins": [
"react",
"prettier"
],
"rules": {
"max-len": "off",
"no-plusplus": "off",
"prefer-const": "off",
"one-var": "off",
"no-param-reassign": "off",
"no-mixed-operators": ["error", {
"groups": [
["&", "|", "^", "~", "<<", ">>", ">>>"],
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
["&&", "||"],
["in", "instanceof"]
],
"allowSamePrecedence": false
}],
"class-methods-use-this": "off",
"no-underscore-dangle": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"react/forbid-prop-types": "off",
"react/jsx-boolean-value": 2,
"react/jsx-no-duplicate-props": 2,
"react/no-find-dom-node": "off",
"react/no-array-index-key": "off",
"react/no-string-refs": "off",
"react/prefer-stateless-function": "off",
"react/jsx-filename-extension": ["error", {
"extensions": [".js"]
}],
"react/prop-types": [2, { "ignore": [
"children",
"className",
"style",
"bsStyle",
"bsClass",
"bsSize"
]
}],
"react/require-default-props": "off",
"import/no-extraneous-dependencies": [
"error", {"devDependencies": ["!src/**/*.js"] }
],
"no-restricted-syntax": ["error",
"ForOfStatement",
"LabeledStatement",
"WithStatement"
]
},
"overrides": [
{
"files": ["tools/*"],
"env": {
"node": true,
"browser": false
},
"rules": {
"global-require": "off",
"no-console": "off"
}
},
{
"files": ["test/*"],
"rules": {
"no-return-assign": "off",
"global-require": "off",
"no-console": "off",
"react/no-render-return-value": "off",
"jsx-a11y/aria-role": "off",
"jsx-a11y/alt-text": "off",
"jsx-a11y/tabindex-no-positive": "off",
"jsx-a11y/no-static-element-interactions": "off",
"import/first": "off"
}
},
{
"files": ["www/src/**/*"],
"globals": {
"graphql": false
},
"rules": {
"global-require": "off",
"no-console": "off",
"react/no-unescaped-entities": "off",
"react/prop-types": "off",
"import/no-webpack-loader-syntax": "off"
},
"settings": {
"import/core-modules": "react-bootstrap"
}
},
{
"files": ["www/src/examples/*"],
"rules": {
"comma-dangle": "off"
}
}
]
}