Skip to content

Commit

Permalink
chore(config): Improve project configuration and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
yamadashy committed Sep 1, 2024
1 parent 57f9044 commit 7074287
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
13 changes: 13 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -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
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
"types": ["node", "picocolors"]
},
"include": ["src/**/*", "tests/**/*"],
"exclude": ["tests/integration-tests/fixtures"],
"exclude": ["tests/integration-tests/fixtures"]
}
6 changes: 3 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineConfig } from 'vitest/config'
import { defineConfig } from 'vitest/config';

export default defineConfig({
test: {
Expand All @@ -9,5 +9,5 @@ export default defineConfig({
include: ['src/**/*'],
reporter: ['text', 'json', 'html'],
},
}
})
},
});

0 comments on commit 7074287

Please sign in to comment.