linted 21.0.0-rc.17 → 21.0.0-rc.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. package/dist/imports/index.d.ts +363 -1
  2. package/dist/imports/index.d.ts.map +1 -1
  3. package/dist/imports/parsers.d.ts +2 -0
  4. package/dist/imports/parsers.d.ts.map +1 -1
  5. package/dist/imports/parsers.js +2 -0
  6. package/dist/imports/parsers.js.map +1 -1
  7. package/dist/imports/plugins.d.ts +362 -2
  8. package/dist/imports/plugins.d.ts.map +1 -1
  9. package/dist/imports/plugins.js +2 -2
  10. package/dist/imports/plugins.js.map +1 -1
  11. package/dist/rules/index.d.ts +113 -178
  12. package/dist/rules/index.d.ts.map +1 -1
  13. package/dist/rules/json/enable.d.ts +23 -101
  14. package/dist/rules/json/enable.d.ts.map +1 -1
  15. package/dist/rules/json/enable.js +24 -144
  16. package/dist/rules/json/enable.js.map +1 -1
  17. package/dist/rules/json/enable_x.d.ts +46 -2
  18. package/dist/rules/json/enable_x.d.ts.map +1 -1
  19. package/dist/rules/json/enable_x.js +74 -3
  20. package/dist/rules/json/enable_x.js.map +1 -1
  21. package/dist/rules/json/index.d.ts +55 -89
  22. package/dist/rules/json/index.d.ts.map +1 -1
  23. package/dist/rules/json/index.js +2 -2
  24. package/dist/rules/json/index.js.map +1 -1
  25. package/dist/rules/jsonc/index.d.ts +77 -3
  26. package/dist/rules/jsonc/index.d.ts.map +1 -1
  27. package/dist/rules/jsonc/index.js +5 -1
  28. package/dist/rules/jsonc/index.js.map +1 -1
  29. package/dist/rules/jsonc/override.d.ts +6 -0
  30. package/dist/rules/jsonc/override.d.ts.map +1 -0
  31. package/dist/rules/jsonc/override.js +12 -0
  32. package/dist/rules/jsonc/override.js.map +1 -0
  33. package/package.json +4 -3
  34. package/src/imports/parsers.ts +2 -0
  35. package/src/imports/plugins.ts +2 -2
  36. package/src/rules/json/enable.ts +25 -150
  37. package/src/rules/json/enable_x.ts +80 -3
  38. package/src/rules/json/index.ts +2 -2
  39. package/src/rules/jsonc/index.ts +5 -1
  40. package/src/rules/jsonc/override.ts +18 -0
