Skip to content

Commit 36525cf

Browse files
committed
lint: use the explicit oxlint plugin check, handle existing warning outside of src
1 parent d0f1fa5 commit 36525cf

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

eslint.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@ export default defineConfig([
107107
storybook.configs['flat/recommended'],
108108
importX.flatConfigs.recommended,
109109
importX.flatConfigs.typescript,
110-
// Turn off ESLint rules that are already handled by oxlint
111-
oxlint.configs['flat/recommended'],
112110
{
113111
plugins: {
114112
'unused-imports': unusedImports,
@@ -269,5 +267,7 @@ export default defineConfig([
269267
'@typescript-eslint/no-floating-promises': 'off',
270268
'no-console': 'off'
271269
}
272-
}
270+
},
271+
// Turn off ESLint rules that are already handled by oxlint
272+
oxlint.buildFromOxlintConfigFile('./.oxlintrc.json')
273273
])

tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@
5656
"src/**/*.vue",
5757
"src/**/*",
5858
"src/types/**/*.d.ts",
59+
"playwright.config.ts",
60+
"playwright.i18n.config.ts",
5961
"tailwind.config.ts",
6062
"tests-ui/**/*",
6163
"vite.config.mts",

vite.config.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import vueDevTools from 'vite-plugin-vue-devtools'
1313

1414
import { comfyAPIPlugin, generateImportMapPlugin } from './build/plugins'
1515

16+
// eslint-disable-next-line import-x/no-named-as-default-member
1617
dotenv.config()
1718

1819
const IS_DEV = process.env.NODE_ENV === 'development'

0 commit comments

Comments
 (0)