@pumpn/eslint-config 15.0.0 → 15.0.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/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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pumpn/eslint-config",
3
- "version": "15.0.0",
3
+ "version": "15.0.2",
4
4
  "exports": "./config.js",
5
5
  "tasks": {
6
6
  "lint": "deno run -A npm:eslint",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pumpn/eslint-config",
3
- "version": "15.0.0",
3
+ "version": "15.0.2",
4
4
  "description": "standard eslint config for pumpn code projects",
5
5
  "main": "config.js",
6
6
  "author": "Nano Miratus <nanomiratus@gmail.com>",
package/rules/jsdoc.js CHANGED
@@ -191,7 +191,7 @@ const jsdocRules = {
191
191
  "jsdoc/require-returns-description": "warn",
192
192
  "jsdoc/require-returns-type": "warn",
193
193
  "jsdoc/require-template": [
194
- "warn",
194
+ "off",
195
195
  {
196
196
  requireSeparateTemplates: true
197
197
  }