Skip to content

Commit

Permalink
feat: add style/jsx-quotes rule
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Oct 2, 2023
1 parent 1261b2e commit 5291cc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/configs/stylistic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export function stylistic(): FlatESLintConfigItem[] {
offsetTernaryExpressions: true,
outerIIFEBody: 1,
}],
'style/jsx-quotes': 'error',
'style/key-spacing': ['error', { afterColon: true, beforeColon: false }],
'style/keyword-spacing': ['error', { after: true, before: true }],
'style/lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"compilerOptions": {
"target": "es2020",
"baseUrl": ".",
"module": "es2020",
"moduleResolution": "Bundler",
"baseUrl": ".",
"esModuleInterop": true,
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true
},
"include": [
Expand Down

0 comments on commit 5291cc9

Please sign in to comment.