Skip to content

Commit d8f8b43

Browse files
committed
dprint fmt
1 parent 53e3b09 commit d8f8b43

File tree

2 files changed

+51
-49
lines changed

2 files changed

+51
-49
lines changed

packages/plugins/eslint-plugin/src/configs/disable-conflict-eslint-plugin-react.ts

Lines changed: 50 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -4,54 +4,56 @@ import type { RulePreset } from "@eslint-react/kit";
44
// Rules provided by `eslint-plugin-react` that exist in this plugin.
55
// Rules provided by `@stylistic` are also omitted from this list.
66
const conflictingRules = [
7-
'button-has-type',
8-
'destructuring-assignment',
9-
'display-name',
10-
'forbid-prop-types',
11-
'forward-ref-uses-ref',
12-
'hook-use-state',
13-
'iframe-missing-sandbox',
14-
'jsx-boolean-value',
15-
'jsx-filename-extension',
16-
'jsx-fragments',
17-
'jsx-key',
18-
'jsx-no-comment-textnodes',
19-
'jsx-no-constructed-context-values',
20-
'jsx-no-duplicate-props',
21-
'jsx-no-leaked-render',
22-
'jsx-no-script-url',
23-
'jsx-no-target-blank',
24-
'jsx-no-undef',
25-
'jsx-no-useless-fragment',
26-
'jsx-pascal-case',
27-
'jsx-uses-react',
28-
'jsx-uses-vars',
29-
'no-access-state-in-setstate',
30-
'no-array-index-key',
31-
'no-children-prop',
32-
'no-danger',
33-
'no-danger-with-children',
34-
'no-deprecated',
35-
'no-did-mount-set-state',
36-
'no-did-update-set-state',
37-
'no-direct-mutation-state',
38-
'no-find-dom-node',
39-
'no-namespace',
40-
'no-object-type-as-default-prop',
41-
'no-redundant-should-component-update',
42-
'no-render-return-value',
43-
'no-string-refs',
44-
'no-unknown-property',
45-
'no-unsafe',
46-
'no-unstable-nested-components',
47-
'no-unused-class-component-members',
48-
'no-unused-state',
49-
'no-will-update-set-state',
50-
'prefer-read-only-props',
51-
'prop-types',
52-
'void-dom-elements-no-children'
53-
]
7+
"button-has-type",
8+
"destructuring-assignment",
9+
"display-name",
10+
"forbid-prop-types",
11+
"forward-ref-uses-ref",
12+
"hook-use-state",
13+
"iframe-missing-sandbox",
14+
"jsx-boolean-value",
15+
"jsx-filename-extension",
16+
"jsx-fragments",
17+
"jsx-key",
18+
"jsx-no-comment-textnodes",
19+
"jsx-no-constructed-context-values",
20+
"jsx-no-duplicate-props",
21+
"jsx-no-leaked-render",
22+
"jsx-no-script-url",
23+
"jsx-no-target-blank",
24+
"jsx-no-undef",
25+
"jsx-no-useless-fragment",
26+
"jsx-pascal-case",
27+
"jsx-uses-react",
28+
"jsx-uses-vars",
29+
"no-access-state-in-setstate",
30+
"no-array-index-key",
31+
"no-children-prop",
32+
"no-danger",
33+
"no-danger-with-children",
34+
"no-deprecated",
35+
"no-did-mount-set-state",
36+
"no-did-update-set-state",
37+
"no-direct-mutation-state",
38+
"no-find-dom-node",
39+
"no-namespace",
40+
"no-object-type-as-default-prop",
41+
"no-redundant-should-component-update",
42+
"no-render-return-value",
43+
"no-string-refs",
44+
"no-unknown-property",
45+
"no-unsafe",
46+
"no-unstable-nested-components",
47+
"no-unused-class-component-members",
48+
"no-unused-state",
49+
"no-will-update-set-state",
50+
"prefer-read-only-props",
51+
"prop-types",
52+
"void-dom-elements-no-children",
53+
];
5454

5555
export const name = "@eslint-react/disable-conflict-eslint-plugin-react";
5656

57-
export const rules: RulePreset = Object.fromEntries(Object.entries(conflictingRules).map(([key]) => [key, "off"] as const));
57+
export const rules: RulePreset = Object.fromEntries(
58+
Object.entries(conflictingRules).map(([key]) => [key, "off"] as const),
59+
);

packages/plugins/eslint-plugin/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default {
4040
["debug"]: debugConfig,
4141
["debug-legacy"]: toLegacyConfig(debugConfig),
4242
["disable-conflict-eslint-plugin-react"]: disableConflictEslintPluginReact,
43-
["disable-conflict-eslint-plugin-react-legacy"]:toLegacyConfig(disableConflictEslintPluginReact),
43+
["disable-conflict-eslint-plugin-react-legacy"]: toLegacyConfig(disableConflictEslintPluginReact),
4444
["disable-debug"]: disableDebugConfig,
4545
["disable-debug-legacy"]: toLegacyConfig(disableDebugConfig),
4646
["disable-dom"]: disableDomConfig,

0 commit comments

Comments
 (0)