@eslinted/defaults 19.5.0 → 19.5.2

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/.gitattributes CHANGED
@@ -1,23 +1,25 @@
1
1
  ##############################
2
2
  #### .gitattributes ####
3
- #### v253.0.0 ####
3
+ #### v253.1.0 ####
4
4
  ##############################
5
5
 
6
6
  * text=auto
7
7
 
8
+ *.ics text eol=crlf
9
+
8
10
  *.cmd text eol=crlf
9
11
  *.bat text eol=crlf
10
12
  *.reg text eol=crlf working-tree-encoding=UTF-8
11
- *.ics text eol=crlf
13
+
14
+ *.ps1 text eol=lf working-tree-encoding=UTF-8
15
+ *.psm1 text eol=lf working-tree-encoding=UTF-8
16
+ *.psd1 text eol=lf working-tree-encoding=UTF-8
17
+ *.ps1xml text eol=lf working-tree-encoding=UTF-8
12
18
 
13
19
  *.sh text eol=lf
14
20
  *.bashrc text eol=lf
15
21
  *.bash_profile text eol=lf
16
22
  *.bash_aliases text eol=lf
17
- *.ps1 text eol=lf
18
- *.psm1 text eol=lf
19
- *.psd1 text eol=lf
20
- *.ps1xml text eol=lf
21
23
 
22
24
  LICENSE text eol=lf
23
25
  *.gitattributes text eol=lf
