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

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
@@ -68,7 +68,7 @@ declare const _default: {
68
68
  }
69
69
  ];
70
70
  };
71
- }[] | {
71
+ } | {
72
72
  rules: {
73
73
  readonly "array-callback-return": readonly [
74
74
  import("./rules/state.js").State.ON,
@@ -1042,7 +1042,7 @@ declare const _default: {
1042
1042
  }
1043
1043
  ];
1044
1044
  };
1045
- }[] | {
1045
+ } | {
1046
1046
  rules: {
1047
1047
  readonly "json/no-unsafe-values": import("./rules/state.js").State.ON;
1048
1048
  readonly "json/no-unnormalized-keys": import("./rules/state.js").State.ON;
@@ -53,6 +53,6 @@ declare const _default: {
53
53
  }
54
54
  ];
55
55
  };
56
- }[];
56
+ };
57
57
  export default _default;
58
58
  //# 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,wBAsDE"}
@@ -1,58 +1,56 @@
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
- },
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,
17
15
  },
18
- TSInterfaceBody: {
19
- singleLine: {
20
- maxItems: 0,
21
- spacing: "never",
22
- },
16
+ },
17
+ TSInterfaceBody: {
18
+ singleLine: {
19
+ maxItems: 0,
20
+ spacing: "never",
23
21
  },
24
- TSEnumBody: {
25
- singleLine: {
26
- maxItems: 0,
27
- spacing: "never",
28
- },
22
+ },
23
+ TSEnumBody: {
24
+ singleLine: {
25
+ maxItems: 0,
26
+ spacing: "never",
29
27
  },
30
- TSTupleType: {
31
- singleLine: {
32
- maxItems: 3,
33
- },
28
+ },
29
+ TSTupleType: {
30
+ singleLine: {
31
+ maxItems: 3,
34
32
  },
35
- TSTypeParameterDeclaration: {
36
- singleLine: {
37
- maxItems: 1,
38
- },
33
+ },
34
+ TSTypeParameterDeclaration: {
35
+ singleLine: {
36
+ maxItems: 1,
39
37
  },
40
- JSONArrayExpression: {
41
- singleLine: {
42
- maxItems: 0,
43
- spacing: "never",
44
- },
38
+ },
39
+ JSONArrayExpression: {
40
+ singleLine: {
41
+ maxItems: 0,
42
+ spacing: "never",
45
43
  },
46
- JSONObjectExpression: {
47
- singleLine: {
48
- maxItems: 0,
49
- spacing: "never",
50
- },
44
+ },
45
+ JSONObjectExpression: {
46
+ singleLine: {
47
+ maxItems: 0,
48
+ spacing: "never",
51
49
  },
52
50
  },
53
51
  },
54
- ],
55
- },
52
+ },
53
+ ],
56
54
  },
57
- ];
55
+ };
58
56
  //# 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;oBACD,mBAAmB,EAAE;wBACnB,UAAU,EAAE;4BACV,QAAQ,EAAE,CAAC;4BACX,OAAO,EAAE,OAAO;yBACjB;qBACF;oBACD,oBAAoB,EAAE;wBACpB,UAAU,EAAE;4BACV,QAAQ,EAAE,CAAC;4BACX,OAAO,EAAE,OAAO;yBACjB;qBACF;iBACF;aACF;SACF;KACO;CACX,CAAC"}
@@ -53,7 +53,7 @@ declare const _default: {
53
53
  }
54
54
  ];
55
55
  };
56
- }[] | {
56
+ } | {
57
57
  rules: {
58
58
  readonly "array-callback-return": readonly [
59
59
  import("./state.js").State.ON,
@@ -1027,7 +1027,7 @@ declare const _default: {
1027
1027
  }
1028
1028
  ];
1029
1029
  };
1030
- }[] | {
1030
+ } | {
1031
1031
  rules: {
1032
1032
  readonly "json/no-unsafe-values": import("./state.js").State.ON;
1033
1033
  readonly "json/no-unnormalized-keys": import("./state.js").State.ON;
@@ -52,7 +52,7 @@ declare const _default: ({
52
52
  }
53
53
  ];
54
54
  };
55
- }[] | {
55
+ } | {
56
56
  rules: {
57
57
  readonly "array-callback-return": readonly [
58
58
  import("./state.js").State.ON,
@@ -52,7 +52,7 @@ declare const _default: ({
52
52
  }
53
53
  ];
54
54
  };
55
- }[] | {
55
+ } | {
56
56
  rules: {
57
57
  readonly "json/no-unsafe-values": import("../state.js").State.ON;
58
58
  readonly "json/no-unnormalized-keys": import("../state.js").State.ON;
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.3",
7
7
  "repository": "github:jimmy-zhening-luo/linted-defaults",
8
8
  "description": "Default scopes for `linted`",
9
9
  "keywords": [],
@@ -1,59 +1,57 @@
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
- },
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,
19
17
  },
20
- TSInterfaceBody: {
21
- singleLine: {
22
- maxItems: 0,
23
- spacing: "never",
24
- },
18
+ },
19
+ TSInterfaceBody: {
20
+ singleLine: {
21
+ maxItems: 0,
22
+ spacing: "never",
25
23
  },
26
- TSEnumBody: {
27
- singleLine: {
28
- maxItems: 0,
29
- spacing: "never",
30
- },
24
+ },
25
+ TSEnumBody: {
26
+ singleLine: {
27
+ maxItems: 0,
28
+ spacing: "never",
31
29
  },
32
- TSTupleType: {
33
- singleLine: {
34
- maxItems: 3,
35
- },
30
+ },
31
+ TSTupleType: {
32
+ singleLine: {
33
+ maxItems: 3,
36
34
  },
37
- TSTypeParameterDeclaration: {
38
- singleLine: {
39
- maxItems: 1,
40
- },
35
+ },
36
+ TSTypeParameterDeclaration: {
37
+ singleLine: {
38
+ maxItems: 1,
41
39
  },
42
- JSONArrayExpression: {
43
- singleLine: {
44
- maxItems: 0,
45
- spacing: "never",
46
- },
40
+ },
41
+ JSONArrayExpression: {
42
+ singleLine: {
43
+ maxItems: 0,
44
+ spacing: "never",
47
45
  },
48
- JSONObjectExpression: {
49
- singleLine: {
50
- maxItems: 0,
51
- spacing: "never",
52
- },
46
+ },
47
+ JSONObjectExpression: {
48
+ singleLine: {
49
+ maxItems: 0,
50
+ spacing: "never",
53
51
  },
54
52
  },
55
53
  },
56
- ],
57
- } as const,
58
- },
59
- ];
54
+ },
55
+ ],
56
+ } as const,
57
+ };