@pumpn/eslint-config 15.0.3 → 15.0.4

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 (3) hide show
  1. package/config.js +19 -1
  2. package/deno.json +1 -1
  3. package/package.json +1 -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 = [
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.4",
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.3",
3
+ "version": "15.0.4",
4
4
  "description": "standard eslint config for pumpn code projects",
5
5
  "main": "config.js",
6
6
  "author": "Nano Miratus <nanomiratus@gmail.com>",