Linting target in frontend

This commit is contained in:
Imbus 2024-02-27 03:17:40 +01:00
parent 16d1d62b11
commit fae97efc2d

View file

@ -8,7 +8,8 @@
"build": "tsc && vite build", "build": "tsc && vite build",
"preview": "vite preview", "preview": "vite preview",
"format": "prettier --config .prettierrc '**/*.ts' '**/*.tsx' '**/*.js' '**/*.json' --write", "format": "prettier --config .prettierrc '**/*.ts' '**/*.tsx' '**/*.js' '**/*.json' --write",
"fmt": "prettier --config .prettierrc 'src/**/*.ts' 'src/**/*.tsx' --write && npx eslint --fix 'src/**/*.ts' 'src/**/*.tsx'" "fmt": "prettier --config .prettierrc 'src/**/*.ts' 'src/**/*.tsx' --write && npx eslint --fix 'src/**/*.ts' 'src/**/*.tsx'",
"lint": "eslint --ext .ts,.tsx src"
}, },
"dependencies": { "dependencies": {
"@solidjs/router": "^0.9.1", "@solidjs/router": "^0.9.1",
@ -35,4 +36,4 @@
"vite-plugin-qrcode": "^0.2.3", "vite-plugin-qrcode": "^0.2.3",
"vite-plugin-solid": "^2.8.0" "vite-plugin-solid": "^2.8.0"
} }
} }