linted 21.0.0-rc.2 → 21.0.0-rc.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. package/dist/imports/index.d.ts +1 -363
  2. package/dist/imports/index.d.ts.map +1 -1
  3. package/dist/imports/parsers.d.ts +0 -2
  4. package/dist/imports/parsers.d.ts.map +1 -1
  5. package/dist/imports/parsers.js +0 -2
  6. package/dist/imports/parsers.js.map +1 -1
  7. package/dist/imports/plugins.d.ts +2 -362
  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 +9 -146
  12. package/dist/rules/index.d.ts.map +1 -1
  13. package/dist/rules/json/enable.d.ts +3 -23
  14. package/dist/rules/json/enable.d.ts.map +1 -1
  15. package/dist/rules/json/enable.js +4 -24
  16. package/dist/rules/json/enable.js.map +1 -1
  17. package/dist/rules/json/index.d.ts +4 -71
  18. package/dist/rules/json/index.d.ts.map +1 -1
  19. package/dist/rules/json/index.js +1 -2
  20. package/dist/rules/json/index.js.map +1 -1
  21. package/dist/rules/jsonc/index.d.ts +5 -75
  22. package/dist/rules/jsonc/index.d.ts.map +1 -1
  23. package/dist/rules/jsonc/override.d.ts +1 -4
  24. package/dist/rules/jsonc/override.d.ts.map +1 -1
  25. package/dist/rules/jsonc/override.js +2 -9
  26. package/dist/rules/jsonc/override.js.map +1 -1
  27. package/package.json +3 -4
  28. package/src/imports/parsers.ts +0 -2
  29. package/src/imports/plugins.ts +2 -2
  30. package/src/rules/json/enable.ts +5 -25
  31. package/src/rules/json/index.ts +1 -2
  32. package/src/rules/jsonc/override.ts +2 -12
  33. package/dist/rules/json/enable_x.d.ts +0 -50
  34. package/dist/rules/json/enable_x.d.ts.map +0 -1
  35. package/dist/rules/json/enable_x.js +0 -81
  36. package/dist/rules/json/enable_x.js.map +0 -1
  37. package/src/rules/json/enable_x.ts +0 -95
@@ -1,31 +1,11 @@
1
1
  import { enable, level } from "../../_strings/index.js";
2
- const { ERROR, OFF } = level;
2
+ const { ERROR } = level;
3
3
  export default [
4
4
  enable,
5
5
  {
6
- "jsonc/auto": OFF,
7
- "jsonc/key-name-casing": OFF,
8
- "jsonc/no-bigint-literals": ERROR,
9
- "jsonc/no-binary-expression": ERROR,
10
- "jsonc/no-binary-numeric-literals": ERROR,
11
- "jsonc/no-comments": ERROR,
12
- "jsonc/no-escape-sequence-in-identifier": ERROR,
13
- "jsonc/no-hexadecimal-numeric-literals": ERROR,
14
- "jsonc/no-infinity": ERROR,
15
- "jsonc/no-nan": ERROR,
16
- "jsonc/no-number-props": ERROR,
17
- "jsonc/no-numeric-separators": ERROR,
18
- "jsonc/no-octal-numeric-literals": ERROR,
19
- "jsonc/no-parenthesized": ERROR,
20
- "jsonc/no-plus-sign": ERROR,
21
- "jsonc/no-regexp-literals": ERROR,
22
- "jsonc/no-template-literals": ERROR,
23
- "jsonc/no-undefined-value": ERROR,
24
- "jsonc/no-unicode-codepoint-escapes": ERROR,
25
- "jsonc/sort-array-values": OFF,
26
- "jsonc/sort-keys": OFF,
27
- "jsonc/valid-json-number": ERROR,
28
- "jsonc/vue-custom-block/no-parsing-error": ERROR,
6
+ "json/no-duplicate-keys": ERROR,
7
+ "json/no-empty-keys": ERROR,
8
+ "json/no-unsafe-values": ERROR,
29
9
  },
30
10
  ];
31
11
  //# sourceMappingURL=enable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../src/rules/json/enable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,KAAK,CAAC;AAE7B,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
