diff --git a/eslint.config.js b/eslint.config.js deleted file mode 100644 index 79d8908..0000000 --- a/eslint.config.js +++ /dev/null @@ -1,26 +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, - }, - rules: { - "@typescript-eslint/ban-ts-comment": [ - "error", { - "ts-ignore": "allow-with-description" - } - ], - } - }, -]) diff --git a/eslint.config.ts b/eslint.config.ts new file mode 100644 index 0000000..4b1f6f2 --- /dev/null +++ b/eslint.config.ts @@ -0,0 +1,24 @@ +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 + }, + rules: { + "@typescript-eslint/ban-ts-comment": [ + "error", + { + "ts-ignore": "allow-with-description" + } + ] + } + } +]); diff --git a/package.json b/package.json index 2830223..6b7a2f2 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,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",