@eslinted/defaults 20.4.0-rc.2 → 20.4.0-rc.4

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/index.d.ts CHANGED
@@ -52,23 +52,11 @@ declare const _default: {
52
52
  readonly maxItems: 1;
53
53
  };
54
54
  };
55
- readonly JSONArrayExpression: {
56
- readonly singleLine: {
57
- readonly maxItems: 0;
58
- readonly spacing: "never";
59
- };
60
- };
61
- readonly JSONObjectExpression: {
62
- readonly singleLine: {
63
- readonly maxItems: 0;
64
- readonly spacing: "never";
65
- };
66
- };
67
55
  };
68
56
  }
69
57
  ];
70
58
  };
71
- }[] | {
59
+ } | {
72
60
  rules: {
73
61
  readonly "array-callback-return": readonly [
74
62
  import("./rules/state.js").State.ON,
@@ -989,60 +977,6 @@ declare const _default: {
989
977
  };
990
978
  }[];
991
979
  json: ({
992
- rules: {
993
- readonly "stylistic/eol-last": import("./rules/state.js").State.WARN;
994
- readonly "stylistic/linebreak-style": import("./rules/state.js").State.WARN;
995
- readonly "stylistic/exp-list-style": readonly [
996
- import("./rules/state.js").State.WARN,
997
- {
998
- readonly singleLine: {
999
- readonly maxItems: 2;
1000
- };
1001
- readonly overrides: {
1002
- readonly ExportNamedDeclaration: {
1003
- readonly singleLine: {
1004
- readonly maxItems: 1;
1005
- };
1006
- };
1007
- readonly TSInterfaceBody: {
1008
- readonly singleLine: {
1009
- readonly maxItems: 0;
1010
- readonly spacing: "never";
1011
- };
1012
- };
1013
- readonly TSEnumBody: {
1014
- readonly singleLine: {
1015
- readonly maxItems: 0;
1016
- readonly spacing: "never";
1017
- };
1018
- };
1019
- readonly TSTupleType: {
1020
- readonly singleLine: {
1021
- readonly maxItems: 3;
1022
- };
1023
- };
1024
- readonly TSTypeParameterDeclaration: {
1025
- readonly singleLine: {
1026
- readonly maxItems: 1;
1027
- };
1028
- };
1029
- readonly JSONArrayExpression: {
1030
- readonly singleLine: {
1031
- readonly maxItems: 0;
1032
- readonly spacing: "never";
1033
- };
1034
- };
1035
- readonly JSONObjectExpression: {
1036
- readonly singleLine: {
1037
- readonly maxItems: 0;
1038
- readonly spacing: "never";
1039
- };
1040
- };
1041
- };
1042
- }
1043
- ];
1044
- };
1045
- }[] | {
1046
980
  rules: {
1047
981
  readonly "json/no-unsafe-values": import("./rules/state.js").State.ON;
1048
982
  readonly "json/no-unnormalized-keys": import("./rules/state.js").State.ON;
@@ -1050,6 +984,11 @@ declare const _default: {
1050
984
  } | {
1051
985
  rules: {
1052
986
  readonly "jsonc/no-comments": import("./rules/state.js").State.ON;
987
+ readonly "jsonc/array-bracket-spacing": import("./rules/state.js").State.WARN;
988
+ readonly "jsonc/array-element-newline": readonly [
989
+ import("./rules/state.js").State.WARN,
990
+ "consistent"
991
+ ];
1053
992
  readonly "jsonc/comma-dangle": import("./rules/state.js").State.ON;
1054
993
  readonly "jsonc/comma-style": import("./rules/state.js").State.WARN;
1055
994
  readonly "jsonc/indent": readonly [
@@ -1065,6 +1004,22 @@ declare const _default: {
1065
1004
  readonly skipComments: true;
1066
1005
  }
1067
1006
  ];
1007
+ readonly "jsonc/object-curly-newline": readonly [
1008
+ import("./rules/state.js").State.WARN,
1009
+ {
1010
+ readonly consistent: true;
1011
+ readonly multiline: true;
1012
+ readonly minProperties: 2;
1013
+ }
1014
+ ];
1015
+ readonly "jsonc/object-curly-spacing": readonly [
1016
+ import("./rules/state.js").State.WARN,
1017
+ "always",
1018
+ {
1019
+ readonly emptyObjects: "never";
1020
+ }
1021
+ ];
1022
+ readonly "jsonc/object-property-newline": import("./rules/state.js").State.WARN;
1068
1023
  };
1069
1024
  })[];
1070
1025
  jsonc: {
@@ -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"}
@@ -37,22 +37,10 @@ declare const _default: {
37
37
  readonly maxItems: 1;
38
38
  };
39
39
  };
40
- readonly JSONArrayExpression: {
41
- readonly singleLine: {
42
- readonly maxItems: 0;
43
- readonly spacing: "never";
44
- };
45
- };
46
- readonly JSONObjectExpression: {
47
- readonly singleLine: {
48
- readonly maxItems: 0;
49
- readonly spacing: "never";
50
- };
51
- };
52
40
  };
53
41
  }
54
42
  ];
55
43
  };
