@pumpn/eslint-config 15.6.1 → 16.0.0

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
@@ -1,5 +1,4 @@
1
1
  import * as parser from "@typescript-eslint/parser";
2
- import { getJsdocProcessorPlugin } from "eslint-plugin-jsdoc/getJsdocProcessorPlugin.js";
3
2
  import globals from "globals";
4
3
 
5
4
  import plugins from "./plugins.js";
@@ -26,29 +25,6 @@ const convertedGlobals = Object.fromEntries(
26
25
 
27
26
  const defaultGlob = "**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}";
28
27
 
29
- const rulesDisabledInExamples = new Set([
30
- "@eslint-react/no-leaked-conditional-rendering",
31
- "@eslint-react/prefer-read-only-props",
32
- "@stylistic/eol-last",
33
- "@stylistic/line-comment-position",
34
- "@stylistic/no-multiple-empty-lines",
35
- "import-x/no-self-import",
36
- "no-inline-comments"
37
- ]);
38
-
39
- const rulesWithAutofixDisabled = Object.fromEntries(
40
- Object.entries(rules)
41
- .flatMap(([key, value]) => [
42
- [key, "off"],
43
- [
44
- `disable-autofix/${key}`,
45
- rulesDisabledInExamples.has(key)
46
- ? "off"
47
- : value
48
- ]
49
- ])
50
- );
51
-
52
28
  /**
53
29
  * ESLint configuration.
54
30
  *
@@ -195,39 +171,6 @@ const config = /** @type {const} */ ([
195
171
  "no-undef": "off"
196
172
  }
197
173
  },
198
- {
199
- files: [defaultGlob],
200
- plugins: {
201
- examples: getJsdocProcessorPlugin({
202
- captionRequired: false,
203
- checkDefaults: true,
204
- checkExamples: true,
205
- checkParams: true,
206
- checkProperties: true,
207
- paddedIndent: 0,
208
- parser,
209
- sourceType: "module"
210
- })
211
- },
212
- processor: "examples/examples"
213
- },
214
- {
215
- files: [
216
- "**/*.md/*.js",
217
- "**/*.jsdoc-defaults",
218
- "**/*.jsdoc-params",
219
- "**/*.jsdoc-properties"
220
- ],
221
- languageOptions: {
222
- parserOptions: {
223
- program: null,
224
- project: false,
225
- projectService: false
226
- }
227
- },
228
- plugins,
229
- rules: rulesWithAutofixDisabled
230
- },
231
174
  {
232
175
  files: ["**/*.doc.js"],
233
176
  rules: {
package/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pumpn/eslint-config",
3
- "version": "15.6.1",
3
+ "version": "16.0.0",
4
4
  "exports": "./config.js",
5
5
  "tasks": {
6
6
  "lint": "deno run -A npm:eslint",
@@ -39,13 +39,13 @@
39
39
  },
40
40
  "imports": {
41
41
  "@eslint-community/eslint-plugin-eslint-comments": "npm:@eslint-community/eslint-plugin-eslint-comments@^4.4.0",
42
- "@eslint-react/eslint-plugin": "npm:@eslint-react/eslint-plugin@^1.15.0",
42
+ "@eslint-react/eslint-plugin": "npm:@eslint-react/eslint-plugin@^1.28.0",
43
43
  "@std/path": "jsr:@std/path@^1",
44
- "@stylistic/eslint-plugin": "npm:@stylistic/eslint-plugin@^3.0.1",
44
+ "@stylistic/eslint-plugin": "npm:@stylistic/eslint-plugin@^4.1.0",
45
45
  "@typescript-eslint/parser": "npm:@typescript-eslint/parser@^8.11.0",
46
+ "eslint": "npm:eslint@^9.21.0",
47
+ "eslint-plugin-command": "npm:eslint-plugin-command@^3.1.0",
46
48
  "eslint-plugin-depend": "npm:eslint-plugin-depend@^0.12.0",
47
- "eslint-plugin-disable-autofix": "npm:eslint-plugin-disable-autofix@^5.0.1",
48
- "eslint-plugin-func-params-args": "npm:eslint-plugin-func-params-args@^4.0.0",
49
49
  "eslint-plugin-import-x": "npm:eslint-plugin-import-x@^4.3.1",
50
50
  "eslint-plugin-jsdoc": "npm:eslint-plugin-jsdoc@^50.4.3",
51
51
  "eslint-plugin-no-secrets": "npm:eslint-plugin-no-secrets@^2.2.1",
@@ -57,13 +57,13 @@
57
57
  "eslint-plugin-security": "npm:eslint-plugin-security@^3.0.1",
58
58
  "eslint-plugin-sonarjs": "npm:eslint-plugin-sonarjs@^3.0.1",
59
59
  "eslint-plugin-tailwindcss": "npm:eslint-plugin-tailwindcss@^3.18.0",
60
- "eslint-plugin-unicorn": "npm:eslint-plugin-unicorn@^56.0.0",
61
- "globals": "npm:globals@^15.14.0",
60
+ "eslint-plugin-unicorn": "npm:eslint-plugin-unicorn@^57.0.0",
61
+ "globals": "npm:globals@^16.0.0",
62
62
  "preact": "https://esm.sh/*preact@10.19.3?dev",
63
63
  "preact/jsx-runtime": "https://esm.sh/*preact@10.19.3/jsx-runtime?dev"
64
64
  },
65
65
  "exclude": [
66
66
  "**/_fresh/*"
67
67
  ],
68
- "nodeModulesDir": "auto"
68
+ "nodeModulesDir": "manual"
69
69
  }