forked from gajus/eslint-config-canonical
-
Notifications
You must be signed in to change notification settings - Fork 0
/
json.js
67 lines (67 loc) · 1.82 KB
/
json.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
module.exports.recommended = {
files: ['**/*.json'],
languageOptions: {
parser: require('eslint-plugin-jsonc'),
},
plugins: {
jsonc: require('eslint-plugin-jsonc'),
},
rules: {
'jsonc/array-bracket-newline': [
2,
{
minItems: 1,
multiline: true,
},
],
'jsonc/array-bracket-spacing': 2,
'jsonc/array-element-newline': [2, 'always'],
'jsonc/auto': 0,
'jsonc/comma-dangle': 2,
'jsonc/comma-style': [2, 'last'],
'jsonc/indent': [2, 2],
'jsonc/key-name-casing': 0,
'jsonc/key-spacing': 2,
'jsonc/no-bigint-literals': 2,
'jsonc/no-binary-expression': 2,
'jsonc/no-binary-numeric-literals': 2,
'jsonc/no-comments': 2,
'jsonc/no-dupe-keys': 2,
'jsonc/no-escape-sequence-in-identifier': 2,
'jsonc/no-floating-decimal': 2,
'jsonc/no-hexadecimal-numeric-literals': 2,
'jsonc/no-infinity': 2,
'jsonc/no-multi-str': 2,
'jsonc/no-nan': 2,
'jsonc/no-number-props': 2,
'jsonc/no-numeric-separators': 2,
'jsonc/no-octal': 2,
'jsonc/no-octal-escape': 2,
'jsonc/no-octal-numeric-literals': 2,
'jsonc/no-parenthesized': 2,
'jsonc/no-plus-sign': 2,
'jsonc/no-regexp-literals': 2,
'jsonc/no-sparse-arrays': 2,
'jsonc/no-template-literals': 2,
'jsonc/no-undefined-value': 2,
'jsonc/no-unicode-codepoint-escapes': 2,
'jsonc/no-useless-escape': 2,
'jsonc/object-curly-newline': 2,
'jsonc/object-curly-spacing': 2,
'jsonc/object-property-newline': 2,
'jsonc/quote-props': 2,
'jsonc/quotes': 2,
'jsonc/sort-array-values': 0,
'jsonc/sort-keys': [
2,
'asc',
{
caseSensitive: false,
natural: true,
},
],
'jsonc/space-unary-ops': 2,
'jsonc/valid-json-number': 2,
'jsonc/vue-custom-block/no-parsing-error': 2,
},
};