@eslinted/defaults 17.0.6 → 17.1.1

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.
Files changed (125) hide show
  1. package/dist/index.d.ts +0 -20
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.scopes.spec.d.ts +2 -0
  4. package/dist/index.scopes.spec.d.ts.map +1 -0
  5. package/dist/index.scopes.spec.js +13 -0
  6. package/dist/index.scopes.spec.js.map +1 -0
  7. package/dist/index.spec.js +58 -71
  8. package/dist/index.spec.js.map +1 -1
  9. package/dist/rules/css/index.d.ts +0 -1
  10. package/dist/rules/css/index.d.ts.map +1 -1
  11. package/dist/rules/css/index.js +0 -1
  12. package/dist/rules/css/index.js.map +1 -1
  13. package/dist/rules/html/index.d.ts +0 -1
  14. package/dist/rules/html/index.d.ts.map +1 -1
  15. package/dist/rules/html/index.js +0 -1
  16. package/dist/rules/html/index.js.map +1 -1
  17. package/dist/rules/index.d.ts +0 -20
  18. package/dist/rules/index.d.ts.map +1 -1
  19. package/dist/rules/js.d.ts +0 -2
  20. package/dist/rules/js.d.ts.map +1 -1
  21. package/dist/rules/js.eslint.d.ts +0 -1
  22. package/dist/rules/js.eslint.d.ts.map +1 -1
  23. package/dist/rules/js.eslint.js +0 -1
  24. package/dist/rules/js.eslint.js.map +1 -1
  25. package/dist/rules/js.stylistic.d.ts +0 -1
  26. package/dist/rules/js.stylistic.d.ts.map +1 -1
  27. package/dist/rules/js.stylistic.js +0 -1
  28. package/dist/rules/js.stylistic.js.map +1 -1
  29. package/dist/rules/json/index.d.ts +0 -3
  30. package/dist/rules/json/index.d.ts.map +1 -1
  31. package/dist/rules/json/json.d.ts +0 -1
  32. package/dist/rules/json/json.d.ts.map +1 -1
  33. package/dist/rules/json/json.js +0 -1
  34. package/dist/rules/json/json.js.map +1 -1
  35. package/dist/rules/json/plugin/extend.d.ts +0 -1
  36. package/dist/rules/json/plugin/extend.d.ts.map +1 -1
  37. package/dist/rules/json/plugin/extend.js +0 -1
  38. package/dist/rules/json/plugin/extend.js.map +1 -1
  39. package/dist/rules/json/plugin/index.d.ts +0 -1
  40. package/dist/rules/json/plugin/index.d.ts.map +1 -1
  41. package/dist/rules/json/plugin/index.js +0 -1
  42. package/dist/rules/json/plugin/index.js.map +1 -1
  43. package/dist/rules/jsonc/index.d.ts +0 -1
  44. package/dist/rules/jsonc/index.d.ts.map +1 -1
  45. package/dist/rules/jsonc/index.js +0 -1
  46. package/dist/rules/jsonc/index.js.map +1 -1
  47. package/dist/rules/jsoncc/index.d.ts +0 -1
  48. package/dist/rules/jsoncc/index.d.ts.map +1 -1
  49. package/dist/rules/jsoncc/index.js +0 -1
  50. package/dist/rules/jsoncc/index.js.map +1 -1
  51. package/dist/rules/mocha/chai/expect.d.ts +0 -1
  52. package/dist/rules/mocha/chai/expect.d.ts.map +1 -1
  53. package/dist/rules/mocha/chai/expect.js +0 -1
  54. package/dist/rules/mocha/chai/expect.js.map +1 -1
  55. package/dist/rules/mocha/chai/index.d.ts +0 -1
  56. package/dist/rules/mocha/chai/index.d.ts.map +1 -1
  57. package/dist/rules/mocha/chai/index.js +0 -1
  58. package/dist/rules/mocha/chai/index.js.map +1 -1
  59. package/dist/rules/mocha/index.d.ts +0 -3
  60. package/dist/rules/mocha/index.d.ts.map +1 -1
  61. package/dist/rules/mocha/mocha.d.ts +0 -1
  62. package/dist/rules/mocha/mocha.d.ts.map +1 -1
  63. package/dist/rules/mocha/mocha.js +0 -1
  64. package/dist/rules/mocha/mocha.js.map +1 -1
  65. package/dist/rules/svelte/disable.d.ts +0 -1
  66. package/dist/rules/svelte/disable.d.ts.map +1 -1
  67. package/dist/rules/svelte/disable.js +0 -1
  68. package/dist/rules/svelte/disable.js.map +1 -1
  69. package/dist/rules/svelte/extend.d.ts +0 -1
  70. package/dist/rules/svelte/extend.d.ts.map +1 -1
  71. package/dist/rules/svelte/extend.js +0 -1
  72. package/dist/rules/svelte/extend.js.map +1 -1
  73. package/dist/rules/svelte/index.d.ts +0 -3
  74. package/dist/rules/svelte/index.d.ts.map +1 -1
  75. package/dist/rules/svelte/svelte.d.ts +0 -1
  76. package/dist/rules/svelte/svelte.d.ts.map +1 -1
  77. package/dist/rules/svelte/svelte.js +0 -1
  78. package/dist/rules/svelte/svelte.js.map +1 -1
  79. package/dist/rules/ts/disable.d.ts +0 -1
  80. package/dist/rules/ts/disable.d.ts.map +1 -1
  81. package/dist/rules/ts/disable.js +0 -1
  82. package/dist/rules/ts/disable.js.map +1 -1
  83. package/dist/rules/ts/extend.d.ts +0 -1
  84. package/dist/rules/ts/extend.d.ts.map +1 -1
  85. package/dist/rules/ts/extend.js +0 -1
  86. package/dist/rules/ts/extend.js.map +1 -1
  87. package/dist/rules/ts/index.d.ts +0 -3
  88. package/dist/rules/ts/index.d.ts.map +1 -1
  89. package/dist/rules/ts/ts.d.ts +0 -1
  90. package/dist/rules/ts/ts.d.ts.map +1 -1
  91. package/dist/rules/ts/ts.js +0 -1
  92. package/dist/rules/ts/ts.js.map +1 -1
  93. package/dist/rules/yml/extend.d.ts +0 -1
  94. package/dist/rules/yml/extend.d.ts.map +1 -1
  95. package/dist/rules/yml/extend.js +0 -1
  96. package/dist/rules/yml/extend.js.map +1 -1
  97. package/dist/rules/yml/index.d.ts +0 -2
  98. package/dist/rules/yml/index.d.ts.map +1 -1
  99. package/dist/rules/yml/yml.d.ts +0 -1
  100. package/dist/rules/yml/yml.d.ts.map +1 -1
  101. package/dist/rules/yml/yml.js +0 -1
  102. package/dist/rules/yml/yml.js.map +1 -1
  103. package/package.json +1 -1
  104. package/src/index.scopes.spec.ts +12 -0
  105. package/src/index.spec.ts +67 -87
  106. package/src/rules/css/index.ts +0 -1
  107. package/src/rules/html/index.ts +0 -1
  108. package/src/rules/js.eslint.ts +0 -1
  109. package/src/rules/js.stylistic.ts +0 -1
  110. package/src/rules/json/json.ts +0 -1
  111. package/src/rules/json/plugin/extend.ts +0 -1
  112. package/src/rules/json/plugin/index.ts +0 -1
  113. package/src/rules/jsonc/index.ts +0 -1
  114. package/src/rules/jsoncc/index.ts +0 -1
  115. package/src/rules/mocha/chai/expect.ts +0 -1
  116. package/src/rules/mocha/chai/index.ts +0 -1
  117. package/src/rules/mocha/mocha.ts +0 -1
  118. package/src/rules/svelte/disable.ts +0 -1
  119. package/src/rules/svelte/extend.ts +0 -1
  120. package/src/rules/svelte/svelte.ts +0 -1
  121. package/src/rules/ts/disable.ts +0 -1
  122. package/src/rules/ts/extend.ts +0 -1
  123. package/src/rules/ts/ts.ts +0 -1
  124. package/src/rules/yml/extend.ts +0 -1
  125. package/src/rules/yml/yml.ts +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"extend.js","sourceRoot":"","sources":["../../../src/rules/yml/extend.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,IAAI,EAAE,kBAAkB;IACxB,KAAK,EAAE;QACL,gCAAgC,EAAE;;YAEhC;gBACE,UAAU,EAAE,IAAI;gBAChB,SAAS,EAAE,IAAI;gBACf,aAAa,EAAE,CAAC;aACjB;SACF;QACD,gCAAgC,EAAE;;YAEhC,OAAO;YACP;gBACE,gBAAgB,EAAE,IAAI;aACvB;SACF;QACD,mCAAmC,GAAU;QAC7C,mCAAmC,GAAU;QAC7C,iBAAiB,GAAU;QAC3B,6BAA6B,GAAU;QACvC,6BAA6B,EAAE;;YAE7B;gBACE,GAAG,EAAE,CAAC;gBACN,MAAM,EAAE,CAAC;gBACT,MAAM,EAAE,CAAC;aACV;SACF;QACD,oBAAoB,EAAE;;YAEpB,QAAQ;YACR;gBACE,UAAU,EAAE,CAAC,GAAG,CAAC;gBACjB,OAAO,EAAE;oBACP,GAAG;oBACH,GAAG;oBACH,IAAI;oBACJ,KAAK;oBACL,MAAM;oBACN,OAAO;oBACP,QAAQ;oBACR,WAAW;iBACZ;aACF;SACF;KACO;CACX,CAAC"}
