From 85c9eae61fb0874ceea7ad1aea89d78433880a4f Mon Sep 17 00:00:00 2001 From: rtritto Date: Tue, 1 Oct 2024 18:24:36 +0200 Subject: [PATCH] improve eslint config --- eslint.config.mjs | 13 +++++-------- package.json | 2 +- 2 files changed, 6 insertions(+), 9 deletions(-) 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",