From 3a238659c3942c9ae6f578a33750b5a6ca6fb36c Mon Sep 17 00:00:00 2001 From: "Alexander S." Date: Sun, 3 Nov 2024 00:34:00 +0100 Subject: [PATCH] build: use `buildFromOxlintConfigFile` in eslint config (#211) will create smaller refactor PRs to resolve the issues --- eslint.config.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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'), ];