@eslinted/defaults 19.8.0 → 20.0.0

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.
@@ -6,8 +6,7 @@ declare const _default: {
6
6
  html: string[];
7
7
  css: string[];
8
8
  json: string[];
9
- jsonc: never[];
10
- jsoncc: string[];
9
+ jsonc: string[];
11
10
  yml: string[];
12
11
  };
13
12
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/files/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,wBAyCE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/files/index.ts"],"names":[],"mappings":";;;;;;;;;;;AAGA,wBAwCE"}
@@ -11,8 +11,7 @@ export default {
11
11
  "json",
12
12
  "JSON-tmLanguage",
13
13
  ]),
14
- jsonc: [],
15
- jsoncc: pattern([
14
+ jsonc: pattern([
16
15
  "jsonc",
17
16
  "code-snippets",
18
17
  "code-workspace",
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/files/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,MAAM,QAAQ,CAAC;AAExB,eAAe;IACb,EAAE;IACF,EAAE,EAAE,OAAO,CAAC,IAAI,CAAC;IACjB,KAAK,EAAE,OAAO,CAAC,SAAS,CAAC;IACzB,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC;IACzB,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC;IACrB,GAAG,EAAE,OAAO,CAAC,KAAK,CAAC;IACnB,IAAI,EAAE,OAAO,CACX;QACE,MAAM;QACN,iBAAiB;KAClB,CACF;IACD,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,OAAO,CACb;QACE,OAAO;QACP,eAAe;QACf,gBAAgB;KACjB,EACD;QACE,KAAK,EAAE;YACL,eAAe;YACf,iBAAiB;SAClB;QACD,OAAO,EAAE,CAAC,SAAS,CAAC;QACpB,KAAK,EAAE,CAAC,mBAAmB,CAAC;KAC7B,CACF;IACD,GAAG,EAAE,OAAO,CACV;QACE,KAAK;QACL,MAAM;QACN,aAAa;QACb,cAAc;QACd,iBAAiB;KAClB,EACD;QACE,OAAO,EAAE,CAAC,SAAS,CAAC;KACrB,CACF;CACF,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/files/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,MAAM,QAAQ,CAAC;AAExB,eAAe;IACb,EAAE;IACF,EAAE,EAAE,OAAO,CAAC,IAAI,CAAC;IACjB,KAAK,EAAE,OAAO,CAAC,SAAS,CAAC;IACzB,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC;IACzB,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC;IACrB,GAAG,EAAE,OAAO,CAAC,KAAK,CAAC;IACnB,IAAI,EAAE,OAAO,CACX;QACE,MAAM;QACN,iBAAiB;KAClB,CACF;IACD,KAAK,EAAE,OAAO,CACZ;QACE,OAAO;QACP,eAAe;QACf,gBAAgB;KACjB,EACD;QACE,KAAK,EAAE;YACL,eAAe;YACf,iBAAiB;SAClB;QACD,OAAO,EAAE,CAAC,SAAS,CAAC;QACpB,KAAK,EAAE,CAAC,mBAAmB,CAAC;KAC7B,CACF;IACD,GAAG,EAAE,OAAO,CACV;QACE,KAAK;QACL,MAAM;QACN,aAAa;QACb,cAAc;QACd,iBAAiB;KAClB,EACD;QACE,OAAO,EAAE,CAAC,SAAS,CAAC;KACrB,CACF;CACF,CAAC"}
package/dist/index.d.ts CHANGED
@@ -7,8 +7,7 @@ declare const _default: {
7
7
  html: string[];
8
8
  css: string[];
9
9
  json: string[];
10
- jsonc: never[];
11
- jsoncc: string[];
10
+ jsonc: string[];
12
11
  yml: string[];
13
12
  };
14
13
  ignores: {
@@ -1028,16 +1027,12 @@ declare const _default: {
1028
1027
  };
1029
1028
  })[];
1030
1029
  jsonc: {
1031
- rules: {
1032
- readonly "jsonc/no-comments": import("./rules/state.js").State.OFF;
1033
- };
1034
- }[];
1035
- jsoncc: {
1036
1030
  rules: {
1037
1031
  readonly "jsonc/comma-dangle": readonly [
1038
1032
  import("./rules/state.js").State.WARN,
1039
1033
  "always-multiline"
1040
1034
  ];
1035
+ readonly "jsonc/no-comments": import("./rules/state.js").State.OFF;
1041
1036
  };
1042
1037
  }[];
1043
1038
  yml: ({
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAIE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAIE"}
@@ -1011,16 +1011,12 @@ declare const _default: {
1011
1011
  };
1012
1012
  })[];
1013
1013
  jsonc: {
1014
- rules: {
1015
- readonly "jsonc/no-comments": import("./state.js").State.OFF;
1016
- };
1017
- }[];
1018
- jsoncc: {
1019
1014
  rules: {
1020
1015
  readonly "jsonc/comma-dangle": readonly [
1021
1016
  import("./state.js").State.WARN,
1022
1017
  "always-multiline"
1023
1018
  ];
1019
+ readonly "jsonc/no-comments": import("./state.js").State.OFF;
1024
1020
  };
1025
1021
  }[];
1026
1022
  yml: ({
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,wBAYE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,wBAWE"}
@@ -7,7 +7,6 @@ import html from "./html/index.js";
7
7
  import css from "./css/index.js";
8
8
  import json from "./json/index.js";
9
9
  import jsonc from "./jsonc/index.js";
10
- import jsoncc from "./jsoncc/index.js";
11
10
  import yml from "./yml/index.js";
12
11
  export default {
13
12
  "*": global,
@@ -19,7 +18,6 @@ export default {
19
18
  css,
20
19
  json,
21
20
  jsonc,
22
- jsoncc,
23
21
  yml,
24
22
  };
25
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,GAAG,MAAM,OAAO,CAAC;AAExB,eAAe;IACb,GAAG,EAAE,MAAM;IACX,EAAE;IACF,EAAE;IACF,KAAK;IACL,MAAM;IACN,IAAI;IACJ,GAAG;IACH,IAAI;IACJ,KAAK;IACL,MAAM;IACN,GAAG;CACJ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,GAAG,MAAM,OAAO,CAAC;AAExB,eAAe;IACb,GAAG,EAAE,MAAM;IACX,EAAE;IACF,EAAE;IACF,KAAK;IACL,MAAM;IACN,IAAI;IACJ,GAAG;IACH,IAAI;IACJ,KAAK;IACL,GAAG;CACJ,CAAC"}
@@ -1,6 +1,10 @@
1
1
  import { State } from "../state.js";
2
2
  declare const _default: {
3
3
  rules: {
4
+ readonly "jsonc/comma-dangle": readonly [
5
+ State.WARN,
6
+ "always-multiline"
7
+ ];
4
8
  readonly "jsonc/no-comments": State.OFF;
5
9
  };
6
10
  }[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/jsonc/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;;;;;;AAEjC,wBAME"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/jsonc/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;;;;;;;AAEjC,wBAUE"}
@@ -1,6 +1,10 @@
1
1
  export default [
2
2
  {
3
3
  rules: {
4
+ "jsonc/comma-dangle": [
5
+ 1,
6
+ "always-multiline",
7
+ ],
4
8
  "jsonc/no-comments": 0,
5
9
  },
6
10
  },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/jsonc/index.ts"],"names":[],"mappings":"AAEA,eAAe;IACb;QACE,KAAK,EAAE;YACL,mBAAmB,GAAW;SACtB;KACX;CACF,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/jsonc/index.ts"],"names":[],"mappings":"AAEA,eAAe;IACb;QACE,KAAK,EAAE;YACL,oBAAoB,EAAE;;gBAEpB,kBAAkB;aACnB;YACD,mBAAmB,GAAW;SACtB;KACX;CACF,CAAC"}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "$schema": "https://json.schemastore.org/package",
4
4
  "$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
5
5
  "name": "@eslinted/defaults",
6
- "version": "19.8.0",
6
+ "version": "20.0.0",
7
7
  "repository": "github:jimmy-zhening-luo/linted-defaults",
8
8
  "description": "Default scopes for `linted`",
9
9
  "keywords": [],
@@ -14,8 +14,7 @@ export default {
14
14
  "JSON-tmLanguage",
15
15
  ],
16
16
  ),
17
- jsonc: [],
18
- jsoncc: pattern(
17
+ jsonc: pattern(
19
18
  [
20
19
  "jsonc",
21
20
  "code-snippets",
@@ -7,7 +7,6 @@ import html from "./html";
7
7
  import css from "./css";
8
8
  import json from "./json";
9
9
  import jsonc from "./jsonc";
10
- import jsoncc from "./jsoncc";
11
10
  import yml from "./yml";
12
11
 
13
12
  export default {
@@ -20,6 +19,5 @@ export default {
20
19
  css,
21
20
  json,
22
21
  jsonc,
23
- jsoncc,
24
22
  yml,
25
23
  };
@@ -3,6 +3,10 @@ import { State } from "../state";
3
3
  export default [
4
4
  {
5
5
  rules: {
6
+ "jsonc/comma-dangle": [
7
+ State.WARN,
8
+ "always-multiline",
9
+ ],
6
10
  "jsonc/no-comments": State.OFF,
7
11
  } as const,
8
12
  },
@@ -1,11 +0,0 @@
1
- import { State } from "../state.js";
2
- declare const _default: {
3
- rules: {
4
- readonly "jsonc/comma-dangle": readonly [
5
- State.WARN,
6
- "always-multiline"
7
- ];
8
- };
9
- }[];
10
- export default _default;
11
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/jsoncc/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;;;;;;AAEjC,wBASE"}
@@ -1,11 +0,0 @@
1
- export default [
2
- {
3
- rules: {
4
- "jsonc/comma-dangle": [
5
- 1,
6
- "always-multiline",
7
- ],
8
- },
9
- },
10
- ];
11
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/jsoncc/index.ts"],"names":[],"mappings":"AAEA,eAAe;IACb;QACE,KAAK,EAAE;YACL,oBAAoB,EAAE;;gBAEpB,kBAAkB;aACnB;SACO;KACX;CACF,CAAC"}
@@ -1,12 +0,0 @@
1
- import { State } from "../state";
2
-
3
- export default [
4
- {
5
- rules: {
6
- "jsonc/comma-dangle": [
7
- State.WARN,
8
- "always-multiline",
9
- ],
10
- } as const,
11
- },
12
- ];