@@ -1,150 +1,30 @@
1
- import { enable, ERROR, AlwaysMultiline, Always, Last, Never, Strict, Consistent, } from "../../_strings/index.js";
1
+ import { enable, ERROR, OFF, } from "../../_strings/index.js";
2
2
  export default [
3
3
  enable,
4
4
  {
5
- "array-bracket-newline": [
6
- ERROR,
7
- {
8
- multiline: true,
9
- minItems: null,
10
- },
11
- ],
12
- "array-bracket-spacing": [
13
- ERROR,
14
- Never,
15
- {
16
- singleValue: false,
17
- objectsInArrays: false,
18
- arraysInArrays: false,
19
- },
20
- ],
21
- "array-element-newline": [
22
- ERROR,
23
- Consistent,
24
- ],
25
- "brace-style": [
26
- ERROR,
27
- "stroustrup",
28
- {
29
- allowSingleLine: true,
30
- },
31
- ],
32
- "comma-dangle": [
33
- ERROR,
34
- AlwaysMultiline,
35
- ],
36
- "comma-spacing": [
37
- ERROR,
38
- {
39
- before: false,
40
- after: true,
41
- },
42
- ],
43
- "comma-style": [
44
- ERROR,
45
- Last,
46
- {
47
- exceptions: {
48
- ArrayExpression: false,
49
- ArrayPattern: false,
50
- ArrowFunctionExpression: false,
51
- CallExpression: false,
52
- FunctionDeclaration: false,
53
- FunctionExpression: false,
54
- ImportDeclaration: false,
55
- ObjectExpression: false,
56
- ObjectPattern: false,
57
- VariableDeclaration: false,
58
- NewExpression: false,
59
- },
60
- },
61
- ],
62
- "eol-last": [
63
- ERROR,
64
- Always,
65
- ],
66
- "key-spacing": [
67
- ERROR,
68
- {
69
- beforeColon: false,
70
- afterColon: true,
71
- mode: Strict,
72
- },
73
- ],
74
- indent: [
75
- ERROR,
76
- 2,
77
- {
78
- ignoredNodes: [],
79
- SwitchCase: 1,
80
- VariableDeclarator: { "var": 0, let: 0, "const": 0 },
81
- outerIIFEBody: 0,
82
- MemberExpression: 1,
83
- FunctionDeclaration: { parameters: 1, body: 1 },
84
- FunctionExpression: { parameters: 1, body: 1 },
85
- StaticBlock: { body: 1 },
86
- CallExpression: { arguments: 1 },
87
- ArrayExpression: 1,
88
- ObjectExpression: 1,
89
- ImportDeclaration: 1,
90
- flatTernaryExpressions: false,
91
- offsetTernaryExpressions: true,
92
- ignoreComments: false,
93
- },
94
- ],
95
- "no-mixed-spaces-and-tabs": ERROR,
96
- "no-multi-spaces": [
97
- ERROR,
98
- {
99
- ignoreEOLComments: false,
100
- exceptions: {
101
- Property: false,
102
- ImportAttributes: false,
103
- },
104
- },
105
- ],
106
- "no-multiple-empty-lines": [
107
- ERROR,
108
- {
109
- max: 1,
110
- maxEOF: 1,
111
- maxBOF: 0,
112
- },
113
- ],
114
- "no-tabs": [
115
- ERROR,
116
- {
117
- allowIndentationTabs: false,
118
- },
119
- ],
120
- "no-trailing-spaces": [
121
- ERROR,
122
- {
123
- skipBlankLines: false,
124
- ignoreComments: false,
125
- },
126
- ],
127
- "no-whitespace-before-property": ERROR,
128
- "object-curly-newline": [
129
- ERROR,
130
- {
131
- consistent: true,
132
- },
133
- ],
134
- "object-curly-spacing": [
135
- ERROR,
136
- Always,
137
- {
138
- arraysInObjects: true,
139
- objectsInObjects: true,
140
- },
141
- ],
142
- "object-property-newline": [
143
- ERROR,
144
- {
145
- allowAllPropertiesOnSameLine: true,
146
- },
147
- ],
5
+ "jsonc/auto": OFF,
6
+ "jsonc/key-name-casing": OFF,
7
+ "jsonc/no-bigint-literals": ERROR,
8
+ "jsonc/no-binary-expression": ERROR,
9
+ "jsonc/no-binary-numeric-literals": ERROR,
10
+ "jsonc/no-comments": ERROR,
11
+ "jsonc/no-escape-sequence-in-identifier": ERROR,
12
+ "jsonc/no-hexadecimal-numeric-literals": ERROR,
13
+ "jsonc/no-infinity": ERROR,
14
+ "jsonc/no-nan": ERROR,
15
+ "jsonc/no-number-props": ERROR,
16
+ "jsonc/no-numeric-separators": ERROR,
17
+ "jsonc/no-octal-numeric-literals": ERROR,
18
+ "jsonc/no-parenthesized": ERROR,
19
+ "jsonc/no-plus-sign": ERROR,
20
+ "jsonc/no-regexp-literals": ERROR,
21
+ "jsonc/no-template-literals": ERROR,
22
+ "jsonc/no-undefined-value": ERROR,
23
+ "jsonc/no-unicode-codepoint-escapes": ERROR,
24
+ "jsonc/sort-array-values": OFF,
25
+ "jsonc/sort-keys": OFF,
26
+ "jsonc/valid-json-number": ERROR,
27
+ "jsonc/vue-custom-block/no-parsing-error": ERROR,
148
28
  },
149
29
  ];
