-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.js
48 lines (47 loc) · 1.89 KB
/
index.js
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
"use strict";
module.exports = {
environments: {
"jsx-control-statements": {
globals: {
"If": true,
"Else": true,
"For": true,
"When": true,
"Choose": true,
"Otherwise": true,
"With": true
}
}
},
rules: {
"jsx-choose-not-empty": require("./lib/rules/jsx-choose-not-empty"),
"jsx-for-require-each": require("./lib/rules/jsx-for-require-each"),
"jsx-for-require-of": require("./lib/rules/jsx-for-require-of"),
"jsx-for-require-body": require("./lib/rules/jsx-for-require-body"),
"jsx-if-require-condition": require("./lib/rules/jsx-if-require-condition"),
"jsx-otherwise-once-last": require("./lib/rules/jsx-otherwise-once-last"),
"jsx-use-if-tag": require("./lib/rules/jsx-use-if-tag"),
"jsx-when-require-condition": require("./lib/rules/jsx-when-require-condition"),
"jsx-jcs-no-undef": require("./lib/rules/jsx-jcs-no-undef")
},
configs: {
recommended: {
env: {
"jsx-control-statements/jsx-control-statements": true
},
plugins: ["jsx-control-statements"],
rules: {
"jsx-control-statements/jsx-choose-not-empty": 1,
"jsx-control-statements/jsx-for-require-each": 1,
"jsx-control-statements/jsx-for-require-of": 1,
"jsx-control-statements/jsx-for-require-body": 1,
"jsx-control-statements/jsx-if-require-condition": 1,
"jsx-control-statements/jsx-otherwise-once-last": 1,
"jsx-control-statements/jsx-use-if-tag": 1,
"jsx-control-statements/jsx-when-require-condition": 1,
"jsx-control-statements/jsx-jcs-no-undef": 1,
"no-undef": 0
}
}
}
};