Skip to content

Commit 1cfafa3

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 e1ddcd1 commit 1cfafa3

9 files changed

Lines changed: 9 additions & 9 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"

tsconfig.json renamed to .config/tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"target": "esnext",
66
// DOM needed for WASM unfortunately
77
"lib": ["dom", "esnext"],
8-
"outDir": "out",
8+
"outDir": "../out",
99
"sourceMap": true,
10-
"rootDir": "src",
10+
"rootDir": "../src",
1111
"skipLibCheck": true,
1212
"esModuleInterop": true,
1313
"types": ["node", "vscode"],
@@ -19,5 +19,5 @@
1919
"typeAcquisition": {
2020
"enable": true
2121
},
22-
"exclude": ["node_modules"]
22+
"exclude": ["../node_modules"]
2323
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
"prepare": "husky",
109109
"security": "node scripts/security.mts",
110110
"test": "node scripts/test.mts",
111-
"test-compile": "tsc -p ./",
111+
"test-compile": "tsc -p .config/tsconfig.json",
112112
"update": "node scripts/update.mts",
113113
"vscode:prepublish": "pnpm run esbuild --minify",
114114
"vscode:uninstall": "node ./src/lifecycle/uninstall.mjs"

scripts/ai-lint-fix.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ async function runLintJson(
142142
'exec',
143143
'oxlint',
144144
'--format=json',
145-
'--config=.oxlintrc.json',
145+
'--config=.config/oxlintrc.json',
146146
...passthrough.filter(a => a !== '--all'),
147147
]
148148
if (!passthrough.includes('--all') && !passthrough.includes('--staged')) {
@@ -382,7 +382,7 @@ async function main(): Promise<void> {
382382
if (process.env['SKIP_AI_FIX'] === '1') {
383383
return
384384
}
385-
if (!existsSync('.oxlintrc.json')) {
385+
if (!existsSync('.config/oxlintrc.json')) {
386386
return
387387
}
388388

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 @@ export 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 }> = []

0 commit comments

Comments
 (0)