150
30
  //# sourceMappingURL=enable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../src/rules/json/enable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,KAAK,EACL,eAAe,EACf,MAAM,EACN,IAAI,EACJ,KAAK,EACL,MAAM,EACN,UAAU,GACX,MAAM,gBAAgB,CAAC;AAExB,eAAe;IACb,MAAM;IACN;QAEE,uBAAuB,EAAE;YACvB,KAAK;YACL;gBACE,SAAS,EAAE,IAAI;gBACf,QAAQ,EAAE,IAAI;aACf;SACF;QACD,uBAAuB,EAAE;YACvB,KAAK;YACL,KAAK;YACL;gBACE,WAAW,EAAE,KAAK;gBAClB,eAAe,EAAE,KAAK;gBACtB,cAAc,EAAE,KAAK;aACtB;SACF;QACD,uBAAuB,EAAE;YACvB,KAAK;YACL,UAAU;SACX;QACD,aAAa,EAAE;YACb,KAAK;YACL,YAAY;YACZ;gBACE,eAAe,EAAE,IAAI;aACtB;SACF;QACD,cAAc,EAAE;YACd,KAAK;YACL,eAAe;SAChB;QACD,eAAe,EAAE;YACf,KAAK;YACL;gBACE,MAAM,EAAE,KAAK;gBACb,KAAK,EAAE,IAAI;aACZ;SACF;QACD,aAAa,EAAE;YACb,KAAK;YACL,IAAI;YACJ;gBACE,UAAU,EAAE;oBACV,eAAe,EAAE,KAAK;oBACtB,YAAY,EAAE,KAAK;oBACnB,uBAAuB,EAAE,KAAK;oBAC9B,cAAc,EAAE,KAAK;oBACrB,mBAAmB,EAAE,KAAK;oBAC1B,kBAAkB,EAAE,KAAK;oBACzB,iBAA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gBACT,MAAM,EAAE,CAAC;aACV;SACF;QACD,SAAS,EAAE;YACT,KAAK;YACL;gBACE,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD,oBAAoB,EAAE;YACpB,KAAK;YACL;gBACE,cAAc,EAAE,KAAK;gBACrB,cAAc,EAAE,KAAK;aACtB;SACF;QACD,+BAA+B,EAAE,KAAK;QACtC,sBAAsB,EAAE;YACtB,KAAK;YACL;gBACE,UAAU,EAAE,IAAI;aACjB;SACF;QACD,sBAAsB,EAAE;YACtB,KAAK;YACL,MAAM;YACN;gBACE,eAAe,EAAE,IAAI;gBACrB,gBAAgB,EAAE,IAAI;aACvB;SACF;QACD,yBAAyB,EAAE;YACzB,KAAK;YACL;gBACE,4BAA4B,EAAE,IAAI;aACnC;SACF;KACF;CACO,CAAC"}
