@pumpn/eslint-config 15.0.2 → 15.0.3

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/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pumpn/eslint-config",
3
- "version": "15.0.2",
3
+ "version": "15.0.3",
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.2",
3
+ "version": "15.0.3",
4
4
  "description": "standard eslint config for pumpn code projects",
5
5
  "main": "config.js",
6
6
  "author": "Nano Miratus <nanomiratus@gmail.com>",
package/plugins.js CHANGED
@@ -34,13 +34,13 @@ const plugins = {
34
34
  "no-secrets": noSecrets,
35
35
  perfectionist,
36
36
  promise,
37
- react,
38
37
  redos,
39
38
  regexp,
40
39
  security,
41
40
  sonarjs,
42
41
  tailwindcss,
43
- unicorn
42
+ unicorn,
43
+ ...react.configs.all.plugins
44
44
  };
45
45
 
46
46
  export default plugins;
@@ -1,49 +1,49 @@
1
1
  const coreRules = {
2
- "react/avoid-shorthand-boolean": "off",
3
- "react/avoid-shorthand-fragment": "off",
4
- "react/ensure-forward-ref-using-ref": "error",
5
- "react/no-access-state-in-setstate": "error",
6
- "react/no-array-index-key": "error",
7
- "react/no-children-count": "error",
8
- "react/no-children-for-each": "error",
9
- "react/no-children-map": "error",
10
- "react/no-children-only": "error",
11
- "react/no-children-prop": "error",
12
- "react/no-children-to-array": "error",
13
- "react/no-class-component": "error",
14
- "react/no-clone-element": "error",
15
- "react/no-comment-textnodes": "error",
16
- "react/no-complex-conditional-rendering": "error",
17
- "react/no-component-will-mount": "error",
18
- "react/no-component-will-receive-props": "error",
19
- "react/no-component-will-update": "error",
20
- "react/no-create-ref": "error",
21
- "react/no-default-props": "error",
22
- "react/no-direct-mutation-state": "error",
23
- "react/no-duplicate-key": "error",
24
- "react/no-implicit-key": "error",
25
- "react/no-leaked-conditional-rendering": "error",
26
- "react/no-missing-component-display-name": "error",
27
- "react/no-missing-key": "error",
28
- "react/no-nested-components": "error",
29
- "react/no-prop-types": "error",
30
- "react/no-redundant-should-component-update": "error",
31
- "react/no-set-state-in-component-did-mount": "error",
32
- "react/no-set-state-in-component-did-update": "error",
33
- "react/no-set-state-in-component-will-update": "error",
34
- "react/no-string-refs": "error",
35
- "react/no-unsafe-component-will-mount": "error",
36
- "react/no-unsafe-component-will-receive-props": "error",
37
- "react/no-unsafe-component-will-update": "error",
38
- "react/no-unstable-context-value": "error",
39
- "react/no-unstable-default-props": "error",
40
- "react/no-unused-class-component-members": "error",
41
- "react/no-unused-state": "error",
42
- "react/no-useless-fragment": "error",
43
- "react/prefer-destructuring-assignment": "error",
44
- "react/prefer-read-only-props": "error",
45
- "react/prefer-shorthand-boolean": "error",
46
- "react/prefer-shorthand-fragment": "error"
2
+ "@eslint-react/avoid-shorthand-boolean": "off",
3
+ "@eslint-react/avoid-shorthand-fragment": "off",
4
+ "@eslint-react/ensure-forward-ref-using-ref": "error",
5
+ "@eslint-react/no-access-state-in-setstate": "error",
6
+ "@eslint-react/no-array-index-key": "error",
7
+ "@eslint-react/no-children-count": "error",
8
+ "@eslint-react/no-children-for-each": "error",
9
+ "@eslint-react/no-children-map": "error",
10
+ "@eslint-react/no-children-only": "error",
11
+ "@eslint-react/no-children-prop": "error",
12
+ "@eslint-react/no-children-to-array": "error",
13
+ "@eslint-react/no-class-component": "error",
14
+ "@eslint-react/no-clone-element": "error",
15
+ "@eslint-react/no-comment-textnodes": "error",
16
+ "@eslint-react/no-complex-conditional-rendering": "error",
17
+ "@eslint-react/no-component-will-mount": "error",
18
+ "@eslint-react/no-component-will-receive-props": "error",
19
+ "@eslint-react/no-component-will-update": "error",
20
+ "@eslint-react/no-create-ref": "error",
21
+ "@eslint-react/no-default-props": "error",
22
+ "@eslint-react/no-direct-mutation-state": "error",
23
+ "@eslint-react/no-duplicate-key": "error",
24
+ "@eslint-react/no-implicit-key": "error",
25
+ "@eslint-react/no-leaked-conditional-rendering": "error",
26
+ "@eslint-react/no-missing-component-display-name": "error",
27
+ "@eslint-react/no-missing-key": "error",
28
+ "@eslint-react/no-nested-components": "error",
29
+ "@eslint-react/no-prop-types": "error",
30
+ "@eslint-react/no-redundant-should-component-update": "error",
31
+ "@eslint-react/no-set-state-in-component-did-mount": "error",
32
+ "@eslint-react/no-set-state-in-component-did-update": "error",
33
+ "@eslint-react/no-set-state-in-component-will-update": "error",
34
+ "@eslint-react/no-string-refs": "error",
35
+ "@eslint-react/no-unsafe-component-will-mount": "error",
36
+ "@eslint-react/no-unsafe-component-will-receive-props": "error",
37
+ "@eslint-react/no-unsafe-component-will-update": "error",
38
+ "@eslint-react/no-unstable-context-value": "error",
39
+ "@eslint-react/no-unstable-default-props": "error",
40
+ "@eslint-react/no-unused-class-component-members": "error",
41
+ "@eslint-react/no-unused-state": "error",
42
+ "@eslint-react/no-useless-fragment": "error",
43
+ "@eslint-react/prefer-destructuring-assignment": "error",
44
+ "@eslint-react/prefer-read-only-props": "error",
45
+ "@eslint-react/prefer-shorthand-boolean": "error",
46
+ "@eslint-react/prefer-shorthand-fragment": "error"
47
47
  };
