Skip to content

Commit a65eb3f

Browse files
committed
Organize configuration files into .config directory
Move config files (eslint, vitest, knip, oxlint, taze) to .config folder for cleaner project structure. Update package.json scripts to reference new config locations. Remove unnecessary dotenvx wrapper from pretest:unit since build doesn't require environment variables.
1 parent 64c8412 commit a65eb3f

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed
File renamed without changes.

eslint.config.mjs renamed to .config/eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const __filename = fileURLToPath(import.meta.url)
2020
const __dirname = path.dirname(__filename)
2121
const require = createRequire(import.meta.url)
2222

23-
const rootPath = __dirname
23+
const rootPath = path.dirname(__dirname)
2424

2525
const nodeGlobalsConfig = Object.fromEntries(
2626
Object.entries(globals.node).map(([k]) => [k, 'readonly']),
File renamed without changes.
File renamed without changes.
File renamed without changes.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"scripts": {
3232
"check": "run-p -c --aggregate-output check:*",
3333
"lint-ci": "pnpm run check:lint",
34-
"check:lint": "eslint --report-unused-disable-directives .",
34+
"check:lint": "eslint --config .config/eslint.config.mjs --report-unused-disable-directives .",
3535
"check:lint:fix": "pnpm run check:lint --fix",
3636
"build": "pnpm run clean:dist && tsgo --build",
3737
"check:tsc": "tsgo --noEmit -p tsconfig.check.json",
@@ -48,16 +48,16 @@
4848
"fix": "run-s lint:fix check:lint:fix",
4949
"knip:dependencies": "knip --dependencies",
5050
"knip:exports": "knip --include exports,duplicates",
51-
"lint": "oxlint -c=.oxlintrc.json --ignore-path=.oxlintignore --tsconfig=tsconfig.json .",
51+
"lint": "oxlint -c=.config/.oxlintrc.json --ignore-path=.oxlintignore --tsconfig=tsconfig.json .",
5252
"lint:fix": "run-s -c lint:fix:*",
53-
"lint:fix:oxlint": "oxlint -c=.oxlintrc.json --ignore-path=.oxlintignore --tsconfig=tsconfig.json --quiet --fix . | dev-null",
53+
"lint:fix:oxlint": "oxlint -c=.config/.oxlintrc.json --ignore-path=.oxlintignore --tsconfig=tsconfig.json --quiet --fix . | dev-null",
5454
"lint:fix:biome": "biome format --log-level=none --fix . | dev-null",
55-
"lint:fix:eslint": "eslint --report-unused-disable-directives --fix . | dev-null",
55+
"lint:fix:eslint": "eslint --config .config/eslint.config.mjs --report-unused-disable-directives --fix . | dev-null",
5656
"lint-staged": "lint-staged",
5757
"precommit": "lint-staged",
5858
"prepare": "husky",
5959
"prepublishOnly": "echo 'ERROR: Use GitHub Actions workflow for publishing' && exit 1",
60-
"pretest:unit": "dotenvx -q run -f .env.test -- pnpm run build",
60+
"pretest:unit": "pnpm run build",
6161
"test": "run-s check test:*",
6262
"test:unit": "dotenvx -q run -f .env.test -- vitest --run",
6363
"test:unit:coverage": "dotenvx -q run -f .env.test -- vitest run --coverage",

0 commit comments

Comments
 (0)