-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathrecommended.json
36 lines (36 loc) · 868 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
{
"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
}
}