File tree Expand file tree Collapse file tree 4 files changed +8
-10
lines changed Expand file tree Collapse file tree 4 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 11import { createRequire } from 'node:module'
2- import stylisticMigrate from '@stylistic/eslint-plugin-migrate'
32import sortKeys from 'eslint-plugin-sort-keys'
43
54import { coderwyd } from './dist/index.js'
@@ -13,11 +12,9 @@ export default coderwyd(
1312 {
1413 files : [ 'src/**/*.ts' ] ,
1514 plugins : {
16- '@stylistic/migrate' : stylisticMigrate ,
1715 'sort-keys' : sortKeys ,
1816 } ,
1917 rules : {
20- '@stylistic/migrate/rules' : 'error' ,
2118 'sort-keys/sort-keys-fix' : 'error' ,
2219 } ,
2320 } ,
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ export function astro(options: OptionsHasTypeScript = {}): FlatESLintConfigItem[
1010 languageOptions : {
1111 parser : parserAstro ,
1212 parserOptions : {
13- parser : options . typescript ? ( parserTs as any ) : null ,
1413 extraFileExtensions : [ '.astro' ] ,
14+ parser : options . typescript ? ( parserTs as any ) : null ,
1515 } ,
1616 } ,
1717 plugins : {
Original file line number Diff line number Diff line change @@ -21,11 +21,6 @@ export function react(options: OptionsHasTypeScript = {}): FlatESLintConfigItem[
2121 'react' : pluginReact ,
2222 'react-hooks' : pluginReactHooks ,
2323 } ,
24- settings : {
25- react : {
26- version : 'detect' ,
27- } ,
28- } ,
2924 rules : {
3025 'jsx-quotes' : [ 'error' , 'prefer-double' ] ,
3126
@@ -34,6 +29,11 @@ export function react(options: OptionsHasTypeScript = {}): FlatESLintConfigItem[
3429
3530 ...pluginReactHooks . configs . recommended . rules ,
3631 } ,
32+ settings : {
33+ react : {
34+ version : 'detect' ,
35+ } ,
36+ } ,
3737 } ,
3838 ]
3939}
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ import {
2121 typescript ,
2222 typescriptWithLanguageServer ,
2323 unicorn ,
24- vue , yml ,
24+ vue ,
25+ yml ,
2526} from './configs'
2627import type { OptionsConfig } from './types'
2728import { combine } from './utils'
You can’t perform that action at this time.
0 commit comments