56
- }[];
44
+ };
57
45
  export default _default;
58
46
  //# sourceMappingURL=global.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../src/rules/global.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhC,wBAwDE"}
1
+ {"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../src/rules/global.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhC,wBA0CE"}
@@ -1,58 +1,44 @@
1
- export default [
2
- {
3
- rules: {
4
- "stylistic/eol-last": 1,
5
- "stylistic/linebreak-style": 1,
6
- "stylistic/exp-list-style": [
7
- 1,
8
- {
9
- singleLine: {
10
- maxItems: 2,
11
- },
12
- overrides: {
13
- ExportNamedDeclaration: {
14
- singleLine: {
15
- maxItems: 1,
16
- },
17
- },
18
- TSInterfaceBody: {
19
- singleLine: {
20
- maxItems: 0,
21
- spacing: "never",
22
- },
23
- },
24
- TSEnumBody: {
25
- singleLine: {
26
- maxItems: 0,
27
- spacing: "never",
28
- },
1
+ export default {
2
+ rules: {
3
+ "stylistic/eol-last": 1,
4
+ "stylistic/linebreak-style": 1,
5
+ "stylistic/exp-list-style": [
6
+ 1,
7
+ {
8
+ singleLine: {
9
+ maxItems: 2,
10
+ },
11
+ overrides: {
12
+ ExportNamedDeclaration: {
13
+ singleLine: {
14
+ maxItems: 1,
29
15
  },
30
- TSTupleType: {
31
- singleLine: {
32
- maxItems: 3,
33
- },
16
+ },
17
+ TSInterfaceBody: {
18
+ singleLine: {
19
+ maxItems: 0,
20
+ spacing: "never",
34
21
  },
35
- TSTypeParameterDeclaration: {
36
- singleLine: {
37
- maxItems: 1,
38
- },
22
+ },
23
+ TSEnumBody: {
24
+ singleLine: {
25
+ maxItems: 0,
26
+ spacing: "never",
39
27
  },
40
- JSONArrayExpression: {
41
- singleLine: {
42
- maxItems: 0,
43
- spacing: "never",
44
- },
28
+ },
29
+ TSTupleType: {
30
+ singleLine: {
31
+ maxItems: 3,
45
32
  },
46
- JSONObjectExpression: {
47
- singleLine: {
48
- maxItems: 0,
49
- spacing: "never",
50
- },
33
+ },
34
+ TSTypeParameterDeclaration: {
35
+ singleLine: {
36
+ maxItems: 1,
51
37
  },
52
38
  },
53
39
  },
54
- ],
55
- },
40
+ },
41
+ ],
56
42
  },
57
- ];
43
+ };
58
44
  //# sourceMappingURL=global.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"global.js","sourceRoot":"","sources":["../../src/rules/global.ts"],"names":[],"mappings":"AAEA,eAAe;IACb;QACE,KAAK,EAAE;YACL,oBAAoB,GAAY;YAChC,2BAA2B,GAAY;YACvC,0BAA0B,EAAE;;gBAE1B;oBACE,UAAU,EAAE;wBACV,QAAQ,EAAE,CAAC;qBACZ;oBACD,SAAS,EAAE;wBACT,sBAAsB,EAAE;4BACtB,UAAU,EAAE;gCACV,QAAQ,EAAE,CAAC;6BACZ;yBACF;wBACD,eAAe,EAAE;4BACf,UAAU,EAAE;gCACV,QAAQ,EAAE,CAAC;gCACX,OAAO,EAAE,OAAO;6BACjB;yBACF;wBACD,UAAU,EAAE;4BACV,UAAU,EAAE;gCACV,QAAQ,EAAE,CAAC;gCACX,OAAO,EAAE,OAAO;6BACjB;yBACF;wBACD,WAAW,EAAE;4BACX,UAAU,EAAE;gCACV,QAAQ,EAAE,CAAC;6BACZ;yBACF;wBACD,0BAA0B,EAAE;4BAC1B,UAAU,EAAE;gCACV,QAAQ,EAAE,CAAC;6BACZ;yBACF;wBACD,mBAAmB,EAAE;4BACnB,UAAU,EAAE;gCACV,QAAQ,EAAE,CAAC;gCACX,OAAO,EAAE,OAAO;6BACjB;yBACF;wBACD,oBAAoB,EAAE;4BACpB,UAAU,EAAE;gCACV,QAAQ,EAAE,CAAC;gCACX,OAAO,EAAE,OAAO;6BACjB;yBACF;qBACF;iBACF;aACF;SACO;KACX;CACF,CAAC"}
1
+ {"version":3,"file":"global.js","sourceRoot":"","sources":["../../src/rules/global.ts"],"names":[],"mappings":"AAEA,eAAe;IACb,KAAK,EAAE;QACL,oBAAoB,GAAY;QAChC,2BAA2B,GAAY;QACvC,0BAA0B,EAAE;;YAE1B;gBACE,UAAU,EAAE;oBACV,QAAQ,EAAE,CAAC;iBACZ;gBACD,SAAS,EAAE;oBACT,sBAAsB,EAAE;wBACtB,UAAU,EAAE;4BACV,QAAQ,EAAE,CAAC;yBACZ;qBACF;oBACD,eAAe,EAAE;wBACf,UAAU,EAAE;4BACV,QAAQ,EAAE,CAAC;4BACX,OAAO,EAAE,OAAO;yBACjB;qBACF;oBACD,UAAU,EAAE;wBACV,UAAU,EAAE;4BACV,QAAQ,EAAE,CAAC;4BACX,OAAO,EAAE,OAAO;yBACjB;qBACF;oBACD,WAAW,EAAE;wBACX,UAAU,EAAE;4BACV,QAAQ,EAAE,CAAC;yBACZ;qBACF;oBACD,0BAA0B,EAAE;wBAC1B,UAAU,EAAE;4BACV,QAAQ,EAAE,CAAC;yBACZ;qBACF;iBACF;aACF;SACF;KACO;CACX,CAAC"}
@@ -37,23 +37,11 @@ declare const _default: {
37
37
  readonly maxItems: 1;
38
38
  };
39
39
  };
40
- readonly JSONArrayExpression: {
41
- readonly singleLine: {
42
- readonly maxItems: 0;
43
- readonly spacing: "never";
44
- };
45
- };
46
- readonly JSONObjectExpression: {
47
- readonly singleLine: {
48
- readonly maxItems: 0;
49
- readonly spacing: "never";
50
- };
51
- };
52
40
  };
53
41
  }
54
42
  ];
55
43
  };
56
- }[] | {
44
+ } | {
57
45
  rules: {
58
46
  readonly "array-callback-return": readonly [
59
47
  import("./state.js").State.ON,
@@ -974,60 +962,6 @@ declare const _default: {
974
962
  };
975
963
  }[];
976
964
  json: ({
977
- rules: {
978
- readonly "stylistic/eol-last": import("./state.js").State.WARN;
979
- readonly "stylistic/linebreak-style": import("./state.js").State.WARN;
980
- readonly "stylistic/exp-list-style": readonly [
981
- import("./state.js").State.WARN,
982
- {
983
- readonly singleLine: {
984
- readonly maxItems: 2;
985
- };
986
- readonly overrides: {
987
- readonly ExportNamedDeclaration: {
988
- readonly singleLine: {
989
- readonly maxItems: 1;
990
- };
991
- };
992
- readonly TSInterfaceBody: {
993
- readonly singleLine: {
994
- readonly maxItems: 0;
995
- readonly spacing: "never";
996
- };
997
- };
998
- readonly TSEnumBody: {
999
- readonly singleLine: {
1000
- readonly maxItems: 0;
1001
- readonly spacing: "never";
1002
- };
1003
- };
1004
- readonly TSTupleType: {
1005
- readonly singleLine: {
1006
- readonly maxItems: 3;
1007
- };
1008
- };
1009
- readonly TSTypeParameterDeclaration: {
1010
- readonly singleLine: {
1011
- readonly maxItems: 1;
1012
- };
1013
- };
1014
- readonly JSONArrayExpression: {
1015
- readonly singleLine: {
1016
- readonly maxItems: 0;
1017
- readonly spacing: "never";
1018
- };
1019
- };
1020
- readonly JSONObjectExpression: {
1021
- readonly singleLine: {
1022
- readonly maxItems: 0;
1023
- readonly spacing: "never";
1024
- };
1025
- };
1026
- };
1027
- }
1028
- ];
1029
- };
1030
- }[] | {
1031
965
  rules: {
1032
966
  readonly "json/no-unsafe-values": import("./state.js").State.ON;
1033
967
  readonly "json/no-unnormalized-keys": import("./state.js").State.ON;
@@ -1035,6 +969,11 @@ declare const _default: {
1035
969
  } | {
1036
970
  rules: {
1037
971
  readonly "jsonc/no-comments": import("./state.js").State.ON;
972
+ readonly "jsonc/array-bracket-spacing": import("./state.js").State.WARN;
973
+ readonly "jsonc/array-element-newline": readonly [
974
+ import("./state.js").State.WARN,
975
+ "consistent"
976
+ ];
1038
977
  readonly "jsonc/comma-dangle": import("./state.js").State.ON;
1039
978
  readonly "jsonc/comma-style": import("./state.js").State.WARN;
1040
979
  readonly "jsonc/indent": readonly [
@@ -1050,6 +989,22 @@ declare const _default: {
1050
989
  readonly skipComments: true;
1051
990
  }
1052
991
  ];
992
+ readonly "jsonc/object-curly-newline": readonly [
993
+ import("./state.js").State.WARN,
994
+ {
995
+ readonly consistent: true;
996
+ readonly multiline: true;
997
+ readonly minProperties: 2;
998
+ }
999
+ ];
1000
+ readonly "jsonc/object-curly-spacing": readonly [
1001
+ import("./state.js").State.WARN,
1002
+ "always",
1003
+ {
1004
+ readonly emptyObjects: "never";
1005
+ }
1006
+ ];
1007
+ readonly "jsonc/object-property-newline": import("./state.js").State.WARN;
1053
1008
  };
1054
1009
  })[];
1055
1010
  jsonc: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,wBASE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,wBASE"}
@@ -36,23 +36,11 @@ declare const _default: ({
36
36
  readonly maxItems: 1;
37
37
  };
38
38
  };
39
- readonly JSONArrayExpression: {
40
- readonly singleLine: {
41
- readonly maxItems: 0;
42
- readonly spacing: "never";
43
- };
44
- };
45
- readonly JSONObjectExpression: {
46
- readonly singleLine: {
47
- readonly maxItems: 0;
48
- readonly spacing: "never";
49
- };
50
- };
51
39
  };
52
40
  }
53
41
  ];
54
42
  };
55
- }[] | {
43
+ } | {
56
44
  rules: {
57
45
  readonly "array-callback-return": readonly [
58
46
  import("./state.js").State.ON,
@@ -1 +1 @@
1
- {"version":3,"file":"js.d.ts","sourceRoot":"","sources":["../../src/rules/js.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAIE"}
1
+ {"version":3,"file":"js.d.ts","sourceRoot":"","sources":["../../src/rules/js.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAIE"}
@@ -1,58 +1,4 @@
1
1
  declare const _default: ({
2
- rules: {
3
- readonly "stylistic/eol-last": import("../state.js").State.WARN;
4
- readonly "stylistic/linebreak-style": import("../state.js").State.WARN;
5
- readonly "stylistic/exp-list-style": readonly [
6
- import("../state.js").State.WARN,
7
- {
8
- readonly singleLine: {
9
- readonly maxItems: 2;
10
- };
11
- readonly overrides: {
12
- readonly ExportNamedDeclaration: {
13
- readonly singleLine: {
14
- readonly maxItems: 1;
15
- };
16
- };
17
- readonly TSInterfaceBody: {
18
- readonly singleLine: {
19
- readonly maxItems: 0;
20
- readonly spacing: "never";
21
- };
22
- };
23
- readonly TSEnumBody: {
24
- readonly singleLine: {
25
- readonly maxItems: 0;
26
- readonly spacing: "never";
27
- };
28
- };
29
- readonly TSTupleType: {
30
- readonly singleLine: {
31
- readonly maxItems: 3;
32
- };
33
- };
34
- readonly TSTypeParameterDeclaration: {
35
- readonly singleLine: {
36
- readonly maxItems: 1;
37
- };
38
- };
39
- readonly JSONArrayExpression: {
40
- readonly singleLine: {
41
- readonly maxItems: 0;
42
- readonly spacing: "never";
43
- };
44
- };
45
- readonly JSONObjectExpression: {
46
- readonly singleLine: {
47
- readonly maxItems: 0;
48
- readonly spacing: "never";
49
- };
50
- };
51
- };
52
- }
53
- ];
54
- };
55
- }[] | {
56
2
  rules: {
57
3
  readonly "json/no-unsafe-values": import("../state.js").State.ON;
58
4
  readonly "json/no-unnormalized-keys": import("../state.js").State.ON;
@@ -60,6 +6,11 @@ declare const _default: ({
60
6
  } | {
61
7
  rules: {
62
8
  readonly "jsonc/no-comments": import("../state.js").State.ON;
9
+ readonly "jsonc/array-bracket-spacing": import("../state.js").State.WARN;
10
+ readonly "jsonc/array-element-newline": readonly [
11
+ import("../state.js").State.WARN,
12
+ "consistent"
13
+ ];
63
14
  readonly "jsonc/comma-dangle": import("../state.js").State.ON;
64
15
  readonly "jsonc/comma-style": import("../state.js").State.WARN;
65
16
  readonly "jsonc/indent": readonly [
@@ -75,6 +26,22 @@ declare const _default: ({
75
26
  readonly skipComments: true;
76
27
  }
77
28
  ];
29
+ readonly "jsonc/object-curly-newline": readonly [
30
+ import("../state.js").State.WARN,
31
+ {
32
+ readonly consistent: true;
33
+ readonly multiline: true;
34
+ readonly minProperties: 2;
35
+ }
36
+ ];
37
+ readonly "jsonc/object-curly-spacing": readonly [
38
+ import("../state.js").State.WARN,
39
+ "always",
40
+ {
41
+ readonly emptyObjects: "never";
42
+ }
43
+ ];
44
+ readonly "jsonc/object-property-newline": import("../state.js").State.WARN;
78
45
  };
79
46
  })[];
80
47
  export default _default;
@@ -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,8 +1,6 @@
1
- import global from "../global.js";
2
1
  import json from "./json.js";
3
2
  import jsonc from "./jsonc.js";
4
3
  export default [
5
- global,
6
4
  json,
7
5
  jsonc,
8
6
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,eAAe;IACb,MAAM;IACN,IAAI;IACJ,KAAK;CACN,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"}
@@ -2,6 +2,11 @@ import { State } from "../state.js";
2
2
  declare const _default: {
3
3
  rules: {
4
4
  readonly "jsonc/no-comments": State.ON;
5
+ readonly "jsonc/array-bracket-spacing": State.WARN;
6
+ readonly "jsonc/array-element-newline": readonly [
7
+ State.WARN,
8
+ "consistent"
9
+ ];
5
10
  readonly "jsonc/comma-dangle": State.ON;
6
11
  readonly "jsonc/comma-style": State.WARN;
7
12
  readonly "jsonc/indent": readonly [
@@ -17,6 +22,22 @@ declare const _default: {
17
22
  readonly skipComments: true;
18
23
  }
19
24
  ];
25
+ readonly "jsonc/object-curly-newline": readonly [
26
+ State.WARN,
27
+ {
28
+ readonly consistent: true;
29
+ readonly multiline: true;
30
+ readonly minProperties: 2;
31
+ }
32
+ ];
33
+ readonly "jsonc/object-curly-spacing": readonly [
34
+ State.WARN,
35
+ "always",
36
+ {
37
+ readonly emptyObjects: "never";
38
+ }
39
+ ];
40
+ readonly "jsonc/object-property-newline": State.WARN;
20
41
  };
21
42
  };
22
43
  export default _default;
@@ -1 +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,wBAwDE"}
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,wBAwEE"}
@@ -1,6 +1,11 @@
1
1
  export default {
2
2
  rules: {
3
3
  "jsonc/no-comments": 2,
4
+ "jsonc/array-bracket-spacing": 1,
5
+ "jsonc/array-element-newline": [
6
+ 1,
7
+ "consistent",
8
+ ],
4
9
  "jsonc/comma-dangle": 2,
5
10
  "jsonc/comma-style": 1,
6
11
  "jsonc/indent": [
@@ -16,6 +21,22 @@ export default {
16
21
  skipComments: true,
17
22
  },
18
23
  ],
24
+ "jsonc/object-curly-newline": [
25
+ 1,
26
+ {
27
+ consistent: true,
28
+ multiline: true,
29
+ minProperties: 2,
30
+ },
31
+ ],
32
+ "jsonc/object-curly-spacing": [
33
+ 1,
34
+ "always",
35
+ {
36
+ emptyObjects: "never",
37
+ },
38
+ ],
39
+ "jsonc/object-property-newline": 1,
19
40
  },
20
41
  };
21
42
  //# sourceMappingURL=jsonc.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"jsonc.js","sourceRoot":"","sources":["../../../src/rules/json/jsonc.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QAML,mBAAmB,GAAU;QAqB7B,oBAAoB,GAAU;QAC9B,mBAAmB,GAAY;QAC/B,cAAc,EAAE;;YAEd,CAAC;SACF;QACD,mBAAmB,GAAY;QAC/B,oBAAoB,GAAU;QAE9B,+BAA+B,EAAE;;YAE/B;gBACE,WAAW,EAAE,IAAI;gBACjB,YAAY,EAAE,IAAI;aACnB;SACF;KAYO;CACX,CAAC"}
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;QAC/B,oBAAoB,GAAU;QAE9B,+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;YACR;gBACE,YAAY,EAAE,OAAO;aACtB;SACF;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": "20.4.0-rc.2",
6
+ "version": "20.4.0-rc.4",
7
7
  "repository": "github:jimmy-zhening-luo/linted-defaults",
8
8
  "description": "Default scopes for `linted`",
9
9
  "keywords": [],
@@ -1,59 +1,45 @@
1
1
  import { State } from "./state";
2
2
 
3
- export default [
4
- {
5
- rules: {
6
- "stylistic/eol-last": State.WARN,
7
- "stylistic/linebreak-style": State.WARN,
8
- "stylistic/exp-list-style": [
9
- State.WARN,
10
- {
11
- singleLine: {
12
- maxItems: 2,
13
- },
14
- overrides: {
15
- ExportNamedDeclaration: {
16
- singleLine: {
17
- maxItems: 1,
18
- },
19
- },
20
- TSInterfaceBody: {
21
- singleLine: {
22
- maxItems: 0,
23
- spacing: "never",
24
- },
25
- },
26
- TSEnumBody: {
27
- singleLine: {
28
- maxItems: 0,
29
- spacing: "never",
30
- },
3
+ export default {
4
+ rules: {
5
+ "stylistic/eol-last": State.WARN,
6
+ "stylistic/linebreak-style": State.WARN,
7
+ "stylistic/exp-list-style": [
8
+ State.WARN,
9
+ {
10
+ singleLine: {
11
+ maxItems: 2,
12
+ },
13
+ overrides: {
14
+ ExportNamedDeclaration: {
15
+ singleLine: {
16
+ maxItems: 1,
31
17
  },
32
- TSTupleType: {
33
- singleLine: {
34
- maxItems: 3,
35
- },
18
+ },
19
+ TSInterfaceBody: {
20
+ singleLine: {
21
+ maxItems: 0,
22
+ spacing: "never",
36
23
  },
37
- TSTypeParameterDeclaration: {
38
- singleLine: {
39
- maxItems: 1,
40
- },
24
+ },
25
+ TSEnumBody: {
26
+ singleLine: {
27
+ maxItems: 0,
28
+ spacing: "never",
41
29
  },
42
- JSONArrayExpression: {
43
- singleLine: {
44
- maxItems: 0,
45
- spacing: "never",
46
- },
30
+ },
31
+ TSTupleType: {
32
+ singleLine: {
33
+ maxItems: 3,
47
34
  },
48
- JSONObjectExpression: {
49
- singleLine: {
50
- maxItems: 0,
51
- spacing: "never",
52
- },
35
+ },
36
+ TSTypeParameterDeclaration: {
37
+ singleLine: {
38
+ maxItems: 1,
53
39
  },
54
40
  },
55
41
  },
56
- ],
57
- } as const,
58
- },
59
- ];
42
+ },
43
+ ],
44
+ } as const,
45
+ };
@@ -1,9 +1,7 @@
1
- import global from "../global";
2
1
  import json from "./json";
3
2
  import jsonc from "./jsonc";
4
3
 
5
4
  export default [
6
- global,
7
5
  json,
8
6
  jsonc,
9
7
  ];
@@ -27,8 +27,11 @@ export default {
27
27
  // "jsonc/valid-json-number": State.OFF,
28
28
  // "jsonc/vue-custom-block/no-parsing-error": State.OFF,
29
29
  // "jsonc/array-bracket-newline": State.OFF /* BUG: DO NOT CONFIGURE */,
30
- // "jsonc/array-bracket-spacing": State.OFF /* @global stylistic/list-style */,
31
- // "jsonc/array-element-newline": State.OFF /* @global stylistic/list-style */,
30
+ "jsonc/array-bracket-spacing": State.WARN,
31
+ "jsonc/array-element-newline": [
32
+ State.WARN,
33
+ "consistent",
34
+ ],
32
35
  "jsonc/comma-dangle": State.ON,
33
36
  "jsonc/comma-style": State.WARN,
34
37
  "jsonc/indent": [
@@ -50,9 +53,22 @@ export default {
50
53
  // "jsonc/no-octal": State.OFF,
51
54
  // "jsonc/no-sparse-arrays": State.OFF,
52
55
  // "jsonc/no-useless-escape": State.OFF,
53
- // "jsonc/object-curly-newline": State.OFF /* @global stylistic/list-style */,
54
- // "jsonc/object-curly-spacing": State.OFF /* @global stylistic/list-style */,
55
- // "jsonc/object-property-newline": State.OFF /* @global stylistic/list-style */,
56
+ "jsonc/object-curly-newline": [
57
+ State.WARN,
58
+ {
59
+ consistent: true,
60
+ multiline: true,
61
+ minProperties: 2,
62
+ },
63
+ ],
64
+ "jsonc/object-curly-spacing": [
65
+ State.WARN,
66
+ "always",
67
+ {
68
+ emptyObjects: "never",
69
+ },
70
+ ],
71
+ "jsonc/object-property-newline": State.WARN,
56
72
  // "jsonc/quote-props": State.OFF,
57
73
  // "jsonc/quotes": State.OFF,
58
74
  // "jsonc/space-unary-ops": State.OFF,