diff --git a/eslint.config.ts b/eslint.config.ts index 9a3ff43..d0c71e8 100644 --- a/eslint.config.ts +++ b/eslint.config.ts @@ -1,16 +1,16 @@ -import oxlint from './src/index.js'; +import { buildFromOxlintConfigFile } from './src/index.js'; import unicorn from 'eslint-plugin-unicorn'; import eslint from '@eslint/js'; import eslintConfigPrettier from 'eslint-config-prettier'; import tseslint from 'typescript-eslint'; export default [ + { + ignores: ['dist/'], + }, eslint.configs.recommended, unicorn.configs['flat/recommended'], ...tseslint.configs.recommended, eslintConfigPrettier, - oxlint.configs['flat/all'], - { - ignores: ['dist/'], - }, + ...buildFromOxlintConfigFile('oxlint.json'), ];