@pumpn/eslint-config 15.0.0 → 15.0.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.
- package/config.js +7 -16
- package/deno.json +1 -1
- package/package.json +1 -1
package/config.js
CHANGED
|
@@ -22,6 +22,11 @@ const convertedGlobals = Object.fromEntries(
|
|
|
22
22
|
|
|
23
23
|
const defaultGlob = "**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}";
|
|
24
24
|
|
|
25
|
+
const rulesWithAutofixDisabled = Object.fromEntries(
|
|
26
|
+
Object.entries(rules)
|
|
27
|
+
.flatMap(([key, value]) => [[key, "off"], [`disable-autofix/${key}`, value]])
|
|
28
|
+
);
|
|
29
|
+
|
|
25
30
|
const config = [
|
|
26
31
|
{
|
|
27
32
|
ignores: [
|
|
@@ -177,14 +182,7 @@ const config = [
|
|
|
177
182
|
}
|
|
178
183
|
},
|
|
179
184
|
name: "jsdoc/examples/rules",
|
|
180
|
-
rules:
|
|
181
|
-
"@stylistic/eol-last": "off",
|
|
182
|
-
"@stylistic/line-comment-position": "off",
|
|
183
|
-
"@stylistic/no-multiple-empty-lines": "off",
|
|
184
|
-
"no-inline-comments": "off",
|
|
185
|
-
"react/no-leaked-conditional-rendering": "off",
|
|
186
|
-
"react/prefer-read-only-props": "off"
|
|
187
|
-
}
|
|
185
|
+
rules: rulesWithAutofixDisabled
|
|
188
186
|
},
|
|
189
187
|
{
|
|
190
188
|
files: [defaultGlob],
|
|
@@ -198,14 +196,7 @@ const config = [
|
|
|
198
196
|
"**/*.jsdoc-properties"
|
|
199
197
|
],
|
|
200
198
|
name: "jsdoc/default-expressions/rules",
|
|
201
|
-
rules:
|
|
202
|
-
"@stylistic/eol-last": "off",
|
|
203
|
-
"@stylistic/line-comment-position": "off",
|
|
204
|
-
"@stylistic/no-multiple-empty-lines": "off",
|
|
205
|
-
"no-inline-comments": "off",
|
|
206
|
-
"react/no-leaked-conditional-rendering": "off",
|
|
207
|
-
"react/prefer-read-only-props": "off"
|
|
208
|
-
}
|
|
199
|
+
rules: rulesWithAutofixDisabled
|
|
209
200
|
}
|
|
210
201
|
];
|
|
211
202
|
|
package/deno.json
CHANGED