+ {"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../src/rules/json/enable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;AAExB,eAAe;IACb,MAAM;IACN;QAEE,wBAAwB,EAAE,KAAK;QAC/B,oBAAoB,EAAE,KAAK;QAC3B,uBAAuB,EAAE,KAAK;KAC/B;CACO,CAAC"}
@@ -1,74 +1,7 @@
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";
1
+ declare const _default: (readonly ["enable", {
2
+ readonly "json/no-duplicate-keys": "error";
3
+ readonly "json/no-empty-keys": "error";
4
+ readonly "json/no-unsafe-values": "error";
72
5
  }])[];
73
6
  export default _default;
74
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAAkC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":";;;;;AAEA,wBAAwB"}
@@ -1,4 +1,3 @@
1
- import enable_x from "./enable_x.js";
2
1
  import enable from "./enable.js";
3
- export default [enable_x, enable];
2
+ export default [enable];
4
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
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,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,eAAe,CAAC,MAAM,CAAC,CAAC"}
@@ -1,77 +1,7 @@
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
- }])[];
1
+ declare const _default: (readonly ["enable", {
2
+ readonly "json/no-duplicate-keys": "error";
3
+ readonly "json/no-empty-keys": "error";
4
+ readonly "json/no-unsafe-values": "error";
5
+ }] | readonly ["override", {}])[];
76
6
  export default _default;
77
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/jsonc/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAAmC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/jsonc/index.ts"],"names":[],"mappings":";;;;;AAGA,wBAAmC"}
@@ -1,6 +1,3 @@
1
- declare const _default: readonly ["override", {
2
- readonly "jsonc/no-comments": "off";
3
- readonly "jsonc/comma-dangle": readonly ["error", "always-multiline"];
4
- }];
1
+ declare const _default: readonly ["override", {}];
5
2
  export default _default;
6
3
  //# sourceMappingURL=override.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"override.d.ts","sourceRoot":"","sources":["../../../src/rules/jsonc/override.ts"],"names":[],"mappings":";;;;AAKA,wBAUW"}
1
+ {"version":3,"file":"override.d.ts","sourceRoot":"","sources":["../../../src/rules/jsonc/override.ts"],"names":[],"mappings":";AAEA,wBAGW"}
@@ -1,13 +1,6 @@
1
- import { override, level, state } from "../../_strings/index.js";
2
- const { ERROR, OFF } = level, { AlwaysMultiline } = state;
1
+ import { override } from "../../_strings/index.js";
3
2
  export default [
4
3
  override,
5
- {
6
- "jsonc/no-comments": OFF,
7
- "jsonc/comma-dangle": [
8
- ERROR,
9
- AlwaysMultiline,
10
- ],
11
- },
4
+ {},
12
5
  ];
13
6
  //# sourceMappingURL=override.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"override.js","sourceRoot":"","sources":["../../../src/rules/jsonc/override.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAExD,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,KAAK,EAC5B,EAAE,eAAe,EAAE,GAAG,KAAK,CAAC;AAE5B,eAAe;IACb,QAAQ;IACR;QAEE,mBAAmB,EAAE,GAAG;QACxB,oBAAoB,EAAE;YACpB,KAAK;YACL,eAAe;SAChB;KACF;CACO,CAAC"}
1
+ {"version":3,"file":"override.js","sourceRoot":"","sources":["../../../src/rules/jsonc/override.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,eAAe;IACb,QAAQ;IACR,EAAE;CACM,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "_schemaVersion": "22.11.0",
3
3
  "name": "linted",
4
- "version": "21.0.0-rc.2",
4
+ "version": "21.0.0-rc.3",
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",
@@ -62,17 +62,16 @@
62
62
  }
63
63
  },
