diff --git a/eslint.config.mjs b/eslint.config.mjs index 9cb6c60ef..1439a013f 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -4,6 +4,7 @@ import eslint from "@eslint/js"; import tseslint from "typescript-eslint"; export default tseslint.config({ + files: ["src/**/*.ts"], plugins: { "@typescript-eslint": tseslint.plugin, }, diff --git a/package.json b/package.json index b40944f5d..2e93e0a8d 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ }, "scripts": { "build": "tsc", - "lint": "ESLINT_USE_FLAT_CONFIG=true eslint 'src/**/*.ts' -c eslint.config.mjs", + "lint": "ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.mjs", "release": "yarn build && changeset publish", "test": "vitest" },