1
+ {"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../src/rules/json/enable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,KAAK,EACL,GAAG,GACJ,MAAM,gBAAgB,CAAC;AAExB,eAAe;IACb,MAAM;IACN;QAEE,YAAY,EAAE,GAAG;QACjB,uBAAuB,EAAE,GAAG;QAC5B,0BAA0B,EAAE,KAAK;QACjC,4BAA4B,EAAE,KAAK;QACnC,kCAAkC,EAAE,KAAK;QACzC,mBAAmB,EAAE,KAAK;QAC1B,wCAAwC,EAAE,KAAK;QAC/C,uCAAuC,EAAE,KAAK;QAC9C,mBAAmB,EAAE,KAAK;QAC1B,cAAc,EAAE,KAAK;QACrB,uBAAuB,EAAE,KAAK;QAC9B,6BAA6B,EAAE,KAAK;QACpC,iCAAiC,EAAE,KAAK;QACxC,wBAAwB,EAAE,KAAK;QAC/B,oBAAoB,EAAE,KAAK;QAC3B,0BAA0B,EAAE,KAAK;QACjC,4BAA4B,EAAE,KAAK;QACnC,0BAA0B,EAAE,KAAK;QACjC,oCAAoC,EAAE,KAAK;QAC3C,yBAAyB,EAAE,GAAG;QAC9B,iBAAiB,EAAE,GAAG;QACtB,yBAAyB,EAAE,KAAK;QAChC,yCAAyC,EAAE,KAAK;KACjD;CACO,CAAC"}
@@ -1,6 +1,50 @@
1
1
  declare const _default: readonly ["enable-extend", {
2
- readonly "json/no-duplicate-keys": "error";
3
- readonly "json/no-empty-keys": "off";
2
+ readonly "jsonc/array-bracket-newline": "off";
3
+ readonly "jsonc/array-bracket-spacing": readonly ["error", "never", {
4
+ readonly singleValue: false;
5
+ readonly objectsInArrays: false;
6
+ readonly arraysInArrays: false;
7
+ }];
8
+ readonly "jsonc/array-element-newline": readonly ["error", "consistent"];
9
+ readonly "jsonc/comma-dangle": readonly ["error", "never"];
10
+ readonly "jsonc/comma-style": readonly ["error", "last"];
11
+ readonly "jsonc/indent": readonly ["error", 2];
12
+ readonly "jsonc/key-spacing": readonly ["error", {
13
+ readonly beforeColon: false;
14
+ readonly afterColon: true;
15
+ readonly mode: "strict";
16
+ }];
17
+ readonly "jsonc/no-dupe-keys": "error";
18
+ readonly "jsonc/no-floating-decimal": "error";
19
+ readonly "jsonc/no-irregular-whitespace": readonly ["error", {
20
+ readonly skipStrings: true;
21
+ readonly skipComments: true;
22
+ readonly skipRegExps: true;
23
+ readonly skipTemplates: true;
24
+ readonly skipJSXText: true;
25
+ }];
26
+ readonly "jsonc/no-multi-str": "error";
27
+ readonly "jsonc/no-octal-escape": "error";
28
+ readonly "jsonc/no-octal": "error";
29
+ readonly "jsonc/no-sparse-arrays": "error";
30
+ readonly "jsonc/no-useless-escape": "error";
31
+ readonly "jsonc/object-curly-newline": readonly ["error", {
32
+ readonly consistent: true;
33
+ readonly multiline: true;
34
+ readonly minProperties: 4;
35
+ }];
36
+ readonly "jsonc/object-curly-spacing": readonly ["error", "always", {
37
+ readonly arraysInObjects: true;
38
+ readonly objectsInObjects: true;
39
+ }];
40
+ readonly "jsonc/object-property-newline": readonly ["error", {
41
+ readonly allowAllPropertiesOnSameLine: true;
42
+ }];
43
+ readonly "jsonc/quote-props": readonly ["error", "always"];
44
+ readonly "jsonc/quotes": readonly ["error", "double", {
45
+ readonly avoidEscape: false;
46
+ }];
47
+ readonly "jsonc/space-unary-ops": "error";
4
48
  }];
5
49
  export default _default;
6
50
  //# sourceMappingURL=enable_x.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"enable_x.d.ts","sourceRoot":"","sources":["../../../src/rules/json/enable_x.ts"],"names":[],"mappings":";;;;AAMA,wBAOW"}
