|
57 | 57 | "package.json"
|
58 | 58 | ],
|
59 | 59 | "scripts": {
|
| 60 | + "lint": "biome lint .", |
| 61 | + "format": "biome format --write .", |
60 | 62 | "build": "tsup",
|
61 | 63 | "clean": "pnpm ts ./scripts/clean.ts",
|
62 |
| - "format": "run-s format:code format:code:eslint", |
63 |
| - "format:code": "prettier \"**/*.{js,jsx,ts,tsx,json,yml,yaml,md,html}\" --write", |
64 |
| - "format:code:eslint": "eslint \"**/*.{ts,tsx}\" --fix", |
65 | 64 | "lerna:version:up": "lerna version --yes",
|
66 | 65 | "release:github:registry": "pnpm publish --no-git-checks --registry https://npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}",
|
67 | 66 | "release:npm:registry": "pnpm publish --no-git-checks",
|
|
71 | 70 | "test:code:gen:function": "pnpm ts ./scripts/testCodeGenWithFunctional.ts",
|
72 | 71 | "test:code:gen:currying-function": "pnpm ts ./scripts/testCodeGenWithCurryingFunctional.ts",
|
73 | 72 | "test:depcruise": "depcruise --validate .dependency-cruiser.cjs src",
|
74 |
| - "test:eslint": "eslint \"src/**/*.{ts,tsx}\"", |
75 | 73 | "test:jest": "cross-env NODE_OPTIONS=--experimental-specifier-resolution=node jest -c ./jest.config.cjs --collect-coverage",
|
76 | 74 | "test:snapshot": "jest -c ./jest.snapshot.config.cjs",
|
77 | 75 | "ts": "node --no-warnings=ExperimentalWarning --experimental-specifier-resolution=node --loader ts-node/esm",
|
|
82 | 80 | "simple-git-hooks": {
|
83 | 81 | "pre-commit": "pnpm lint-staged"
|
84 | 82 | },
|
| 83 | + "lint-staged": { |
| 84 | + "*.{js,jsx,json,yml,yaml,html,md,ts,tsx}": [ |
| 85 | + "biome format --write" |
| 86 | + ], |
| 87 | + "package.json": [ |
| 88 | + "sort-package-json" |
| 89 | + ] |
| 90 | + }, |
85 | 91 | "resolutions": {
|
86 | 92 | "kind-of": "6.0.3",
|
87 | 93 | "node-fetch": "2.6.1"
|
|
94 | 100 | "js-yaml": "4.1.0"
|
95 | 101 | },
|
96 | 102 | "devDependencies": {
|
| 103 | + "@biomejs/biome": "^1.5.3", |
97 | 104 | "@commitlint/cli": "18.6.0",
|
98 | 105 | "@commitlint/config-conventional": "18.6.0",
|
99 | 106 | "@swc/core": "^1.3.107",
|
|
104 | 111 | "@types/js-yaml": "4.0.9",
|
105 | 112 | "@types/node": "20.11.15",
|
106 | 113 | "@types/rimraf": "3.0.2",
|
107 |
| - "@typescript-eslint/eslint-plugin": "6.20.0", |
108 |
| - "@typescript-eslint/parser": "6.20.0", |
109 | 114 | "chokidar": "3.5.3",
|
110 | 115 | "conventional-changelog-angular-all": "1.7.0",
|
111 | 116 | "cpy": "11.0.0",
|
112 | 117 | "cross-env": "^7.0.3",
|
113 | 118 | "dependency-cruiser": "16.1.0",
|
114 |
| - "eslint": "8.56.0", |
115 |
| - "eslint-config-prettier": "9.1.0", |
116 |
| - "eslint-plugin-import": "2.29.1", |
117 |
| - "eslint-plugin-simple-import-sort": "^10.0.0", |
118 |
| - "eslint-plugin-unused-imports": "^3.0.0", |
119 | 119 | "execa": "8.0.1",
|
120 | 120 | "generate-changelog": "1.8.0",
|
121 | 121 | "import-sort-style-module": "6.0.0",
|
|
125 | 125 | "lint-staged": "15.2.1",
|
126 | 126 | "npm-run-all": "4.1.5",
|
127 | 127 | "openapi-schema-validator": "12.1.3",
|
128 |
| - "prettier": "3.2.4", |
129 |
| - "prettier-plugin-import-sort": "0.0.7", |
130 | 128 | "read-package-up": "^11.0.0",
|
131 | 129 | "rimraf": "5.0.5",
|
132 | 130 | "simple-git-hooks": "^2.9.0",
|
|
0 commit comments