64
64
  "dependencies": {
65
- "@eslinted/core": "10.1.2",
65
+ "@eslint/json": "0.6.0",
66
+ "@eslinted/core": "11.0.0-rc.0",
66
67
  "@html-eslint/eslint-plugin": "0.27.0",
67
68
  "@html-eslint/parser": "0.27.0",
68
69
  "@stylistic/eslint-plugin": "2.10.1",
69
70
  "@typescript-eslint/eslint-plugin": "8.13.0",
70
71
  "@typescript-eslint/parser": "8.13.0",
71
- "eslint-plugin-jsonc": "2.17.0",
72
72
  "eslint-plugin-mocha": "10.5.0",
73
73
  "eslint-plugin-svelte": "2.46.0",
74
74
  "eslint-plugin-yml": "1.15.0",
75
- "jsonc-eslint-parser": "2.4.0",
76
75
  "svelte": "^5.1.12",
77
76
  "svelte-eslint-parser": "0.43.0",
78
77
  "yaml-eslint-parser": "1.2.3"
@@ -1,13 +1,11 @@
1
1
  import ts from "@typescript-eslint/parser";
2
2
  import svelte from "svelte-eslint-parser";
3
3
  import html from "@html-eslint/parser";
4
- import jsonc from "jsonc-eslint-parser";
5
4
  import yml from "yaml-eslint-parser";
6
5
 
7
6
  export default {
8
7
  ts,
9
8
  svelte,
10
9
  html,
11
- jsonc,
12
10
  yml,
13
11
  } as const;
@@ -3,7 +3,7 @@ import typescript_eslint from "@typescript-eslint/eslint-plugin";
3
3
  import svelte from "eslint-plugin-svelte";
4
4
  import mocha from "eslint-plugin-mocha";
5
5
  import html_eslint from "@html-eslint/eslint-plugin";
6
- import jsonc from "eslint-plugin-jsonc";
6
+ import json from "@eslint/json";
7
7
  import yml from "eslint-plugin-yml";
8
8
 
9
9
  export default {
@@ -12,6 +12,6 @@ export default {
12
12
  svelte,
13
13
  mocha,
14
14
  "@html-eslint": html_eslint,
15
- jsonc,
15
+ json,
16
16
  yml,
17
17
  } as const;
@@ -1,33 +1,13 @@
1
1
  import { enable, level } from "../../_strings";
2
2
 
3
- const { ERROR, OFF } = level;
3
+ const { ERROR } = level;
4
4
 
5
5
  export default [
6
6
  enable,
7
7
  {
8
- // https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#jsonc-rules
9
- "jsonc/auto": OFF,
10
- "jsonc/key-name-casing": OFF,
11
- "jsonc/no-bigint-literals": ERROR,
12
- "jsonc/no-binary-expression": ERROR,
13
- "jsonc/no-binary-numeric-literals": ERROR,
14
- "jsonc/no-comments": ERROR /* comments are NOT allowed in JSON */,
15
- "jsonc/no-escape-sequence-in-identifier": ERROR,
16
- "jsonc/no-hexadecimal-numeric-literals": ERROR,
17
- "jsonc/no-infinity": ERROR,
18
- "jsonc/no-nan": ERROR,
19
- "jsonc/no-number-props": ERROR,
20
- "jsonc/no-numeric-separators": ERROR,
21
- "jsonc/no-octal-numeric-literals": ERROR,
22
- "jsonc/no-parenthesized": ERROR,
23
- "jsonc/no-plus-sign": ERROR,
24
- "jsonc/no-regexp-literals": ERROR,
25
- "jsonc/no-template-literals": ERROR,
26
- "jsonc/no-undefined-value": ERROR,
27
- "jsonc/no-unicode-codepoint-escapes": ERROR,
28
- "jsonc/sort-array-values": OFF,
29
- "jsonc/sort-keys": OFF,
30
- "jsonc/valid-json-number": ERROR,
31
- "jsonc/vue-custom-block/no-parsing-error": ERROR,
8
+ // https://github.com/eslint/json?tab=readme-ov-file#rules
9
+ "json/no-duplicate-keys": ERROR,
10
+ "json/no-empty-keys": ERROR,
11
+ "json/no-unsafe-values": ERROR,
32
12
  },
33
13
  ] as const;
@@ -1,4 +1,3 @@
1
- import enable_x from "./enable_x";
2
1
  import enable from "./enable";
3
2
 
4
- export default [enable_x, enable];
3
+ export default [enable];
@@ -1,16 +1,6 @@
1
- import { override, level, state } from "../../_strings";
2
-
3
- const { ERROR, OFF } = level,
4
- { AlwaysMultiline } = state;
1
+ import { override } from "../../_strings";
5
2
 
6
3
  export default [
7
4
  override,
8
- {
9
- // https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#jsonc-rules
10
- "jsonc/no-comments": OFF /* comments ARE allowed in JSONC */,
11
- "jsonc/comma-dangle": [
12
- ERROR,
13
- AlwaysMultiline,
14
- ] /* trailing commas ARE allowed in JSONC */,
15
- },
5
+ {},
16
6
  ] as const;
@@ -1,50 +0,0 @@
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
- }];
49
- export default _default;
50
- //# sourceMappingURL=enable_x.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enable_x.d.ts","sourceRoot":"","sources":["../../../src/rules/json/enable_x.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,wBA8EW"}
@@ -1,81 +0,0 @@
1
- import { enable_x, level, state } from "../../_strings/index.js";
2
- const { ERROR, OFF, } = level, { Always, Consistent, Double, Last, Never, Strict, } = state;
3
- export default [
4
- enable_x,
5
- {
6
- "jsonc/array-bracket-newline": OFF,
7
- "jsonc/array-bracket-spacing": [
8
- ERROR,
9
- Never,
10
- {
11
- singleValue: false,
12
- objectsInArrays: false,
13
- arraysInArrays: false,
14
- },
15
- ],
16
- "jsonc/array-element-newline": [
17
- ERROR,
18
- Consistent,
19
- ],
20
- "jsonc/comma-dangle": [ERROR, Never],
21
- "jsonc/comma-style": [ERROR, Last],
22
- "jsonc/indent": [ERROR, 2],
23
- "jsonc/key-spacing": [
24
- ERROR,
25
- {
26
- beforeColon: false,
27
- afterColon: true,
28
- mode: Strict,
29
- },
30
- ],
31
- "jsonc/no-dupe-keys": ERROR,
32
- "jsonc/no-floating-decimal": ERROR,
33
- "jsonc/no-irregular-whitespace": [
34
- ERROR,
35
- {
36
- skipStrings: true,
37
- skipComments: true,
38
- skipRegExps: true,
39
- skipTemplates: true,
40
- skipJSXText: true,
41
- },
42
- ],
43
- "jsonc/no-multi-str": ERROR,
44
- "jsonc/no-octal-escape": ERROR,
45
- "jsonc/no-octal": ERROR,
46
- "jsonc/no-sparse-arrays": ERROR,
47
- "jsonc/no-useless-escape": ERROR,
48
- "jsonc/object-curly-newline": [
49
- ERROR,
50
- {
51
- consistent: true,
52
- multiline: true,
53
- minProperties: 4,
54
- },
55
- ],
56
- "jsonc/object-curly-spacing": [
57
- ERROR,
58
- Always,
59
- {
60
- arraysInObjects: true,
61
- objectsInObjects: true,
62
- },
63
- ],
64
- "jsonc/object-property-newline": [
65
- ERROR,
66
- {
67
- allowAllPropertiesOnSameLine: true,
68
- },
69
- ],
70
- "jsonc/quote-props": [ERROR, Always],
71
- "jsonc/quotes": [
72
- ERROR,
73
- Double,
74
- {
75
- avoidEscape: false,
76
- },
77
- ],
78
- "jsonc/space-unary-ops": ERROR,
79
- },
80
- ];
81
- //# sourceMappingURL=enable_x.js.map
@@ -1 +0,0 @@
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,EACE,KAAK,EACL,GAAG,GACJ,GAAG,KAAK,EACT,EACE,MAAM,EACN,UAAU,EACV,MAAM,EACN,IAAI,EACJ,KAAK,EACL,MAAM,GACP,GAAG,KAAK,CAAC;AAEV,eAAe;IACb,QAAQ;IACR;QAEE,6BAA6B,EAAE,GAAG;QAClC,6BAA6B,EAAE;YAC7B,KAAK;YACL,KAAK;YACL;gBACE,WAAW,EAAE,KAAK;gBAClB,eAAe,EAAE,KAAK;gBACtB,cAAc,EAAE,KAAK;aACtB;SACF;QACD,6BAA6B,EAAE;YAC7B,KAAK;YACL,UAAU;SACX;QACD,oBAAoB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;QACpC,mBAAmB,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC;QAClC,cAAc,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC;QAC1B,mBAAmB,EAAE;YACnB,KAAK;YACL;gBACE,WAAW,EAAE,KAAK;gBAClB,UAAU,EAAE,IAAI;gBAChB,IAAI,EAAE,MAAM;aACb;SACF;QACD,oBAAoB,EAAE,KAAK;QAC3B,2BAA2B,EAAE,KAAK;QAClC,+BAA+B,EAAE;YAC/B,KAAK;YACL;gBACE,WAAW,EAAE,IAAI;gBACjB,YAAY,EAAE,IAAI;gBAClB,WAAW,EAAE,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,95 +0,0 @@
1
- import { enable_x, level, state } from "../../_strings";
2
-
3
- const
4
- {
5
- ERROR,
6
- OFF,
7
- } = level,
8
- {
9
- Always,
10
- Consistent,
11
- Double,
12
- Last,
13
- Never,
14
- Strict,
15
- } = state;
16
-
17
- export default [
18
- enable_x,
19
- {
20
- // https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#extension-rules
21
- "jsonc/array-bracket-newline": OFF /* DO NOT CHANGE */,
22
- "jsonc/array-bracket-spacing": [
23
- ERROR,
24
- Never,
25
- {
26
- singleValue: false,
27
- objectsInArrays: false,
28
- arraysInArrays: false,
29
- },
30
- ] /* MUST match ../js/stylistic.ts */,
31
- "jsonc/array-element-newline": [
32
- ERROR,
33
- Consistent,
34
- ],
35
- "jsonc/comma-dangle": [ERROR, Never] /* trailing commas are NOT allowed in JSON */,
36
- "jsonc/comma-style": [ERROR, Last],
37
- "jsonc/indent": [ERROR, 2],
38
- "jsonc/key-spacing": [
39
- ERROR,
40
- {
41
- beforeColon: false,
42
- afterColon: true,
43
- mode: Strict,
44
- },
45
- ] /* MUST match ../js/stylistic.ts */,
46
- "jsonc/no-dupe-keys": ERROR,
47
- "jsonc/no-floating-decimal": ERROR,
48
- "jsonc/no-irregular-whitespace": [
49
- ERROR,
50
- {
51
- skipStrings: true,
52
- skipComments: true,
53
- skipRegExps: true,
54
- skipTemplates: true,
55
- skipJSXText: true,
56
- },
57
- ],
58
- "jsonc/no-multi-str": ERROR,
59
- "jsonc/no-octal-escape": ERROR,
60
- "jsonc/no-octal": ERROR,
61
- "jsonc/no-sparse-arrays": ERROR,
62
- "jsonc/no-useless-escape": ERROR,
63
- "jsonc/object-curly-newline": [
64
- ERROR,
65
- {
66
- consistent: true,
67
- multiline: true,
68
- minProperties: 4,
69
- },
70
- ] /* MUST match CHILD of ../js/stylistic.ts */,
71
- "jsonc/object-curly-spacing": [
72
- ERROR,
73
- Always,
74
- {
75
- arraysInObjects: true,
76
- objectsInObjects: true,
77
- },
78
- ] /* MUST match ../js/stylistic.ts */,
79
- "jsonc/object-property-newline": [
80
- ERROR,
81
- {
82
- allowAllPropertiesOnSameLine: true,
83
- },
84
- ] /* MUST match ../js/stylistic.ts */,
85
- "jsonc/quote-props": [ERROR, Always],
86
- "jsonc/quotes": [
87
- ERROR,
88
- Double,
89
- {
90
- avoidEscape: false,
91
- },
92
- ],
93
- "jsonc/space-unary-ops": ERROR,
94
- },
95
- ] as const;