1
+ {"version":3,"file":"enable_x.d.ts","sourceRoot":"","sources":["../../../src/rules/json/enable_x.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,wBA8EW"}
@@ -1,9 +1,80 @@
1
- import { enable_x, ERROR, OFF, } from "../../_strings/index.js";
1
+ import { enable_x, ERROR, OFF, Always, Consistent, Double, Last, Never, Strict, } from "../../_strings/index.js";
2
2
  export default [
3
3
  enable_x,
4
4
  {
5
- "json/no-duplicate-keys": ERROR,
6
- "json/no-empty-keys": OFF,
5
+ "jsonc/array-bracket-newline": OFF,
6
+ "jsonc/array-bracket-spacing": [
7
+ ERROR,
8
+ Never,
9
+ {
10
+ singleValue: false,
11
+ objectsInArrays: false,
12
+ arraysInArrays: false,
13
+ },
14
+ ],
15
+ "jsonc/array-element-newline": [
16
+ ERROR,
17
+ Consistent,
18
+ ],
19
+ "jsonc/comma-dangle": [ERROR, Never],
20
+ "jsonc/comma-style": [ERROR, Last],
21
+ "jsonc/indent": [ERROR, 2],
22
+ "jsonc/key-spacing": [
23
+ ERROR,
24
+ {
25
+ beforeColon: false,
26
+ afterColon: true,
27
+ mode: Strict,
28
+ },
29
+ ],
30
+ "jsonc/no-dupe-keys": ERROR,
31
+ "jsonc/no-floating-decimal": ERROR,
32
+ "jsonc/no-irregular-whitespace": [
33
+ ERROR,
34
+ {
35
+ skipStrings: true,
36
+ skipComments: true,
37
+ skipRegExps: true,
38
+ skipTemplates: true,
39
+ skipJSXText: true,
40
+ },
41
+ ],
42
+ "jsonc/no-multi-str": ERROR,
43
+ "jsonc/no-octal-escape": ERROR,
44
+ "jsonc/no-octal": ERROR,
45
+ "jsonc/no-sparse-arrays": ERROR,
46
+ "jsonc/no-useless-escape": ERROR,
47
+ "jsonc/object-curly-newline": [
48
+ ERROR,
49
+ {
50
+ consistent: true,
51
+ multiline: true,
52
+ minProperties: 4,
53
+ },
54
+ ],
55
+ "jsonc/object-curly-spacing": [
56
+ ERROR,
57
+ Always,
58
+ {
59
+ arraysInObjects: true,
60
+ objectsInObjects: true,
61
+ },
62
+ ],
63
+ "jsonc/object-property-newline": [
64
+ ERROR,
65
+ {
66
+ allowAllPropertiesOnSameLine: true,
67
+ },
68
+ ],
69
+ "jsonc/quote-props": [ERROR, Always],
70
+ "jsonc/quotes": [
71
+ ERROR,
72
+ Double,
73
+ {
74
+ avoidEscape: false,
75
+ },
76
+ ],
77
+ "jsonc/space-unary-ops": ERROR,
7
78
  },
8
79
  ];
9
80
  //# sourceMappingURL=enable_x.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"enable_x.js","sourceRoot":"","sources":["../../../src/rules/json/enable_x.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,KAAK,EACL,GAAG,GACJ,MAAM,gBAAgB,CAAC;AAExB,eAAe;IACb,QAAQ;IACR;QAEE,wBAAwB,EAAE,KAAK;QAC/B,oBAAoB,EAAE,GAAG;KAC1B;CACO,CAAC"}
1
+ {"version":3,"file":"enable_x.js","sourceRoot":"","sources":["../../../src/rules/json/enable_x.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,KAAK,EACL,GAAG,EACH,MAAM,EACN,UAAU,EACV,MAAM,EACN,IAAI,EACJ,KAAK,EACL,MAAM,GACP,MAAM,gBAAgB,CAAC;AAExB,eAAe;IACb,QAAQ;IACR;QAEE,6BAA6B,EAAE,GAAG;QAClC,6BAA6B,EAAE;YAC7B,KAAK;YACL,KAAK;YACL;gBACE,WAAW,EAAE,KAAK;gBAClB,eAAe,EAAE,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_default: (readonly ["enable", {
2
- readonly "array-bracket-newline": readonly ["error", {
3
- readonly multiline: true;
4
- readonly minItems: null;
5
- }];
6
- readonly "array-bracket-spacing": readonly ["error", "never", {
1
+ declare const _default: (readonly ["enable-extend", {
2
+ readonly "jsonc/array-bracket-newline": "off";
3
+ readonly "jsonc/array-bracket-spacing": readonly ["error", "never", {
7
4
  readonly singleValue: false;
8
5
  readonly objectsInArrays: false;
9
6
  readonly arraysInArrays: false;
10
7
  }];
11
- readonly "array-element-newline": readonly ["error", "consistent"];
12
- readonly "brace-style": readonly ["error", "stroustrup", {
13
- readonly allowSingleLine: true;
14
- }];
15
- readonly "comma-dangle": readonly ["error", "always-multiline"];
16
- readonly "comma-spacing": readonly ["error", {
17
- readonly before: false;
18
- readonly after: true;
19
- }];
20
- readonly "comma-style": readonly ["error", "last", {
21
- readonly exceptions: {
22
- readonly ArrayExpression: false;
23
- readonly ArrayPattern: false;
24
- readonly ArrowFunctionExpression: false;
25
- readonly CallExpression: false;
26
- readonly FunctionDeclaration: false;
27
- readonly FunctionExpression: false;
28
- readonly ImportDeclaration: false;
29
- readonly ObjectExpression: false;
30
- readonly ObjectPattern: false;
31
- readonly VariableDeclaration: false;
32
- readonly NewExpression: false;
33
- };
34
- }];
35
- readonly "eol-last": readonly ["error", "always"];
36
- readonly "key-spacing": readonly ["error", {
8
+ readonly "jsonc/array-element-newline": readonly ["error", "consistent"];
9
+ readonly "jsonc/comma-dangle": readonly ["error", "never"];
10
+ readonly "jsonc/comma-style": readonly ["error", "last"];
11
+ readonly "jsonc/indent": readonly ["error", 2];
12
+ readonly "jsonc/key-spacing": readonly ["error", {
37
13
  readonly beforeColon: false;
38
14
  readonly afterColon: true;
39
15
  readonly mode: "strict";
40
16
  }];
41
- readonly indent: readonly ["error", 2, {
42
- readonly ignoredNodes: readonly [];
43
- readonly SwitchCase: 1;
44
- readonly VariableDeclarator: {
45
- readonly var: 0;
46
- readonly let: 0;
47
- readonly const: 0;
48
- };
49
- readonly outerIIFEBody: 0;
50
- readonly MemberExpression: 1;
51
- readonly FunctionDeclaration: {
52
- readonly parameters: 1;
53
- readonly body: 1;
54
- };
55
- readonly FunctionExpression: {
56
- readonly parameters: 1;
57
- readonly body: 1;
58
- };
59
- readonly StaticBlock: {
60
- readonly body: 1;
61
- };
62
- readonly CallExpression: {
63
- readonly arguments: 1;
64
- };
65
- readonly ArrayExpression: 1;
66
- readonly ObjectExpression: 1;
67
- readonly ImportDeclaration: 1;
68
- readonly flatTernaryExpressions: false;
69
- readonly offsetTernaryExpressions: true;
70
- readonly ignoreComments: false;
71
- }];
72
- readonly "no-mixed-spaces-and-tabs": "error";
73
- readonly "no-multi-spaces": readonly ["error", {
74
- readonly ignoreEOLComments: false;
75
- readonly exceptions: {
76
- readonly Property: false;
77
- readonly ImportAttributes: false;
78
- };
17
+ readonly "jsonc/no-dupe-keys": "error";
18
+ readonly "jsonc/no-floating-decimal": "error";
19
+ readonly "jsonc/no-irregular-whitespace": readonly ["error", {
20
+ readonly skipStrings: true;
21
+ readonly skipComments: true;
22
+ readonly skipRegExps: true;
23
+ readonly skipTemplates: true;
24
+ readonly skipJSXText: true;
79
25
  }];
80
- readonly "no-multiple-empty-lines": readonly ["error", {
81
- readonly max: 1;
82
- readonly maxEOF: 1;
83
- readonly maxBOF: 0;
84
- }];
85
- readonly "no-tabs": readonly ["error", {
86
- readonly allowIndentationTabs: false;
87
- }];
88
- readonly "no-trailing-spaces": readonly ["error", {
89
- readonly skipBlankLines: false;
90
- readonly ignoreComments: false;
91
- }];
92
- readonly "no-whitespace-before-property": "error";
93
- readonly "object-curly-newline": readonly ["error", {
26
+ readonly "jsonc/no-multi-str": "error";
27
+ readonly "jsonc/no-octal-escape": "error";
28
+ readonly "jsonc/no-octal": "error";
29
+ readonly "jsonc/no-sparse-arrays": "error";
30
+ readonly "jsonc/no-useless-escape": "error";
31
+ readonly "jsonc/object-curly-newline": readonly ["error", {
94
32
  readonly consistent: true;
33
+ readonly multiline: true;
34
+ readonly minProperties: 4;
95
35
  }];
96
- readonly "object-curly-spacing": readonly ["error", "always", {
36
+ readonly "jsonc/object-curly-spacing": readonly ["error", "always", {
97
37
  readonly arraysInObjects: true;
98
38
  readonly objectsInObjects: true;
99
39
  }];
100
- readonly "object-property-newline": readonly ["error", {
40
+ readonly "jsonc/object-property-newline": readonly ["error", {
101
41
  readonly allowAllPropertiesOnSameLine: true;
102
42
  }];
103
- }] | readonly ["enable-extend", {
104
- readonly "json/no-duplicate-keys": "error";
105
- readonly "json/no-empty-keys": "off";
43
+ readonly "jsonc/quote-props": readonly ["error", "always"];
44
+ readonly "jsonc/quotes": readonly ["error", "double", {
45
+ readonly avoidEscape: false;
46
+ }];
47
+ readonly "jsonc/space-unary-ops": "error";
48
+ }] | readonly ["enable", {
49
+ readonly "jsonc/auto": "off";
50
+ readonly "jsonc/key-name-casing": "off";
51
+ readonly "jsonc/no-bigint-literals": "error";
52
+ readonly "jsonc/no-binary-expression": "error";
53
+ readonly "jsonc/no-binary-numeric-literals": "error";
54
+ readonly "jsonc/no-comments": "error";
55
+ readonly "jsonc/no-escape-sequence-in-identifier": "error";
56
+ readonly "jsonc/no-hexadecimal-numeric-literals": "error";
57
+ readonly "jsonc/no-infinity": "error";
58
+ readonly "jsonc/no-nan": "error";
59
+ readonly "jsonc/no-number-props": "error";
60
+ readonly "jsonc/no-numeric-separators": "error";
61
+ readonly "jsonc/no-octal-numeric-literals": "error";
62
+ readonly "jsonc/no-parenthesized": "error";
63
+ readonly "jsonc/no-plus-sign": "error";
64
+ readonly "jsonc/no-regexp-literals": "error";
65
+ readonly "jsonc/no-template-literals": "error";
66
+ readonly "jsonc/no-undefined-value": "error";
67
+ readonly "jsonc/no-unicode-codepoint-escapes": "error";
68
+ readonly "jsonc/sort-array-values": "off";
69
+ readonly "jsonc/sort-keys": "off";
70
+ readonly "jsonc/valid-json-number": "error";
71
+ readonly "jsonc/vue-custom-block/no-parsing-error": "error";
106
72
  }])[];
107
73
  export default _default;
108
74
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
@@ -1,7 +1,7 @@
1
- import enable from "./enable.js";
2
1
  import enable_x from "./enable_x.js";
2
+ import enable from "./enable.js";
3
3
  export default [
4
- enable,
5
4
  enable_x,
5
+ enable,
6
6
  ];
7
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,eAAe;IACb,MAAM;IACN,QAAQ;CACT,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,eAAe;IACb,QAAQ;IACR,MAAM;CACP,CAAC"}
@@ -1,3 +1,77 @@
1
- import json from "../json/index.js";
2
- export default json;
3
- //# sourceMappingURL=index.d.ts.map
1
+ declare const _default: (readonly ["enable-extend", {
2
+ readonly "jsonc/array-bracket-newline": "off";
3
+ readonly "jsonc/array-bracket-spacing": readonly ["error", "never", {
4
+ readonly singleValue: false;
5
+ readonly objectsInArrays: false;
6
+ readonly arraysInArrays: false;
7
+ }];
8
+ readonly "jsonc/array-element-newline": readonly ["error", "consistent"];
9
+ readonly "jsonc/comma-dangle": readonly ["error", "never"];
10
+ readonly "jsonc/comma-style": readonly ["error", "last"];
11
+ readonly "jsonc/indent": readonly ["error", 2];
12
+ readonly "jsonc/key-spacing": readonly ["error", {
13
+ readonly beforeColon: false;
14
+ readonly afterColon: true;
15
+ readonly mode: "strict";
16
+ }];
17
+ readonly "jsonc/no-dupe-keys": "error";
18
+ readonly "jsonc/no-floating-decimal": "error";
19
+ readonly "jsonc/no-irregular-whitespace": readonly ["error", {
20
+ readonly skipStrings: true;
21
+ readonly skipComments: true;
22
+ readonly skipRegExps: true;
23
+ readonly skipTemplates: true;
24
+ readonly skipJSXText: true;
25
+ }];
26
+ readonly "jsonc/no-multi-str": "error";
27
+ readonly "jsonc/no-octal-escape": "error";
28
+ readonly "jsonc/no-octal": "error";
29
+ readonly "jsonc/no-sparse-arrays": "error";
30
+ readonly "jsonc/no-useless-escape": "error";
31
+ readonly "jsonc/object-curly-newline": readonly ["error", {
32
+ readonly consistent: true;
33
+ readonly multiline: true;
34
+ readonly minProperties: 4;
35
+ }];
36
+ readonly "jsonc/object-curly-spacing": readonly ["error", "always", {
37
+ readonly arraysInObjects: true;
38
+ readonly objectsInObjects: true;
39
+ }];
40
+ readonly "jsonc/object-property-newline": readonly ["error", {
41
+ readonly allowAllPropertiesOnSameLine: true;
42
+ }];
43
+ readonly "jsonc/quote-props": readonly ["error", "always"];
44
+ readonly "jsonc/quotes": readonly ["error", "double", {
45
+ readonly avoidEscape: false;
46
+ }];
47
+ readonly "jsonc/space-unary-ops": "error";
48
+ }] | readonly ["enable", {
49
+ readonly "jsonc/auto": "off";
50
+ readonly "jsonc/key-name-casing": "off";
51
+ readonly "jsonc/no-bigint-literals": "error";
52
+ readonly "jsonc/no-binary-expression": "error";
53
+ readonly "jsonc/no-binary-numeric-literals": "error";
54
+ readonly "jsonc/no-comments": "error";
55
+ readonly "jsonc/no-escape-sequence-in-identifier": "error";
56
+ readonly "jsonc/no-hexadecimal-numeric-literals": "error";
57
+ readonly "jsonc/no-infinity": "error";
58
+ readonly "jsonc/no-nan": "error";
59
+ readonly "jsonc/no-number-props": "error";
60
+ readonly "jsonc/no-numeric-separators": "error";
61
+ readonly "jsonc/no-octal-numeric-literals": "error";
62
+ readonly "jsonc/no-parenthesized": "error";
63
+ readonly "jsonc/no-plus-sign": "error";
64
+ readonly "jsonc/no-regexp-literals": "error";
65
+ readonly "jsonc/no-template-literals": "error";
66
+ readonly "jsonc/no-undefined-value": "error";
67
+ readonly "jsonc/no-unicode-codepoint-escapes": "error";
68
+ readonly "jsonc/sort-array-values": "off";
69
+ readonly "jsonc/sort-keys": "off";
70
+ readonly "jsonc/valid-json-number": "error";
71
+ readonly "jsonc/vue-custom-block/no-parsing-error": "error";
72
+ }] | readonly ["override", {
73
+ readonly "jsonc/no-comments": "off";
74
+ readonly "jsonc/comma-dangle": readonly ["error", "always-multiline"];
75
+ }])[];
76
+ export default _default;
77
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/jsonc/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/jsonc/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
@@ -1,3 +1,7 @@
1
1
  import json from "../json/index.js";
2
- export default json;
2
+ import override from "./override.js";
3
+ export default [
4
+ ...json,
5
+ override,
6
+ ];
3
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/jsonc/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/jsonc/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,eAAe;IACb,GAAG,IAAI;IACP,QAAQ;CACT,CAAC"}
@@ -0,0 +1,6 @@
1
+ declare const _default: readonly ["override", {
2
+ readonly "jsonc/no-comments": "off";
3
+ readonly "jsonc/comma-dangle": readonly ["error", "always-multiline"];
4
+ }];
5
+ export default _default;
6
+ //# sourceMappingURL=override.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"override.d.ts","sourceRoot":"","sources":["../../../src/rules/jsonc/override.ts"],"names":[],"mappings":";;;;AAOA,wBAUW"}
@@ -0,0 +1,12 @@
1
+ import { override, ERROR, OFF, AlwaysMultiline, } from "../../_strings/index.js";
2
+ export default [
3
+ override,
4
+ {
5
+ "jsonc/no-comments": OFF,
6
+ "jsonc/comma-dangle": [
7
+ ERROR,
8
+ AlwaysMultiline,
9
+ ],
10
+ },
11
+ ];
12
+ //# sourceMappingURL=override.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"override.js","sourceRoot":"","sources":["../../../src/rules/jsonc/override.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,KAAK,EACL,GAAG,EACH,eAAe,GAChB,MAAM,gBAAgB,CAAC;AAExB,eAAe;IACb,QAAQ;IACR;QAEE,mBAAmB,EAAE,GAAG;QACxB,oBAAoB,EAAE;YACpB,KAAK;YACL,eAAe;SAChB;KACF;CACO,CAAC"}