diff --git a/eslint.config.mjs b/eslint.config.mjs index b9e50be..34d488a 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,15 +1,12 @@ -import tseslint from 'typescript-eslint' -import solid from 'eslint-plugin-solid/configs/typescript' +import pluginTypescript from 'typescript-eslint' +import pluginSolid from 'eslint-plugin-solid/configs/typescript' -export default tseslint.config( - { - files: ['**/*.{js,ts,jsx,tsx}'], - ...solid - }, +export default pluginTypescript.config( { ignores: ['**/dist/'] }, - ...tseslint.configs.recommended, + ...pluginTypescript.configs.recommended, + pluginSolid, { rules: { '@typescript-eslint/no-explicit-any': 0, diff --git a/package.json b/package.json index 60b4304..180d6e1 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "format:biome": "biome format --write .", "format:check": "biome format . || (echo 'Fix formatting by running `$ pnpm run -w format`.' && exit 1)", "========= Lint": "", - "lint": "eslint .", + "lint": "eslint packages/**/*.{js,ts,jsx,tsx} examples/**/*.{js,ts,jsx,tsx}", "========= Release": "", "release": "cd ./packages/vike-solid/ && pnpm run release", "release:minor": "cd ./packages/vike-solid/ && pnpm run release:minor",