Skip to content

Commit

Permalink
improve eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
rtritto committed Oct 19, 2024
1 parent 044574c commit 85c9eae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
13 changes: 5 additions & 8 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 85c9eae

Please sign in to comment.