chore(config): Improve project configuration and linting

This commit is contained in:
Kazuki Yamada
2024-09-01 16:49:11 +09:00
parent 57f90442c1
commit 707428715f
4 changed files with 18 additions and 5 deletions

View File

@@ -1,5 +1,18 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"files": {
"include": [
"./src/**",
"./tests/**",
"package.json",
"biome.json",
".secretlintrc.json",
"tsconfig.json",
"tsconfig.build.json",
"vite.config.ts",
"repopack.config.json"
]
},
"organizeImports": {
"enabled": true
},

View File

@@ -13,7 +13,7 @@
"scripts": {
"clean": "rimraf lib",
"build": "npm run clean && tsc -p tsconfig.build.json --sourceMap --declaration",
"lint": "biome lint --write ./src ./tests && biome format --write ./src ./tests && biome check --write ./src ./tests && tsc --noEmit && secretlint **/*",
"lint": "biome lint --write && biome format --write && biome check --write && tsc --noEmit && secretlint **/*",
"test": "vitest",
"test-coverage": "vitest run --coverage",
"cli-run": "npm run build && node --trace-warnings bin/repopack",

View File

@@ -19,5 +19,5 @@
"types": ["node", "picocolors"]
},
"include": ["src/**/*", "tests/**/*"],
"exclude": ["tests/integration-tests/fixtures"],
"exclude": ["tests/integration-tests/fixtures"]
}

View File

@@ -1,4 +1,4 @@
import { defineConfig } from 'vitest/config'
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
@@ -9,5 +9,5 @@ export default defineConfig({
include: ['src/**/*'],
reporter: ['text', 'json', 'html'],
},
}
})
},
});