Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
also lint vite.config.js
  • Loading branch information
Uzlopak committed Jun 27, 2024
commit 27f6dea673e7fe859a8b1c342b1d4fdb2d5cd85c
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"scripts": {
"build": "node scripts/build.mjs && tsc -p tsconfig.json",
"lint": "prettier --check '{src,test}/**/*' README.md package.json",
"lint:fix": "prettier --write '{src,test}/**/*' README.md package.json",
"lint:fix": "prettier --write '{src,test}/**/*' README.md package.json vite.config.js",
"pretest": "npm run -s lint",
"test": "vitest run --coverage"
},
Expand Down
28 changes: 11 additions & 17 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
import { defineConfig } from 'vite'
import { defineConfig } from "vite";

export default defineConfig({
test
: {
coverage
: {
include: [
'src/**/*.ts'
],
reporter: [
'html'
],
thresholds: {
"100": true
}
}
}
})
test: {
coverage: {
include: ["src/**/*.ts"],
reporter: ["html"],
thresholds: {
100: true,
},
},
},
});