From 0232da2d95b9419bcba22d7c3b89d787f67c8875 Mon Sep 17 00:00:00 2001 From: maze Date: Thu, 12 Mar 2026 21:10:22 +0100 Subject: [PATCH] Use eslint.config.ts --- eslint.config.js | 19 ------------------- eslint.config.ts | 16 ++++++++++++++++ package.json | 1 + 3 files changed, 17 insertions(+), 19 deletions(-) delete mode 100644 eslint.config.js create mode 100644 eslint.config.ts diff --git a/eslint.config.js b/eslint.config.js deleted file mode 100644 index c6df6b2..0000000 --- a/eslint.config.js +++ /dev/null @@ -1,19 +0,0 @@ -import js from '@eslint/js' -import globals from 'globals' -import tseslint from 'typescript-eslint' -import { defineConfig, globalIgnores } from 'eslint/config' - -export default defineConfig([ - globalIgnores(['dist']), - { - files: ['**/*.{ts,tsx}'], - extends: [ - js.configs.recommended, - tseslint.configs.recommended, - ], - languageOptions: { - ecmaVersion: 2020, - globals: globals.browser, - }, - }, -]) diff --git a/eslint.config.ts b/eslint.config.ts new file mode 100644 index 0000000..c896512 --- /dev/null +++ b/eslint.config.ts @@ -0,0 +1,16 @@ +import js from "@eslint/js"; +import globals from "globals"; +import tseslint from "typescript-eslint"; +import { defineConfig, globalIgnores } from "eslint/config"; + +export default defineConfig([ + globalIgnores(["dist"]), + { + files: ["**/*.{ts,tsx}"], + extends: [js.configs.recommended, tseslint.configs.recommended], + languageOptions: { + ecmaVersion: 2020, + globals: globals.browser + } + } +]); diff --git a/package.json b/package.json index 7aded5e..8e63a59 100644 --- a/package.json +++ b/package.json @@ -49,6 +49,7 @@ "@vitest/coverage-v8": "^4.0.18", "eslint": "^10.0.3", "globals": "^17.4.0", + "jiti": "^2.6.1", "prettier": "3.8.1", "tsup": "^8.5.1", "typescript": "^5.9.3",