@pumpn/eslint-config 15.0.3 → 15.0.5

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/.tool-versions CHANGED
@@ -1 +1 @@
1
- nodejs 22.4.1
1
+ nodejs 22.5.1
package/config.js CHANGED
@@ -22,9 +22,27 @@ const convertedGlobals = Object.fromEntries(
22
22
 
23
23
  const defaultGlob = "**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}";
24
24
 
25
+ const rulesDisabledInExamples = new Set([
26
+ "@eslint-react/no-leaked-conditional-rendering",
27
+ "@eslint-react/prefer-read-only-props",
28
+ "@stylistic/no-multiple-empty-lines",
29
+ "import-x/no-self-import",
30
+ "@stylistic/line-comment-position",
31
+ "no-inline-comments",
32
+ "@stylistic/eol-last"
33
+ ]);
34
+
25
35
  const rulesWithAutofixDisabled = Object.fromEntries(
26
36
  Object.entries(rules)
27
- .flatMap(([key, value]) => [[key, "off"], [`disable-autofix/${key}`, value]])
37
+ .flatMap(([key, value]) => [
38
+ [key, "off"],
39
+ [
40
+ `disable-autofix/${key}`,
41
+ rulesDisabledInExamples.has(key)
42
+ ? "off"
43
+ : value
44
+ ]
45
+ ])
28
46
  );
29
47
 
30
48
  const config = [
@@ -173,7 +191,12 @@ const config = [
173
191
  processor: "examples/examples"
174
192
  },
175
193
  {
176
- files: ["**/*.md/*.js"],
194
+ files: [
195
+ "**/*.md/*.js",
196
+ "**/*.jsdoc-defaults",
197
+ "**/*.jsdoc-params",
198
+ "**/*.jsdoc-properties"
199
+ ],
177
200
  languageOptions: {
178
201
  parserOptions: {
179
202
  program: null,
@@ -181,21 +204,6 @@ const config = [
181
204
  projectService: false
182
205
  }
183
206
  },
184
- name: "jsdoc/examples/rules",
185
- rules: rulesWithAutofixDisabled
186
- },
187
- {
188
- files: [defaultGlob],
189
- name: "jsdoc/default-expressions/processor",
190
- processor: "examples/examples"
191
- },
192
- {
193
- files: [
194
- "**/*.jsdoc-defaults",
195
- "**/*.jsdoc-params",
196
- "**/*.jsdoc-properties"
197
- ],
198
- name: "jsdoc/default-expressions/rules",
199
207
  rules: rulesWithAutofixDisabled
200
208
  }
201
209
  ];
package/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pumpn/eslint-config",
3
- "version": "15.0.3",
3
+ "version": "15.0.5",
4
4
  "exports": "./config.js",
5
5
  "tasks": {
6
6
  "lint": "deno run -A npm:eslint",
package/deno.lock CHANGED
@@ -2,7 +2,6 @@
2
2
  "version": "3",
3
3
  "packages": {
4
4
  "specifiers": {
5
- "jsr:@std/path": "jsr:@std/path@1.0.1",
6
5
  "npm:@eslint-community/eslint-plugin-eslint-comments@^4.3.0": "npm:@eslint-community/eslint-plugin-eslint-comments@4.3.0_eslint@9.8.0",
7
6
  "npm:@eslint-react/eslint-plugin@^1.8.2": "npm:@eslint-react/eslint-plugin@1.8.2_eslint@9.8.0",
8
7
  "npm:@stylistic/eslint-plugin@^2.6.1": "npm:@stylistic/eslint-plugin@2.6.1_eslint@9.8.0",
@@ -26,11 +25,6 @@
26
25
  "npm:eslint@^9.8.0": "npm:eslint@9.8.0",
27
26
  "npm:globals@^15.9.0": "npm:globals@15.9.0"
28
27
  },
29
- "jsr": {
30
- "@std/path@1.0.1": {
31
- "integrity": "e061ff02c28481ca49e3a14981875c345e9fc7e973190672782cd0ac8af70428"
32
- }
33
- },
34
28
  "npm": {
35
29
  "@alloc/quick-lru@5.2.0": {
36
30
  "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pumpn/eslint-config",
3
- "version": "15.0.3",
3
+ "version": "15.0.5",
4
4
  "description": "standard eslint config for pumpn code projects",
5
5
  "main": "config.js",
6
6
  "author": "Nano Miratus <nanomiratus@gmail.com>",