48
48
 
49
49
  export default coreRules;
@@ -1,7 +1,7 @@
1
1
  const debugRules = {
2
- "react/debug/class-component": "off",
3
- "react/debug/function-component": "off",
4
- "react/debug/react-hooks": "off"
2
+ "@eslint-react/debug/class-component": "off",
3
+ "@eslint-react/debug/function-component": "off",
4
+ "@eslint-react/debug/react-hooks": "off"
5
5
  };
6
6
 
7
7
  export default debugRules;
@@ -1,15 +1,15 @@
1
1
  const domRules = {
2
- "react/dom/no-children-in-void-dom-elements": "error",
3
- "react/dom/no-dangerously-set-innerhtml": "error",
4
- "react/dom/no-dangerously-set-innerhtml-with-children": "error",
5
- "react/dom/no-find-dom-node": "error",
6
- "react/dom/no-missing-button-type": "error",
7
- "react/dom/no-missing-iframe-sandbox": "error",
8
- "react/dom/no-namespace": "error",
9
- "react/dom/no-render-return-value": "error",
10
- "react/dom/no-script-url": "error",
11
- "react/dom/no-unsafe-iframe-sandbox": "error",
12
- "react/dom/no-unsafe-target-blank": "error"
2
+ "@eslint-react/dom/no-children-in-void-dom-elements": "error",
3
+ "@eslint-react/dom/no-dangerously-set-innerhtml": "error",
4
+ "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
5
+ "@eslint-react/dom/no-find-dom-node": "error",
6
+ "@eslint-react/dom/no-missing-button-type": "error",
7
+ "@eslint-react/dom/no-missing-iframe-sandbox": "error",
8
+ "@eslint-react/dom/no-namespace": "error",
9
+ "@eslint-react/dom/no-render-return-value": "error",
10
+ "@eslint-react/dom/no-script-url": "error",
11
+ "@eslint-react/dom/no-unsafe-iframe-sandbox": "error",
12
+ "@eslint-react/dom/no-unsafe-target-blank": "error"
13
13
  };
14
14
 
15
15
  export default domRules;
@@ -1,10 +1,10 @@
1
1
  const hooksExtraRules = {
2
- "react/hooks-extra/ensure-custom-hooks-using-other-hooks": "error",
3
- "react/hooks-extra/ensure-use-callback-has-non-empty-deps": "error",
4
- "react/hooks-extra/ensure-use-memo-has-non-empty-deps": "error",
5
- "react/hooks-extra/no-direct-set-state-in-use-effect": "error",
6
- "react/hooks-extra/no-direct-set-state-in-use-layout-effect": "error",
7
- "react/hooks-extra/prefer-use-state-lazy-initialization": "error"
2
+ "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "error",
3
+ "@eslint-react/hooks-extra/ensure-use-callback-has-non-empty-deps": "error",
4
+ "@eslint-react/hooks-extra/ensure-use-memo-has-non-empty-deps": "error",
5
+ "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "error",
6
+ "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "error",
7
+ "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "error"
8
8
  };
9
9
 
10
10
  export default hooksExtraRules;
@@ -1,20 +1,20 @@
1
1
  const namingConventionRules = {
2
- "react/naming-convention/component-name": [
2
+ "@eslint-react/naming-convention/component-name": [
3
3
  "error",
4
4
  {
5
5
  excepts: [],
6
6
  rule: "PascalCase"
7
7
  }
8
8
  ],
9
- "react/naming-convention/filename": ["error", { rule: "kebab-case" }],
10
- "react/naming-convention/filename-extension": [
9
+ "@eslint-react/naming-convention/filename": ["error", { rule: "kebab-case" }],
10
+ "@eslint-react/naming-convention/filename-extension": [
11
11
  "error",
12
12
  {
13
13
  allow: "as-needed",
14
14
  extensions: [".jsx", ".tsx"]
15
15
  }
16
16
  ],
17
- "react/naming-convention/use-state": "error"
17
+ "@eslint-react/naming-convention/use-state": "error"
18
18
  };
19
19
 
20
20
  export default namingConventionRules;