linted 18.0.0 → 18.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rules/index.d.ts +46 -8
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/json/enable_x.d.ts +23 -4
- package/dist/rules/json/enable_x.d.ts.map +1 -1
- package/dist/rules/json/enable_x.js +30 -5
- package/dist/rules/json/enable_x.js.map +1 -1
- package/dist/rules/json/index.d.ts +23 -4
- package/dist/rules/json/index.d.ts.map +1 -1
- package/dist/rules/jsonc/index.d.ts +23 -4
- package/dist/rules/jsonc/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/rules/json/enable_x.ts +34 -10
package/dist/rules/index.d.ts
CHANGED
@@ -3174,13 +3174,32 @@ declare const _default: {
|
|
3174
3174
|
}];
|
3175
3175
|
}])[];
|
3176
3176
|
json: (readonly ["enable-extend", {
|
3177
|
-
readonly "jsonc/array-bracket-newline": readonly ["error",
|
3177
|
+
readonly "jsonc/array-bracket-newline": readonly ["error", {
|
3178
|
+
readonly multiline: true;
|
3179
|
+
readonly minItems: null;
|
3180
|
+
}];
|
3178
3181
|
readonly "jsonc/array-bracket-spacing": readonly ["error", "never", {
|
3179
3182
|
readonly singleValue: false;
|
3180
3183
|
readonly objectsInArrays: false;
|
3181
3184
|
readonly arraysInArrays: false;
|
3182
3185
|
}];
|
3183
|
-
readonly "jsonc/array-element-newline": readonly ["error",
|
3186
|
+
readonly "jsonc/array-element-newline": readonly ["error", {
|
3187
|
+
readonly ArrayExpression: {
|
3188
|
+
readonly consistent: true;
|
3189
|
+
readonly multiline: true;
|
3190
|
+
readonly minItems: 4;
|
3191
|
+
};
|
3192
|
+
readonly ArrayPattern: {
|
3193
|
+
readonly consistent: true;
|
3194
|
+
readonly multiline: true;
|
3195
|
+
readonly minItems: 4;
|
3196
|
+
};
|
3197
|
+
readonly JSONArrayExpression: {
|
3198
|
+
readonly consistent: true;
|
3199
|
+
readonly multiline: true;
|
3200
|
+
readonly minItems: 4;
|
3201
|
+
};
|
3202
|
+
}];
|
3184
3203
|
readonly "jsonc/comma-dangle": readonly ["error", "never"];
|
3185
3204
|
readonly "jsonc/comma-style": readonly ["error", "last"];
|
3186
3205
|
readonly "jsonc/indent": readonly ["error", 2];
|
@@ -3206,14 +3225,14 @@ declare const _default: {
|
|
3206
3225
|
readonly "jsonc/object-curly-newline": readonly ["error", {
|
3207
3226
|
readonly consistent: true;
|
3208
3227
|
readonly multiline: true;
|
3209
|
-
readonly minProperties:
|
3228
|
+
readonly minProperties: 4;
|
3210
3229
|
}];
|
3211
3230
|
readonly "jsonc/object-curly-spacing": readonly ["error", "always", {
|
3212
3231
|
readonly arraysInObjects: true;
|
3213
3232
|
readonly objectsInObjects: true;
|
3214
3233
|
}];
|
3215
3234
|
readonly "jsonc/object-property-newline": readonly ["error", {
|
3216
|
-
readonly allowAllPropertiesOnSameLine:
|
3235
|
+
readonly allowAllPropertiesOnSameLine: true;
|
3217
3236
|
}];
|
3218
3237
|
readonly "jsonc/quote-props": readonly ["error", "always"];
|
3219
3238
|
readonly "jsonc/quotes": readonly ["error", "double", {
|
@@ -3246,13 +3265,32 @@ declare const _default: {
|
|
3246
3265
|
readonly "jsonc/vue-custom-block/no-parsing-error": "error";
|
3247
3266
|
}])[];
|
3248
3267
|
jsonc: (readonly ["enable-extend", {
|
3249
|
-
readonly "jsonc/array-bracket-newline": readonly ["error",
|
3268
|
+
readonly "jsonc/array-bracket-newline": readonly ["error", {
|
3269
|
+
readonly multiline: true;
|
3270
|
+
readonly minItems: null;
|
3271
|
+
}];
|
3250
3272
|
readonly "jsonc/array-bracket-spacing": readonly ["error", "never", {
|
3251
3273
|
readonly singleValue: false;
|
3252
3274
|
readonly objectsInArrays: false;
|
3253
3275
|
readonly arraysInArrays: false;
|
3254
3276
|
}];
|
3255
|
-
readonly "jsonc/array-element-newline": readonly ["error",
|
3277
|
+
readonly "jsonc/array-element-newline": readonly ["error", {
|
3278
|
+
readonly ArrayExpression: {
|
3279
|
+
readonly consistent: true;
|
3280
|
+
readonly multiline: true;
|
3281
|
+
readonly minItems: 4;
|
3282
|
+
};
|
3283
|
+
readonly ArrayPattern: {
|
3284
|
+
readonly consistent: true;
|
3285
|
+
readonly multiline: true;
|
3286
|
+
readonly minItems: 4;
|
3287
|
+
};
|
3288
|
+
readonly JSONArrayExpression: {
|
3289
|
+
readonly consistent: true;
|
3290
|
+
readonly multiline: true;
|
3291
|
+
readonly minItems: 4;
|
3292
|
+
};
|
3293
|
+
}];
|
3256
3294
|
readonly "jsonc/comma-dangle": readonly ["error", "never"];
|
3257
3295
|
readonly "jsonc/comma-style": readonly ["error", "last"];
|
3258
3296
|
readonly "jsonc/indent": readonly ["error", 2];
|
@@ -3278,14 +3316,14 @@ declare const _default: {
|
|
3278
3316
|
readonly "jsonc/object-curly-newline": readonly ["error", {
|
3279
3317
|
readonly consistent: true;
|
3280
3318
|
readonly multiline: true;
|
3281
|
-
readonly minProperties:
|
3319
|
+
readonly minProperties: 4;
|
3282
3320
|
}];
|
3283
3321
|
readonly "jsonc/object-curly-spacing": readonly ["error", "always", {
|
3284
3322
|
readonly arraysInObjects: true;
|
3285
3323
|
readonly objectsInObjects: true;
|
3286
3324
|
}];
|
3287
3325
|
readonly "jsonc/object-property-newline": readonly ["error", {
|
3288
|
-
readonly allowAllPropertiesOnSameLine:
|
3326
|
+
readonly allowAllPropertiesOnSameLine: true;
|
3289
3327
|
}];
|
3290
3328
|
readonly "jsonc/quote-props": readonly ["error", "always"];
|
3291
3329
|
readonly "jsonc/quotes": readonly ["error", "double", {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,wBASE"}
|
@@ -1,11 +1,30 @@
|
|
1
1
|
declare const _default: readonly ["enable-extend", {
|
2
|
-
readonly "jsonc/array-bracket-newline": readonly ["error",
|
2
|
+
readonly "jsonc/array-bracket-newline": readonly ["error", {
|
3
|
+
readonly multiline: true;
|
4
|
+
readonly minItems: null;
|
5
|
+
}];
|
3
6
|
readonly "jsonc/array-bracket-spacing": readonly ["error", "never", {
|
4
7
|
readonly singleValue: false;
|
5
8
|
readonly objectsInArrays: false;
|
6
9
|
readonly arraysInArrays: false;
|
7
10
|
}];
|
8
|
-
readonly "jsonc/array-element-newline": readonly ["error",
|
11
|
+
readonly "jsonc/array-element-newline": readonly ["error", {
|
12
|
+
readonly ArrayExpression: {
|
13
|
+
readonly consistent: true;
|
14
|
+
readonly multiline: true;
|
15
|
+
readonly minItems: 4;
|
16
|
+
};
|
17
|
+
readonly ArrayPattern: {
|
18
|
+
readonly consistent: true;
|
19
|
+
readonly multiline: true;
|
20
|
+
readonly minItems: 4;
|
21
|
+
};
|
22
|
+
readonly JSONArrayExpression: {
|
23
|
+
readonly consistent: true;
|
24
|
+
readonly multiline: true;
|
25
|
+
readonly minItems: 4;
|
26
|
+
};
|
27
|
+
}];
|
9
28
|
readonly "jsonc/comma-dangle": readonly ["error", "never"];
|
10
29
|
readonly "jsonc/comma-style": readonly ["error", "last"];
|
11
30
|
readonly "jsonc/indent": readonly ["error", 2];
|
@@ -31,14 +50,14 @@ declare const _default: readonly ["enable-extend", {
|
|
31
50
|
readonly "jsonc/object-curly-newline": readonly ["error", {
|
32
51
|
readonly consistent: true;
|
33
52
|
readonly multiline: true;
|
34
|
-
readonly minProperties:
|
53
|
+
readonly minProperties: 4;
|
35
54
|
}];
|
36
55
|
readonly "jsonc/object-curly-spacing": readonly ["error", "always", {
|
37
56
|
readonly arraysInObjects: true;
|
38
57
|
readonly objectsInObjects: true;
|
39
58
|
}];
|
40
59
|
readonly "jsonc/object-property-newline": readonly ["error", {
|
41
|
-
readonly allowAllPropertiesOnSameLine:
|
60
|
+
readonly allowAllPropertiesOnSameLine: true;
|
42
61
|
}];
|
43
62
|
readonly "jsonc/quote-props": readonly ["error", "always"];
|
44
63
|
readonly "jsonc/quotes": readonly ["error", "double", {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"enable_x.d.ts","sourceRoot":"","sources":["../../../src/rules/json/enable_x.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"enable_x.d.ts","sourceRoot":"","sources":["../../../src/rules/json/enable_x.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,wBAoGW"}
|
@@ -1,9 +1,15 @@
|
|
1
1
|
import { enable_x, level, state } from "../../_strings/index.js";
|
2
|
-
const { ERROR } = level, { Never, Always,
|
2
|
+
const { ERROR } = level, { Never, Always, Strict, Last, Double, } = state;
|
3
3
|
export default [
|
4
4
|
enable_x,
|
5
5
|
{
|
6
|
-
"jsonc/array-bracket-newline": [
|
6
|
+
"jsonc/array-bracket-newline": [
|
7
|
+
ERROR,
|
8
|
+
{
|
9
|
+
multiline: true,
|
10
|
+
minItems: null,
|
11
|
+
},
|
12
|
+
],
|
7
13
|
"jsonc/array-bracket-spacing": [
|
8
14
|
ERROR,
|
9
15
|
Never,
|
@@ -13,7 +19,26 @@ export default [
|
|
13
19
|
arraysInArrays: false,
|
14
20
|
},
|
15
21
|
],
|
16
|
-
"jsonc/array-element-newline": [
|
22
|
+
"jsonc/array-element-newline": [
|
23
|
+
ERROR,
|
24
|
+
{
|
25
|
+
ArrayExpression: {
|
26
|
+
consistent: true,
|
27
|
+
multiline: true,
|
28
|
+
minItems: 4,
|
29
|
+
},
|
30
|
+
ArrayPattern: {
|
31
|
+
consistent: true,
|
32
|
+
multiline: true,
|
33
|
+
minItems: 4,
|
34
|
+
},
|
35
|
+
JSONArrayExpression: {
|
36
|
+
consistent: true,
|
37
|
+
multiline: true,
|
38
|
+
minItems: 4,
|
39
|
+
},
|
40
|
+
},
|
41
|
+
],
|
17
42
|
"jsonc/comma-dangle": [ERROR, Never],
|
18
43
|
"jsonc/comma-style": [ERROR, Last],
|
19
44
|
"jsonc/indent": [ERROR, 2],
|
@@ -47,7 +72,7 @@ export default [
|
|
47
72
|
{
|
48
73
|
consistent: true,
|
49
74
|
multiline: true,
|
50
|
-
minProperties:
|
75
|
+
minProperties: 4,
|
51
76
|
},
|
52
77
|
],
|
53
78
|
"jsonc/object-curly-spacing": [
|
@@ -61,7 +86,7 @@ export default [
|
|
61
86
|
"jsonc/object-property-newline": [
|
62
87
|
ERROR,
|
63
88
|
{
|
64
|
-
allowAllPropertiesOnSameLine:
|
89
|
+
allowAllPropertiesOnSameLine: true,
|
65
90
|
},
|
66
91
|
],
|
67
92
|
"jsonc/quote-props": [ERROR, Always],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"enable_x.js","sourceRoot":"","sources":["../../../src/rules/json/enable_x.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAExD,MACA,EAAE,KAAK,EAAE,GAAG,KAAK,EACjB,EACE,KAAK,EACL,MAAM,EACN,
|
1
|
+
{"version":3,"file":"enable_x.js","sourceRoot":"","sources":["../../../src/rules/json/enable_x.ts"],"names":[],"mappings":"AAAA,OAA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,IAAI;gBACjB,aAAa,EAAE,IAAI;gBACnB,WAAW,EAAE,IAAI;aAClB;SACF;QACD,oBAAoB,EAAE,KAAK;QAC3B,uBAAuB,EAAE,KAAK;QAC9B,gBAAgB,EAAE,KAAK;QACvB,wBAAwB,EAAE,KAAK;QAC/B,yBAAyB,EAAE,KAAK;QAChC,4BAA4B,EAAE;YAC5B,KAAK;YACL;gBACE,UAAU,EAAE,IAAI;gBAChB,SAAS,EAAE,IAAI;gBACf,aAAa,EAAE,CAAC;aACjB;SACF;QACD,4BAA4B,EAAE;YAC5B,KAAK;YACL,MAAM;YACN;gBACE,eAAe,EAAE,IAAI;gBACrB,gBAAgB,EAAE,IAAI;aACvB;SACF;QACD,+BAA+B,EAAE;YAC/B,KAAK;YACL;gBACE,4BAA4B,EAAE,IAAI;aACnC;SACF;QACD,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC;QACpC,cAAc,EAAE;YACd,KAAK;YACL,MAAM;YACN;gBACE,WAAW,EAAE,KAAK;aACnB;SACF;QACD,uBAAuB,EAAE,KAAK;KAC/B;CACO,CAAC"}
|
@@ -1,11 +1,30 @@
|
|
1
1
|
declare const _default: (readonly ["enable-extend", {
|
2
|
-
readonly "jsonc/array-bracket-newline": readonly ["error",
|
2
|
+
readonly "jsonc/array-bracket-newline": readonly ["error", {
|
3
|
+
readonly multiline: true;
|
4
|
+
readonly minItems: null;
|
5
|
+
}];
|
3
6
|
readonly "jsonc/array-bracket-spacing": readonly ["error", "never", {
|
4
7
|
readonly singleValue: false;
|
5
8
|
readonly objectsInArrays: false;
|
6
9
|
readonly arraysInArrays: false;
|
7
10
|
}];
|
8
|
-
readonly "jsonc/array-element-newline": readonly ["error",
|
11
|
+
readonly "jsonc/array-element-newline": readonly ["error", {
|
12
|
+
readonly ArrayExpression: {
|
13
|
+
readonly consistent: true;
|
14
|
+
readonly multiline: true;
|
15
|
+
readonly minItems: 4;
|
16
|
+
};
|
17
|
+
readonly ArrayPattern: {
|
18
|
+
readonly consistent: true;
|
19
|
+
readonly multiline: true;
|
20
|
+
readonly minItems: 4;
|
21
|
+
};
|
22
|
+
readonly JSONArrayExpression: {
|
23
|
+
readonly consistent: true;
|
24
|
+
readonly multiline: true;
|
25
|
+
readonly minItems: 4;
|
26
|
+
};
|
27
|
+
}];
|
9
28
|
readonly "jsonc/comma-dangle": readonly ["error", "never"];
|
10
29
|
readonly "jsonc/comma-style": readonly ["error", "last"];
|
11
30
|
readonly "jsonc/indent": readonly ["error", 2];
|
@@ -31,14 +50,14 @@ declare const _default: (readonly ["enable-extend", {
|
|
31
50
|
readonly "jsonc/object-curly-newline": readonly ["error", {
|
32
51
|
readonly consistent: true;
|
33
52
|
readonly multiline: true;
|
34
|
-
readonly minProperties:
|
53
|
+
readonly minProperties: 4;
|
35
54
|
}];
|
36
55
|
readonly "jsonc/object-curly-spacing": readonly ["error", "always", {
|
37
56
|
readonly arraysInObjects: true;
|
38
57
|
readonly objectsInObjects: true;
|
39
58
|
}];
|
40
59
|
readonly "jsonc/object-property-newline": readonly ["error", {
|
41
|
-
readonly allowAllPropertiesOnSameLine:
|
60
|
+
readonly allowAllPropertiesOnSameLine: true;
|
42
61
|
}];
|
43
62
|
readonly "jsonc/quote-props": readonly ["error", "always"];
|
44
63
|
readonly "jsonc/quotes": readonly ["error", "double", {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAAkC"}
|
@@ -1,11 +1,30 @@
|
|
1
1
|
declare const _default: (readonly ["enable-extend", {
|
2
|
-
readonly "jsonc/array-bracket-newline": readonly ["error",
|
2
|
+
readonly "jsonc/array-bracket-newline": readonly ["error", {
|
3
|
+
readonly multiline: true;
|
4
|
+
readonly minItems: null;
|
5
|
+
}];
|
3
6
|
readonly "jsonc/array-bracket-spacing": readonly ["error", "never", {
|
4
7
|
readonly singleValue: false;
|
5
8
|
readonly objectsInArrays: false;
|
6
9
|
readonly arraysInArrays: false;
|
7
10
|
}];
|
8
|
-
readonly "jsonc/array-element-newline": readonly ["error",
|
11
|
+
readonly "jsonc/array-element-newline": readonly ["error", {
|
12
|
+
readonly ArrayExpression: {
|
13
|
+
readonly consistent: true;
|
14
|
+
readonly multiline: true;
|
15
|
+
readonly minItems: 4;
|
16
|
+
};
|
17
|
+
readonly ArrayPattern: {
|
18
|
+
readonly consistent: true;
|
19
|
+
readonly multiline: true;
|
20
|
+
readonly minItems: 4;
|
21
|
+
};
|
22
|
+
readonly JSONArrayExpression: {
|
23
|
+
readonly consistent: true;
|
24
|
+
readonly multiline: true;
|
25
|
+
readonly minItems: 4;
|
26
|
+
};
|
27
|
+
}];
|
9
28
|
readonly "jsonc/comma-dangle": readonly ["error", "never"];
|
10
29
|
readonly "jsonc/comma-style": readonly ["error", "last"];
|
11
30
|
readonly "jsonc/indent": readonly ["error", 2];
|
@@ -31,14 +50,14 @@ declare const _default: (readonly ["enable-extend", {
|
|
31
50
|
readonly "jsonc/object-curly-newline": readonly ["error", {
|
32
51
|
readonly consistent: true;
|
33
52
|
readonly multiline: true;
|
34
|
-
readonly minProperties:
|
53
|
+
readonly minProperties: 4;
|
35
54
|
}];
|
36
55
|
readonly "jsonc/object-curly-spacing": readonly ["error", "always", {
|
37
56
|
readonly arraysInObjects: true;
|
38
57
|
readonly objectsInObjects: true;
|
39
58
|
}];
|
40
59
|
readonly "jsonc/object-property-newline": readonly ["error", {
|
41
|
-
readonly allowAllPropertiesOnSameLine:
|
60
|
+
readonly allowAllPropertiesOnSameLine: true;
|
42
61
|
}];
|
43
62
|
readonly "jsonc/quote-props": readonly ["error", "always"];
|
44
63
|
readonly "jsonc/quotes": readonly ["error", "double", {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/jsonc/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/jsonc/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAAmC"}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"_schemaVersion": "20.18.0",
|
3
3
|
"name": "linted",
|
4
|
-
"version": "18.
|
4
|
+
"version": "18.1.1",
|
5
5
|
"description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
|
6
6
|
"keywords": [
|
7
7
|
"eslint",
|
@@ -5,7 +5,6 @@ const
|
|
5
5
|
{
|
6
6
|
Never,
|
7
7
|
Always,
|
8
|
-
Consistent,
|
9
8
|
Strict,
|
10
9
|
Last,
|
11
10
|
Double,
|
@@ -15,7 +14,13 @@ export default [
|
|
15
14
|
enable_x,
|
16
15
|
{
|
17
16
|
// https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#extension-rules
|
18
|
-
"jsonc/array-bracket-newline": [
|
17
|
+
"jsonc/array-bracket-newline": [
|
18
|
+
ERROR,
|
19
|
+
{
|
20
|
+
multiline: true,
|
21
|
+
minItems: null,
|
22
|
+
},
|
23
|
+
] /* MUST match ../js/stylistic.ts */,
|
19
24
|
"jsonc/array-bracket-spacing": [
|
20
25
|
ERROR,
|
21
26
|
Never,
|
@@ -24,8 +29,27 @@ export default [
|
|
24
29
|
objectsInArrays: false,
|
25
30
|
arraysInArrays: false,
|
26
31
|
},
|
27
|
-
]
|
28
|
-
"jsonc/array-element-newline": [
|
32
|
+
] /* MUST match ../js/stylistic.ts */,
|
33
|
+
"jsonc/array-element-newline": [
|
34
|
+
ERROR,
|
35
|
+
{
|
36
|
+
ArrayExpression: {
|
37
|
+
consistent: true,
|
38
|
+
multiline: true,
|
39
|
+
minItems: 4,
|
40
|
+
},
|
41
|
+
ArrayPattern: {
|
42
|
+
consistent: true,
|
43
|
+
multiline: true,
|
44
|
+
minItems: 4,
|
45
|
+
},
|
46
|
+
JSONArrayExpression: {
|
47
|
+
consistent: true,
|
48
|
+
multiline: true,
|
49
|
+
minItems: 4,
|
50
|
+
},
|
51
|
+
},
|
52
|
+
] /* MUST match (+JSONArrayExpression)../js/stylistic.ts */,
|
29
53
|
"jsonc/comma-dangle": [ERROR, Never] /* trailing commas are NOT allowed in JSON */,
|
30
54
|
"jsonc/comma-style": [ERROR, Last],
|
31
55
|
"jsonc/indent": [ERROR, 2],
|
@@ -36,7 +60,7 @@ export default [
|
|
36
60
|
afterColon: true,
|
37
61
|
mode: Strict,
|
38
62
|
},
|
39
|
-
]
|
63
|
+
] /* MUST match ../js/stylistic.ts */,
|
40
64
|
"jsonc/no-dupe-keys": ERROR,
|
41
65
|
"jsonc/no-floating-decimal": ERROR,
|
42
66
|
"jsonc/no-irregular-whitespace": [
|
@@ -59,9 +83,9 @@ export default [
|
|
59
83
|
{
|
60
84
|
consistent: true,
|
61
85
|
multiline: true,
|
62
|
-
minProperties:
|
86
|
+
minProperties: 4,
|
63
87
|
},
|
64
|
-
]
|
88
|
+
] /* MUST match CHILD of ../js/stylistic.ts */,
|
65
89
|
"jsonc/object-curly-spacing": [
|
66
90
|
ERROR,
|
67
91
|
Always,
|
@@ -69,13 +93,13 @@ export default [
|
|
69
93
|
arraysInObjects: true,
|
70
94
|
objectsInObjects: true,
|
71
95
|
},
|
72
|
-
]
|
96
|
+
] /* MUST match ../js/stylistic.ts */,
|
73
97
|
"jsonc/object-property-newline": [
|
74
98
|
ERROR,
|
75
99
|
{
|
76
|
-
allowAllPropertiesOnSameLine:
|
100
|
+
allowAllPropertiesOnSameLine: true,
|
77
101
|
},
|
78
|
-
]
|
102
|
+
] /* MUST match ../js/stylistic.ts */,
|
79
103
|
"jsonc/quote-props": [ERROR, Always],
|
80
104
|
"jsonc/quotes": [
|
81
105
|
ERROR,
|