Skip to content

Commit 2ceef54

Browse files
committed
chore: move root config files to .config/
Cascaded from socket-wheelhouse. Moves the root config files into .config/ (with leading dot dropped from the names since they're already collected): .oxlintrc.json → .config/oxlintrc.json .oxfmtrc.json → .config/oxfmtrc.json lockstep.json → .config/lockstep.json (if present) lockstep.schema.json → .config/lockstep.schema.json (if present) tsconfig.json → .config/tsconfig.json tsconfig.dts.json → .config/tsconfig.dts.json (if present) tsconfig.test.json → .config/tsconfig.test.json (if present) Internal updates: * .config/tsconfig.json paths re-rooted (../src etc.) * .config/oxlintrc.json jsPlugins → './oxlint-plugin/index.js' * tools that auto-discover tsconfig.json now pass -p .config/tsconfig.json * lint / format / lockstep scripts pass -c / -p flags pointing at the new paths * package.json scripts (format, type, lockstep) updated to reference .config/ paths * CI workflows: lockstep.json refs updated to .config/lockstep.json
1 parent 988c6bb commit 2ceef54

9 files changed

Lines changed: 31 additions & 28 deletions

File tree

File renamed without changes.
File renamed without changes.

.oxlintrc.json renamed to .config/oxlintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json",
33
"plugins": ["typescript", "unicorn", "import"],
4-
"jsPlugins": ["./.config/oxlint-plugin/index.js"],
4+
"jsPlugins": ["./oxlint-plugin/index.js"],
55
"categories": {
66
"correctness": "error",
77
"suspicious": "error"

.config/tsconfig.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"extends": "./tsconfig.base.json",
3+
"compilerOptions": {
4+
"declarationMap": false,
5+
"sourceMap": false
6+
},
7+
"include": [
8+
"../src/**/*.mts",
9+
"../src/**/*.d.ts"
10+
],
11+
"exclude": [
12+
"../src/**/*.test.mts",
13+
"../src/**/*.tsx",
14+
"../src/commands/analytics/output-analytics.mts",
15+
"../src/commands/audit-log/output-audit-log.mts",
16+
"../src/commands/threat-feed/output-threat-feed.mts",
17+
"../build/**",
18+
"../binaries/**",
19+
"../dist/**",
20+
"../external/**",
21+
"../.cache/**",
22+
"../.claude/**",
23+
"../node_modules/**",
24+
"../pkg-binaries/**"
25+
]
26+
}

packages/cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
"dev:watch": "pnpm run build:watch",
2828
"check": "node ../../scripts/check.mts",
2929
"check-ci": "pnpm run check",
30-
"lint": "oxlint -c ../../.oxlintrc.json",
30+
"lint": "oxlint -c ../../.config/oxlintrc.json",
3131
"lint-ci": "pnpm run lint",
32-
"type": "tsc --noEmit",
32+
"type": "tsc -p ../../.config/tsconfig.json --noEmit",
3333
"type-ci": "pnpm run type",
3434
"sync-checksums": "node scripts/sync-checksums.mts",
3535
"cover": "node --import=./scripts/load.mts scripts/cover.mts",

scripts/lockstep-emit-schema.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const logger = getDefaultLogger()
2121

2222
const __dirname = path.dirname(fileURLToPath(import.meta.url))
2323
const rootDir = path.resolve(__dirname, '..')
24-
const outPath = path.join(rootDir, 'lockstep.schema.json')
24+
const outPath = path.join(rootDir, '.config', 'lockstep.schema.json')
2525

2626
// TypeBox schemas carry JSON Schema shape directly, plus a Symbol-keyed
2727
// [Kind] marker that JSON.stringify drops. Spreading the schema first

scripts/lockstep.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ function emitHuman(reports: Report[], summaries: AreaSummary[]): number {
942942
}
943943

944944
function main(): void {
945-
const rootManifestPath = path.join(rootDir, 'lockstep.json')
945+
const rootManifestPath = path.join(rootDir, '.config', 'lockstep.json')
946946
const { areas, merged } = loadManifestTree(rootManifestPath)
947947

948948
const rowsWithArea: Array<{ row: Row; area: string }> = []

tsconfig.json

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)