1
+ {"version":3,"file":"extend.js","sourceRoot":"","sources":["../../../src/rules/yml/extend.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QACL,gCAAgC,EAAE;;YAEhC;gBACE,UAAU,EAAE,IAAI;gBAChB,SAAS,EAAE,IAAI;gBACf,aAAa,EAAE,CAAC;aACjB;SACF;QACD,gCAAgC,EAAE;;YAEhC,OAAO;YACP;gBACE,gBAAgB,EAAE,IAAI;aACvB;SACF;QACD,mCAAmC,GAAU;QAC7C,mCAAmC,GAAU;QAC7C,iBAAiB,GAAU;QAC3B,6BAA6B,GAAU;QACvC,6BAA6B,EAAE;;YAE7B;gBACE,GAAG,EAAE,CAAC;gBACN,MAAM,EAAE,CAAC;gBACT,MAAM,EAAE,CAAC;aACV;SACF;QACD,oBAAoB,EAAE;;YAEpB,QAAQ;YACR;gBACE,UAAU,EAAE,CAAC,GAAG,CAAC;gBACjB,OAAO,EAAE;oBACP,GAAG;oBACH,GAAG;oBACH,IAAI;oBACJ,KAAK;oBACL,MAAM;oBACN,OAAO;oBACP,QAAQ;oBACR,WAAW;iBACZ;aACF;SACF;KACO;CACX,CAAC"}
@@ -1,5 +1,4 @@
1
1
  declare const _default: ({
2
- name: string;
3
2
  rules: {
4
3
  readonly "yml/block-mapping-colon-indicator-newline": import("../state.js").State.ON;
5
4
  readonly "yml/block-mapping-question-indicator-newline": import("../state.js").State.ON;
@@ -14,7 +13,6 @@ declare const _default: ({
14
13
  readonly "yml/require-string-key": import("../state.js").State.ON;
15
14
  };
16
15
  } | {
17
- name: string;
18
16
  rules: {
19
17
  readonly "yml/flow-mapping-curly-newline": readonly [
20
18
  import("../state.js").State.ON,
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
@@ -1,6 +1,5 @@
1
1
  import { State } from "../state.js";
2
2
  declare const _default: {
3
- name: string;
4
3
  rules: {
5
4
  readonly "yml/block-mapping-colon-indicator-newline": State.ON;
6
5
  readonly "yml/block-mapping-question-indicator-newline": State.ON;
@@ -1 +1 @@
1
- {"version":3,"file":"yml.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/yml.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;;AAGjC,wBAwBE"}
1
+ {"version":3,"file":"yml.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/yml.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;AAGjC,wBAuBE"}
@@ -1,5 +1,4 @@
1
1
  export default {
2
- name: "enable",
3
2
  rules: {
4
3
  "yml/block-mapping-colon-indicator-newline": 2,
5
4
  "yml/block-mapping-question-indicator-newline": 2,
@@ -1 +1 @@
1
- {"version":3,"file":"yml.js","sourceRoot":"","sources":["../../../src/rules/yml/yml.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE;QACL,2CAA2C,GAAU;QACrD,8CAA8C,GAAU;QACxD,mBAAmB,GAAU;QAC7B,6CAA6C,GAAU;QACvD,oBAAoB,GAAU;QAE9B,YAAY,GAAU;QAGtB,kBAAkB,GAAU;QAE5B,6BAA6B,GAAU;QACvC,mBAAmB,GAAU;QAC7B,uBAAuB,GAAU;QAGjC,wBAAwB,GAAU;KAI1B;CACX,CAAC"}
1
+ {"version":3,"file":"yml.js","sourceRoot":"","sources":["../../../src/rules/yml/yml.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QACL,2CAA2C,GAAU;QACrD,8CAA8C,GAAU;QACxD,mBAAmB,GAAU;QAC7B,6CAA6C,GAAU;QACvD,oBAAoB,GAAU;QAE9B,YAAY,GAAU;QAGtB,kBAAkB,GAAU;QAE5B,6BAA6B,GAAU;QACvC,mBAAmB,GAAU;QAC7B,uBAAuB,GAAU;QAGjC,wBAAwB,GAAU;KAI1B;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": "17.0.6",
6
+ "version": "17.1.1",
7
7
  "repository": "github:jimmy-zhening-luo/linted-defaults",
8
8
  "description": "Default scopes for `linted`",
9
9
  "keywords": [],
@@ -0,0 +1,12 @@
1
+ export const scopes = [
2
+ "js",
3
+ "ts",
4
+ "mocha",
5
+ "svelte",
6
+ "html",
7
+ "css",
8
+ "json",
9
+ "jsonc",
10
+ "jsoncc",
11
+ "yml",
12
+ ] as const;
package/src/index.spec.ts CHANGED
@@ -1,14 +1,11 @@
1
1
  import "chai/register-should.js";
2
2
  import defaults from ".";
3
+ import { scopes } from "./index.scopes.spec";
3
4
 
4
5
  describe(
5
6
  "Main Export",
6
7
  function () {
7
- const SCOPE = [
8
- "js",
9
- "ts",
10
- ],
11
- GLOBAL = "*",
8
+ const GLOBAL = "*",
12
9
  {
13
10
  ignores,
14
11
  files,
@@ -19,13 +16,13 @@ describe(
19
16
  "module",
20
17
  function () {
21
18
  it(
22
- "with object submodules: ignores, files, rules",
19
+ "with object submodules: files, ignores, rules",
23
20
  function () {
24
- ignores
21
+ files
25
22
  .should
26
23
  .be
27
24
  .an("object");
28
- files
25
+ ignores
29
26
  .should
30
27
  .be
31
28
  .an("object");
@@ -38,166 +35,149 @@ describe(
38
35
  },
39
36
  );
40
37
  describe(
41
- "submodule: ignores",
38
+ "files",
42
39
  function () {
43
40
  it(
44
- "has global scope",
41
+ "only has all scopes",
45
42
  function () {
46
- ignores
43
+ files
47
44
  .should
48
45
  .have
49
- .own
50
- .property(GLOBAL);
46
+ .keys(scopes);
51
47
  },
52
48
  );
53
49
  it(
54
50
  "of arrays",
55
51
  function () {
56
- for (const scope of Object.values(ignores))
52
+ for (const scope of Object.values(files))
57
53
  scope
58
-
59
54
  .should
60
55
  .be
61
56
  .an("array");
62
57
  },
63
58
  );
64
59
  it(
65
- "of strings",
60
+ "of expanded strings",
66
61
  function () {
67
- for (const scope of Object.values(ignores))
62
+ for (const scope of Object.values(files))
68
63
  for (const pattern of scope)
69
64
  pattern
70
65
  .should
71
66
  .be
72
- .a("string");
67
+ .a("string")
68
+ .not
69
+ .have
70
+ .string("{")
71
+ .not
72
+ .have
73
+ .string("}");
73
74
  },
74
75
  );
75
76
  },
76
77
  );
77
78
  describe(
78
- "submodule: files",
79
+ "ignores",
79
80
  function () {
80
81
  it(
81
- "has scopes",
82
+ "only has globals and any scopes",
82
83
  function () {
83
- for (const scope of SCOPE)
84
- files
85
- .should
86
- .have
87
- .own
88
- .property(scope);
89
- },
90
- );
91
- it(
92
- "NO global scope",
93
- function () {
94
- files
84
+ ignores
95
85
  .should
96
- .not
97
86
  .have
98
- .own
99
- .property(GLOBAL);
87
+ .keys(
88
+ GLOBAL,
89
+ ...new Set(scopes).intersection(
90
+ new Set(
91
+ Object.keys(ignores),
92
+ ),
93
+ ),
94
+ );
100
95
  },
101
96
  );
102
97
  it(
103
98
  "of arrays",
104
99
  function () {
105
- for (const scope of Object.values(files))
100
+ for (const scope of Object.values(ignores))
106
101
  scope
107
-
108
102
  .should
109
103
  .be
110
104
  .an("array");
111
105
  },
112
106
  );
113
107
  it(
114
- "of strings",
108
+ "of expanded strings",
115
109
  function () {
116
- for (const scope of Object.values(files))
110
+ for (const scope of Object.values(ignores))
117
111
  for (const pattern of scope)
118
112
  pattern
119
113
  .should
120
114
  .be
121
- .a("string");
115
+ .a("string")
116
+ .not
117
+ .have
118
+ .string("{")
119
+ .not
120
+ .have
121
+ .string("}");
122
122
  },
123
123
  );
124
124
  },
125
125
  );
126
126
  describe(
127
- "submodule: rules",
127
+ "rules",
128
128
  function () {
129
129
  it(
130
- "has scopes",
131
- function () {
132
- for (const scope of SCOPE)
133
- rules
134
- .should
135
- .have
136
- .own
137
- .property(scope);
138
- },
139
- );
140
- it(
141
- "NO global scope",
130
+ "only has all scopes",
142
131
  function () {
143
132
  rules
144
133
  .should
145
- .not
146
134
  .have
147
- .own
148
- .property(GLOBAL);
135
+ .keys(scopes);
149
136
  },
150
137
  );
151
138
  it(
152
139
  "of arrays",
153
140
  function () {
154
- for (const scope of Object.values(files))
141
+ for (const scope of Object.values(rules))
155
142
  scope
156
-
157
143
  .should
158
144
  .be
159
145
  .an("array");
160
146
  },
161
147
  );
162
148
  it(
163
- "of object",
164
- function () {
165
- for (const scope of Object.values(rules))
166
- for (const rule of scope)
167
- rule
168
- .should
169
- .be
170
- .an("object");
171
- },
172
- );
173
- it(
174
- "named rulesets",
149
+ "of rule config objects",
175
150
  function () {
176
151
  for (const scope of Object.values(rules))
177
- for (const rule of scope) {
178
- rule
179
- .should
180
- .have
181
- .keys(
182
- "name",
183
- "rules",
184
- );
185
- rule
186
- .name
187
- .should
188
- .be
189
- .a("string");
190
- rule
191
- .rules
152
+ for (const config of scope) {
153
+ config
192
154
  .should
193
155
  .be
156
+ .an("object")
157
+ .with
158
+ .keys("rules")
159
+ .with
160
+ .own
161
+ .property("rules")
194
162
  .an("object");
195
163
 
196
- for (const key of Object.keys(rule.rules))
197
- key
164
+ for (const rule of Object.keys(config.rules)) {
165
+ rule
198
166
  .should
199
167
  .be
200
168
  .a("string");
169
+
170
+ const value = config.rules[rule as keyof typeof config.rules] as number | object;
171
+
172
+ if (typeof value !== "number")
173
+ value
174
+ .should
175
+ .be
176
+ .an("array")
177
+ .with
178
+ .property("0")
179
+ .a("number");
180
+ }
201
181
  }
202
182
  },
203
183
  );
@@ -3,7 +3,6 @@ import { State } from "../state";
3
3
  // DOC: https://github.com/eslint/css/tree/main/docs/rules
4
4
  export default [
5
5
  {
6
- name: "css",
7
6
  rules: {
8
7
  "css/font-family-fallbacks": State.ON,
9
8
  "css/no-duplicate-imports": State.ON,
@@ -3,7 +3,6 @@ import { State } from "../state";
3
3
  // DOC: https://html-eslint.org/docs/rules
4
4
  export default [
5
5
  {
6
- name: "html",
7
6
  rules: {
8
7
  // #region BEST PRACTICE
9
8
  // DOC: https://html-eslint.org/docs/rules#best-practice
@@ -2,7 +2,6 @@ import { State } from "./state";
2
2
 
3
3
  // DOC: https://eslint.org/docs/latest/rules/
4
4
  export default {
5
- name: "enable",
6
5
  rules: {
7
6
  // #region PROBLEMS
8
7
  // DOC: https://eslint.org/docs/latest/rules/#possible-problems
@@ -2,7 +2,6 @@ import { State } from "./state";
2
2
 
3
3
  // DOC: https://eslint.style/rules
4
4
  export default {
5
- name: "enable/stylistic",
6
5
  rules: {
7
6
  "stylistic/array-bracket-newline": State.ON,
8
7
  "stylistic/array-bracket-spacing": State.ON,
@@ -2,7 +2,6 @@ import { State } from "../state";
2
2
 
3
3
  // DOC: https://github.com/eslint/json?tab=readme-ov-file#rules
4
4
  export default {
5
- name: "json",
6
5
  rules: {
7
6
  "json/no-duplicate-keys": State.ON /* replaces jsonc/no-dupe-keys */,
8
7
  // "json/no-empty-keys": State.OFF /* preference */,
@@ -2,7 +2,6 @@ import { State } from "../../state";
2
2
 
3
3
  // DOC: https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#extension-rules
4
4
  export default {
5
- name: "jsonc/json/extend",
6
5
  rules: {
7
6
  // "jsonc/array-bracket-newline": State.OFF /* @OVERRIDE: BIGGER BUG: i mean this basically just doesn't work, even with multiple lines it will still fail| BUG: the spec says: `requires line breaks if the number of elements is at least the given integer. If this is 0, this condition will act the same as the option "always". If this is null (the default), this condition is disabled`. However, when null, the jsonc plugin actually errors when there are linebreaks with a single item | (was: MUST match stylistic/array-bracket-newline) */,
8
7
  "jsonc/array-bracket-spacing": State.ON /* MUST match stylistic/array-bracket-spacing */,
@@ -2,7 +2,6 @@ import { State } from "../../state";
2
2
 
3
3
  // DOC: https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#jsonc-rules
4
4
  export default {
5
- name: "jsonc/json",
6
5
  rules: {
7
6
  // "jsonc/auto": State.OFF,
8
7
  // "jsonc/key-name-casing": State.OFF,
@@ -2,7 +2,6 @@ import { State } from "../state";
2
2
 
3
3
  export default [
4
4
  {
5
- name: "jsonc/jsonc",
6
5
  rules: {
7
6
  "jsonc/no-comments": State.OFF /* comments ARE allowed in JSONC */,
8
7
  } as const,
@@ -2,7 +2,6 @@ import { State } from "../state";
2
2
 
3
3
  export default [
4
4
  {
5
- name: "jsonc/jsoncc",
6
5
  rules: {
7
6
  "jsonc/comma-dangle": [
8
7
  State.ON,
@@ -2,7 +2,6 @@ import { State } from "../../state";
2
2
 
3
3
  // DOC: https://github.com/turbo87/eslint-plugin-chai-expect?tab=readme-ov-file#rules
4
4
  export default {
5
- name: "chai-expect",
6
5
  rules: {
7
6
  "chai-expect/no-inner-compare": State.ON,
8
7
  "chai-expect/no-inner-literal": State.ON,
@@ -2,7 +2,6 @@ import { State } from "../../state";
2
2
 
3
3
  // DOC: https://github.com/ihordiachenko/eslint-plugin-chai-friendly?tab=readme-ov-file#usage
4
4
  export default {
5
- name: "chai",
6
5
  rules: {
7
6
  /* @OVERRIDE */ "no-unused-expressions": State.OFF /* INFO: looks like these guys got the hint too ;) https://github.com/ihordiachenko/eslint-plugin-chai-friendly/releases/tag/v1.1.0 */,
8
7
  "chai/no-unused-expressions": [
@@ -2,7 +2,6 @@ import { State } from "../state";
2
2
 
3
3
  // DOC: https://github.com/lo1tuma/eslint-plugin-mocha/tree/main?tab=readme-ov-file#rules
4
4
  export default {
5
- name: "mocha",
6
5
  rules: {
7
6
  // "mocha/consistent-interface": State.OFF /* unable, must choose BDD or TDD first */,
8
7
  // "mocha/consistent-spacing-between-blocks": State.OFF,
@@ -2,7 +2,6 @@ import { State } from "../state";
2
2
 
3
3
  // DOC: https://github.com/sveltejs/eslint-plugin-svelte/blob/ca37fbbe82d01019946e12eeb1b57c2a5736c018/packages/eslint-plugin-svelte/src/configs/base.ts
4
4
  export default {
5
- name: "svelte/disable",
6
5
  rules: {
7
6
  // ESLint core rules known to cause problems with `.svelte`.
8
7
  "no-inner-declarations": State.OFF /* The AST generated by svelte-eslint-parser will false positive because the root node of the script is not `Program`. INFO: also extended by svelte */,
@@ -2,7 +2,6 @@ import { State } from "../state";
2
2
 
3
3
  // DOC: http://sveltejs.github.io/eslint-plugin-svelte/rules/#extension-rules
4
4
  export default {
5
- name: "svelte/extend",
6
5
  rules: {
7
6
  "no-inner-declarations": State.OFF /* INFO: also disabled by svelte */,
8
7
  "svelte/no-inner-declarations": [
@@ -2,7 +2,6 @@ import { State } from "../state";
2
2
 
3
3
  // DOC: http://sveltejs.github.io/eslint-plugin-svelte/rules/
4
4
  export default {
5
- name: "svelte",
6
5
  rules: {
7
6
  // #region ERRORS
8
7
  // DOC: http://sveltejs.github.io/eslint-plugin-svelte/rules/#possible-errors
@@ -1,7 +1,6 @@
1
1
  import { State } from "../state";
2
2
 
3
3
  export default {
4
- name: "disable",
5
4
  rules: {
6
5
  // Handled by TypeScript compiler
7
6
  "consistent-return": State.OFF /* TSLint BUT tsc */,
@@ -2,7 +2,6 @@ import { State } from "../state";
2
2
 
3
3
  // DOC: https://typescript-eslint.io/rules/?=extension-xdeprecated#rules
4
4
  export default {
5
- name: "enable/extension",
6
5
  rules: {
7
6
  /* @OVERRIDE */ "dot-notation": State.OFF,
8
7
  "ts/dot-notation": [
@@ -2,7 +2,6 @@ import { State } from "../state";
2
2
 
3
3
  // DOC: https://typescript-eslint.io/rules/?=xextension-xdeprecated#rules
4
4
  export default {
5
- name: "enable",
6
5
  rules: {
7
6
  // "ts/adjacent-overload-signatures": State.OFF,
8
7
  // "ts/array-type": State.OFF /* preference: ideally, I'd like to don't-care mutable arrays while requiring readonly [] syntax for immutable arrays, but there is no way to do that with the current rule options */,
@@ -2,7 +2,6 @@ import { State } from "../state";
2
2
 
3
3
  // DOC: https://ota-meshi.github.io/eslint-plugin-yml/rules/#extension-rules
4
4
  export default {
5
- name: "enable/extension",
6
5
  rules: {
7
6
  "yml/flow-mapping-curly-newline": [
8
7
  State.ON,
@@ -2,7 +2,6 @@ import { State } from "../state";
2
2
 
3
3
  // DOC: https://ota-meshi.github.io/eslint-plugin-yml/rules/#yaml-rules
4
4
  export default {
5
- name: "enable",
6
5
  rules: {
7
6
  "yml/block-mapping-colon-indicator-newline": State.ON,
8
7
  "yml/block-mapping-question-indicator-newline": State.ON,