/
recommended.json
44 lines (44 loc) · 998 Bytes
/
recommended.json
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
{
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"canonical"
],
"rules": {
"canonical/destructuring-property-newline": [
2,
{
"allowAllPropertiesOnSameLine": false
}
],
"canonical/export-specifier-newline": 1,
"canonical/filename-match-exported": 0,
"canonical/filename-match-regex": 0,
"canonical/filename-no-index": 0,
"canonical/id-match": [
2,
"(^[A-Za-z]+(?:[A-Z][a-z]*)*\\d*$)|(^[A-Z]+(_[A-Z]+)*(_\\d$)*$)|(^(_|\\$)$)",
{
"ignoreDestructuring": true,
"ignoreNamedImports": true,
"onlyDeclarations": true,
"properties": true
}
],
"canonical/import-specifier-newline": 1,
"canonical/no-restricted-strings": 0,
"canonical/no-use-extend-native": 2,
"canonical/require-extension": 0,
"canonical/sort-keys": [
2,
"asc",
{
"caseSensitive": false,
"natural": true
}
]
}
}