package/dist/index.d.ts CHANGED
@@ -992,9 +992,6 @@ declare const _default: {
992
992
  } | {
993
993
  rules: {
994
994
  readonly "jsonc/no-comments": import("./rules/state.js").State.ON;
995
- };
996
- } | {
997
- rules: {
998
995
  readonly "jsonc/array-bracket-spacing": import("./rules/state.js").State.WARN;
999
996
  readonly "jsonc/array-element-newline": readonly [
1000
997
  import("./rules/state.js").State.WARN,
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAIE"}
@@ -975,9 +975,6 @@ declare const _default: {
975
975
  } | {
976
976
  rules: {
977
977
  readonly "jsonc/no-comments": import("./state.js").State.ON;
978
- };
979
- } | {
980
- rules: {
981
978
  readonly "jsonc/array-bracket-spacing": import("./state.js").State.WARN;
982
979
  readonly "jsonc/array-element-newline": readonly [
983
980
  import("./state.js").State.WARN,
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,wBAYE"}
@@ -8,9 +8,6 @@ declare const _default: ({
8
8
  } | {
9
9
  rules: {
10
10
  readonly "jsonc/no-comments": import("../state.js").State.ON;
11
- };
12
- } | {
13
- rules: {
14
11
  readonly "jsonc/array-bracket-spacing": import("../state.js").State.WARN;
15
12
  readonly "jsonc/array-element-newline": readonly [
16
13
  import("../state.js").State.WARN,
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAIE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
@@ -1,9 +1,7 @@
1
1
  import json from "./json.js";
2
- import jsonc from "./plugin/index.js";
3
- import jsoncExtend from "./plugin/extend.js";
2
+ import jsonc from "./jsonc.js";
4
3
  export default [
5
4
  json,
6
5
  jsonc,
7
- jsoncExtend,
8
6
  ];
9
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAE1C,eAAe;IACb,IAAI;IACJ,KAAK;IACL,WAAW;CACZ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,eAAe;IACb,IAAI;IACJ,KAAK;CACN,CAAC"}
@@ -1,6 +1,7 @@
1
- import { State } from "../../state.js";
1
+ import { State } from "../state.js";
2
2
  declare const _default: {
3
3
  rules: {
4
+ readonly "jsonc/no-comments": State.ON;
4
5
  readonly "jsonc/array-bracket-spacing": State.WARN;
5
6
  readonly "jsonc/array-element-newline": readonly [
6
7
  State.WARN,
@@ -36,4 +37,4 @@ declare const _default: {
36
37
  };
37
38
  };
38
39
  export default _default;
39
- //# sourceMappingURL=extend.d.ts.map
40
+ //# sourceMappingURL=jsonc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsonc.d.ts","sourceRoot":"","sources":["../../../src/rules/json/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;AAGjC,wBAqEE"}
@@ -1,5 +1,6 @@
1
1
  export default {
2
2
  rules: {
3
+ "jsonc/no-comments": 2,
3
4
  "jsonc/array-bracket-spacing": 1,
4
5
  "jsonc/array-element-newline": [
5
6
  1,
@@ -34,4 +35,4 @@ export default {
34
35
  "jsonc/object-property-newline": 1,
35
36
  },
36
37
  };
37
- //# sourceMappingURL=extend.js.map
38
+ //# sourceMappingURL=jsonc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsonc.js","sourceRoot":"","sources":["../../../src/rules/json/jsonc.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QAML,mBAAmB,GAAU;QAmB7B,6BAA6B,GAAY;QACzC,6BAA6B,EAAE;;YAE7B,YAAY;SACb;QACD,oBAAoB,GAAU;QAC9B,mBAAmB,GAAY;QAC/B,cAAc,EAAE;;YAEd,CAAC;SACF;QACD,mBAAmB,GAAY;QAG/B,+BAA+B,EAAE;;YAE/B;gBACE,WAAW,EAAE,IAAI;gBACjB,YAAY,EAAE,IAAI;aACnB;SACF;QAMD,4BAA4B,EAAE;;YAE5B;gBACE,UAAU,EAAE,IAAI;gBAChB,SAAS,EAAE,IAAI;gBACf,aAAa,EAAE,CAAC;aACjB;SACF;QACD,4BAA4B,EAAE;;YAE5B,QAAQ;SACT;QACD,+BAA+B,GAAY;KAInC;CACX,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.5.0",
6
+ "version": "19.5.2",
7
7
  "repository": "github:jimmy-zhening-luo/linted-defaults",
8
8
  "description": "Default scopes for `linted`",
9
9
  "keywords": [],
@@ -1,9 +1,7 @@
1
1
  import json from "./json";
2
- import jsonc from "./plugin";
3
- import jsoncExtend from "./plugin/extend";
2
+ import jsonc from "./jsonc";
4
3
 
5
4
  export default [
6
5
  json,
7
6
  jsonc,
8
- jsoncExtend,
9
7
  ];
@@ -1,8 +1,31 @@
1
- import { State } from "../../state";
1
+ import { State } from "../state";
2
2
 
3
- // DOC: https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#extension-rules
3
+ // DOC: https://ota-meshi.github.io/eslint-plugin-jsonc/rules/
4
4
  export default {
5
5
  rules: {
6
+ // "jsonc/auto": State.OFF,
7
+ // "jsonc/key-name-casing": State.OFF,
8
+ // "jsonc/no-bigint-literals": State.OFF,
9
+ // "jsonc/no-binary-expression": State.OFF,
10
+ // "jsonc/no-binary-numeric-literals": State.OFF,
11
+ "jsonc/no-comments": State.ON,
12
+ // "jsonc/no-escape-sequence-in-identifier": State.OFF,
13
+ // "jsonc/no-hexadecimal-numeric-literals": State.OFF,
14
+ // "jsonc/no-infinity": State.OFF,
15
+ // "jsonc/no-nan": State.OFF,
16
+ // "jsonc/no-number-props": State.OFF,
17
+ // "jsonc/no-numeric-separators": State.OFF,
18
+ // "jsonc/no-octal-numeric-literals": State.OFF,
19
+ // "jsonc/no-parenthesized": State.OFF,
20
+ // "jsonc/no-plus-sign": State.OFF,
21
+ // "jsonc/no-regexp-literals": State.OFF,
22
+ // "jsonc/no-template-literals": State.OFF,
23
+ // "jsonc/no-undefined-value": State.OFF,
24
+ // "jsonc/no-unicode-codepoint-escapes": State.OFF,
25
+ // "jsonc/sort-array-values": State.OFF,
26
+ // "jsonc/sort-keys": State.OFF /* ESLint: json/sort-keys */,
27
+ // "jsonc/valid-json-number": State.OFF,
28
+ // "jsonc/vue-custom-block/no-parsing-error": State.OFF,
6
29
  // "jsonc/array-bracket-newline": State.OFF /* BUG: DO NOT CONFIGURE */,
7
30
  "jsonc/array-bracket-spacing": State.WARN,
8
31
  "jsonc/array-element-newline": [
@@ -1 +0,0 @@
1
- {"version":3,"file":"extend.d.ts","sourceRoot":"","sources":["../../../../src/rules/json/plugin/extend.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;AAGpC,wBA8CE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"extend.js","sourceRoot":"","sources":["../../../../src/rules/json/plugin/extend.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QAEL,6BAA6B,GAAY;QACzC,6BAA6B,EAAE;;YAE7B,YAAY;SACb;QACD,oBAAoB,GAAU;QAC9B,mBAAmB,GAAY;QAC/B,cAAc,EAAE;;YAEd,CAAC;SACF;QACD,mBAAmB,GAAY;QAG/B,+BAA+B,EAAE;;YAE/B;gBACE,WAAW,EAAE,IAAI;gBACjB,YAAY,EAAE,IAAI;aACnB;SACF;QAMD,4BAA4B,EAAE;;YAE5B;gBACE,UAAU,EAAE,IAAI;gBAChB,SAAS,EAAE,IAAI;gBACf,aAAa,EAAE,CAAC;aACjB;SACF;QACD,4BAA4B,EAAE;;YAE5B,QAAQ;SACT;QACD,+BAA+B,GAAY;KAInC;CACX,CAAC"}
@@ -1,8 +0,0 @@
1
- import { State } from "../../state.js";
2
- declare const _default: {
3
- rules: {
4
- readonly "jsonc/no-comments": State.ON;
5
- };
6
- };
7
- export default _default;
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rules/json/plugin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;;;;;;AAGpC,wBA0BE"}
@@ -1,6 +0,0 @@
1
- export default {
2
- rules: {
3
- "jsonc/no-comments": 2,
4
- },
5
- };
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rules/json/plugin/index.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QAML,mBAAmB,GAAU;KAkBrB;CACX,CAAC"}
@@ -1,30 +0,0 @@
1
- import { State } from "../../state";
2
-
3
- // DOC: https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#jsonc-rules
4
- export default {
5
- rules: {
6
- // "jsonc/auto": State.OFF,
7
- // "jsonc/key-name-casing": State.OFF,
8
- // "jsonc/no-bigint-literals": State.OFF,
9
- // "jsonc/no-binary-expression": State.OFF,
10
- // "jsonc/no-binary-numeric-literals": State.OFF,
11
- "jsonc/no-comments": State.ON,
12
- // "jsonc/no-escape-sequence-in-identifier": State.OFF,
13
- // "jsonc/no-hexadecimal-numeric-literals": State.OFF,
14
- // "jsonc/no-infinity": State.OFF,
15
- // "jsonc/no-nan": State.OFF,
16
- // "jsonc/no-number-props": State.OFF,
17
- // "jsonc/no-numeric-separators": State.OFF,
18
- // "jsonc/no-octal-numeric-literals": State.OFF,
19
- // "jsonc/no-parenthesized": State.OFF,
20
- // "jsonc/no-plus-sign": State.OFF,
21
- // "jsonc/no-regexp-literals": State.OFF,
22
- // "jsonc/no-template-literals": State.OFF,
23
- // "jsonc/no-undefined-value": State.OFF,
24
- // "jsonc/no-unicode-codepoint-escapes": State.OFF,
25
- // "jsonc/sort-array-values": State.OFF,
26
- // "jsonc/sort-keys": State.OFF /* ESLint: json/sort-keys */,
27
- // "jsonc/valid-json-number": State.OFF,
28
- // "jsonc/vue-custom-block/no-parsing-error": State.OFF,
29
- } as const,
30
- };