Skip to content

Commit 1373e0e

Browse files
committed
feat: add style/jsx-quotes rule
1 parent d4dacc7 commit 1373e0e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/configs/react.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function react(options: OptionsHasTypeScript & OptionsOverrides = {}): Fl
2525
'react-hooks': pluginReactHooks,
2626
},
2727
rules: {
28-
'jsx-quotes': ['error', 'prefer-double'],
28+
'style/jsx-quotes': ['error', 'prefer-double'],
2929

3030
...pluginReact.configs.recommended.rules,
3131
'react/react-in-jsx-scope': OFF,

src/configs/stylistic.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export function stylistic(): FlatESLintConfigItem[] {
6464
offsetTernaryExpressions: true,
6565
outerIIFEBody: 1,
6666
}],
67+
'style/jsx-quotes': 'error',
6768
'style/key-spacing': ['error', { afterColon: true, beforeColon: false }],
6869
'style/keyword-spacing': ['error', { after: true, before: true }],
6970
'style/lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],

0 commit comments

Comments
 (0)