UNPKG

@yunarch/config-web

Version:

Shared configurations for web projects.

154 lines (153 loc) 4.63 kB
{ "$schema": "https://json.schemastore.org/package", "name": "@yunarch/config-web", "version": "0.9.1", "description": "Shared configurations for web projects.", "license": "MIT", "keywords": [ "config", "eslint", "oxfmt", "oxlint", "prettier", "tooling", "typescript" ], "author": { "name": "Adrian Lopez Gonzalez", "url": "https://github.com/yunarch" }, "repository": { "type": "git", "url": "git+https://github.com/yunarch/config-web.git" }, "bugs": { "url": "https://github.com/yunarch/config-web/issues" }, "type": "module", "sideEffects": false, "files": [ "README.md", "LICENSE.md", "dist" ], "engines": { "bun": ">=1.3.9", "node": ">=22" }, "bin": { "openapi-gen": "dist/cli/openapi-gen/openapi-gen.cli.mjs", "openapi-msw-lint": "dist/cli/openapi-msw-lint/openapi-msw-lint.cli.mjs" }, "exports": { ".": "./dist/index.mjs", "./prettier": { "types": "./dist/config.prettier.d.mts", "default": "./dist/config.prettier.mjs" }, "./eslint": { "types": "./dist/config.eslint.d.mts", "default": "./dist/config.eslint.mjs" }, "./oxfmt": "./dist/config.oxfmt.json", "./oxlint": "./dist/config.oxlint.json", "./tsconfig-base": "./dist/config.tsconfig-base.json", "./ts-reset.d.ts": "./dist/reset.d.ts", "./ts-utils.d.ts": "./dist/utils.d.ts" }, "publishConfig": { "access": "public" }, "scripts": { "prepare": "husky && bun run gen", "gen": "bun run --parallel gen:cli-docs gen:eslint-typegen gen:oxlint-compatgen gen:oxfmt-compatgen", "gen:cli-docs": "bun run ./scripts/cli-docsgen.ts", "gen:eslint-typegen": "bun run ./scripts/eslint-typegen.ts", "gen:oxfmt-compatgen": "bun run ./scripts/oxfmt-compatgen.ts && oxfmt format --write ./src/formatters/config.oxfmt.jsonc", "gen:oxlint-compatgen": "bun run ./scripts/oxlint-compatgen.ts && oxfmt format --write ./src/linters/config.oxlint.jsonc", "lint": "bun run --parallel lint:code lint:ts", "lint:code": "oxlint && eslint .", "lint:ts": "tsc --noEmit", "lint:inspect": "bunx @eslint/config-inspector --config eslint.config.ts", "lint:diff": "bun run ./scripts/eslint-oxlint-diff.ts", "format": "oxfmt format --check ./", "format:all": "oxfmt format --write ./", "format:mocks": "oxfmt format --write ./tests/__mocks__", "clean": "rimraf dist tmp tmp-oxfmt", "build": "bun run gen && tsdown", "tests": "vitest --typecheck run", "tests:watch": "vitest --typecheck watch", "tests:dist": "bun run build && TEST_DIST=true bun run tests", "release": "bun run lint && bun run tests:dist && HUSKY=0 bunx bumpp" }, "peerDependencies": { "prettier": ">= 3 || < 4", "eslint": ">=9.5.0 || < 11", "oxfmt": ">=0.24.0 || < 1", "oxlint": ">=1.42.0 || < 2", "msw": ">=2 || < 3" }, "peerDependenciesMeta": { "prettier": { "optional": true }, "eslint": { "optional": true }, "oxfmt": { "optional": true }, "oxlint": { "optional": true }, "msw": { "optional": true } }, "dependencies": { "commander": "14.0.3", "ora": "9.4.0", "fast-glob": "3.3.3", "@inquirer/confirm": "6.0.12", "globals": "17.6.0", "jiti": "2.6.1", "eslint-flat-config-utils": "3.2.0", "eslint-config-flat-gitignore": "2.3.0", "eslint-import-resolver-typescript": "4.4.4", "@eslint/js": "10.0.1", "typescript-eslint": "8.59.2", "eslint-plugin-unicorn": "64.0.0", "eslint-plugin-import-x": "4.16.2", "eslint-plugin-unused-imports": "4.4.1", "eslint-plugin-jsdoc": "62.9.0", "eslint-plugin-perfectionist": "5.9.0", "@eslint-react/eslint-plugin": "5.7.2", "eslint-plugin-react-refresh": "0.5.2", "@tanstack/eslint-plugin-query": "5.100.9", "@tanstack/eslint-plugin-router": "1.161.6", "@vitest/eslint-plugin": "1.6.16", "eslint-config-prettier": "10.1.8", "eslint-plugin-oxlint": "1.62.0", "@total-typescript/ts-reset": "0.6.1" }, "devDependencies": { "prettier": "3.8.3", "eslint": "10.3.0", "eslint-typegen": "2.3.1", "oxfmt": "0.47.0", "oxlint": "1.62.0", "oxlint-tsgolint": "0.22.1", "@oxlint/migrate": "1.61.0", "@yunarch/eslint-oxlint-diff": "0.4.1", "husky": "9.1.7", "rimraf": "6.1.3", "vitest": "4.1.5", "msw": "2.14.3", "jsonc-parser": "3.3.1", "tsdown": "0.21.10", "typescript": "6.0.3", "@types/node": "25.6.0", "@types/bun": "1.3.13" }, "packageManager": "bun@1.3.13" }