fix(eslint-config): add spread to `tseslint.configs.recommended` (#1084)

pull/1085/head
Yusuke Wada 2025-03-29 14:02:45 +09:00 committed by GitHub
parent 9a98e388cc
commit 8e6961ec9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 78 additions and 85 deletions

View File

@ -6,8 +6,8 @@ import tseslint from 'typescript-eslint'
export default [ export default [
js.configs.recommended, js.configs.recommended,
nodePlugin.configs["flat/recommended"], nodePlugin.configs['flat/recommended'],
tseslint.configs.recommended, ...tseslint.configs.recommended,
{ {
plugins: { plugins: {
'@typescript-eslint': tseslint.plugin, '@typescript-eslint': tseslint.plugin,
@ -52,14 +52,7 @@ export default [
'import-x/order': [ 'import-x/order': [
'error', 'error',
{ {
groups: [ groups: ['external', 'builtin', 'internal', 'parent', 'sibling', 'index'],
'external',
'builtin',
'internal',
'parent',
'sibling',
'index',
],
alphabetize: { alphabetize: {
order: 'asc', order: 'asc',
caseInsensitive: true, caseInsensitive: true,