Update
This commit is contained in:
@ -30,7 +30,10 @@ export async function extendConfig({
|
||||
]);
|
||||
|
||||
const result: FlatESLintConfig[] = [
|
||||
{ rules: eslintRules }, //
|
||||
{
|
||||
name: 'eslint-rules/eslint',
|
||||
rules: eslintRules,
|
||||
},
|
||||
...tseslint.configs.recommendedTypeChecked,
|
||||
importPlugin.flatConfigs.recommended,
|
||||
importPlugin.flatConfigs.react,
|
||||
@ -38,6 +41,7 @@ export async function extendConfig({
|
||||
...unicorn,
|
||||
stylistic,
|
||||
{
|
||||
name: 'eslint-rules: TypeScript and import-x',
|
||||
files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],
|
||||
languageOptions: {
|
||||
parserOptions: {
|
||||
@ -65,6 +69,7 @@ export async function extendConfig({
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'eslint-rules: Disable type checking',
|
||||
files: ['*.js', '*.mjs', '*.cjs', '*.jsx'],
|
||||
...tseslint.configs.disableTypeChecked,
|
||||
rules: {
|
||||
@ -76,6 +81,7 @@ export async function extendConfig({
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'eslint-rules: .d.ts files',
|
||||
files: ['*.d.ts'],
|
||||
rules: {
|
||||
'@typescript-eslint/consistent-type-imports': off,
|
||||
|
Reference in New Issue
Block a user