chore: removed pre-commit hooks
This commit is contained in:
parent
5a500020aa
commit
4f3295b8a7
7 changed files with 4 additions and 1181 deletions
|
@ -1 +0,0 @@
|
||||||
module.exports = { extends: ['@commitlint/config-conventional'] }
|
|
1
.config/husky/_/.gitignore
vendored
1
.config/husky/_/.gitignore
vendored
|
@ -1 +0,0 @@
|
||||||
*
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/usr/bin/env sh
|
|
||||||
. "$(dirname -- "$0")/_/husky.sh"
|
|
||||||
|
|
||||||
npx --no -- commitlint --edit ${1} --config .config/commitlint.js
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/usr/bin/env sh
|
|
||||||
. "$(dirname -- "$0")/_/husky.sh"
|
|
||||||
|
|
||||||
pnpm exec lint-staged -c .config/lintstaged.cjs
|
|
|
@ -1,22 +0,0 @@
|
||||||
const path = require('path')
|
|
||||||
|
|
||||||
const packagesDir = path.join(__dirname, '../packages')
|
|
||||||
const eslintCiConfig = path.join(__dirname, 'eslint.ci.js')
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
'*.{js,jsx,ts,tsx}': (filenames) => {
|
|
||||||
const modifiedPackages = new Set()
|
|
||||||
|
|
||||||
for (const filename of filenames) {
|
|
||||||
if (!filename.startsWith(packagesDir)) continue
|
|
||||||
modifiedPackages.add(filename.slice(packagesDir.length + 1).split(path.sep)[0])
|
|
||||||
}
|
|
||||||
|
|
||||||
return [
|
|
||||||
...[...modifiedPackages].map((pkg) => `pnpm -C packages/${pkg} exec tsc --build`),
|
|
||||||
`prettier --write ${filenames.join(' ')}`,
|
|
||||||
`eslint -c ${eslintCiConfig} --fix ${filenames.join(' ')}`,
|
|
||||||
'pnpm run lint:dpdm',
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -24,7 +24,6 @@
|
||||||
"packages/*"
|
"packages/*"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "husky install .config/husky",
|
|
||||||
"postinstall": "node scripts/validate-deps-versions.mjs && node scripts/remove-jsr-sourcefiles.mjs",
|
"postinstall": "node scripts/validate-deps-versions.mjs && node scripts/remove-jsr-sourcefiles.mjs",
|
||||||
"test": "pnpm run -r test && vitest --config .config/vite.mts run",
|
"test": "pnpm run -r test && vitest --config .config/vite.mts run",
|
||||||
"test:dev": "vitest --config .config/vite.mts watch",
|
"test:dev": "vitest --config .config/vite.mts watch",
|
||||||
|
@ -45,8 +44,6 @@
|
||||||
"build-package": "node scripts/build-package.js"
|
"build-package": "node scripts/build-package.js"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@commitlint/cli": "17.6.5",
|
|
||||||
"@commitlint/config-conventional": "17.6.5",
|
|
||||||
"@teidesu/slow-types-compiler": "1.1.0",
|
"@teidesu/slow-types-compiler": "1.1.0",
|
||||||
"@types/node": "20.10.0",
|
"@types/node": "20.10.0",
|
||||||
"@types/deno": "npm:@teidesu/deno-types@1.43.1",
|
"@types/deno": "npm:@teidesu/deno-types@1.43.1",
|
||||||
|
@ -58,7 +55,7 @@
|
||||||
"@vitest/expect": "1.4.0",
|
"@vitest/expect": "1.4.0",
|
||||||
"@vitest/spy": "1.4.0",
|
"@vitest/spy": "1.4.0",
|
||||||
"@vitest/ui": "1.4.0",
|
"@vitest/ui": "1.4.0",
|
||||||
"chai": "^5.1.0",
|
"chai": "5.1.0",
|
||||||
"cjs-module-lexer": "1.2.3",
|
"cjs-module-lexer": "1.2.3",
|
||||||
"dotenv-flow": "3.2.0",
|
"dotenv-flow": "3.2.0",
|
||||||
"dpdm": "3.14.0",
|
"dpdm": "3.14.0",
|
||||||
|
@ -70,9 +67,7 @@
|
||||||
"eslint-plugin-import": "2.28.0",
|
"eslint-plugin-import": "2.28.0",
|
||||||
"eslint-plugin-simple-import-sort": "10.0.0",
|
"eslint-plugin-simple-import-sort": "10.0.0",
|
||||||
"glob": "10.2.6",
|
"glob": "10.2.6",
|
||||||
"husky": "8.0.3",
|
"playwright": "1.42.1",
|
||||||
"lint-staged": "13.2.2",
|
|
||||||
"playwright": "^1.42.1",
|
|
||||||
"prettier": "3.0.3",
|
"prettier": "3.0.3",
|
||||||
"rimraf": "5.0.1",
|
"rimraf": "5.0.1",
|
||||||
"semver": "7.5.1",
|
"semver": "7.5.1",
|
||||||
|
|
1144
pnpm-lock.yaml
1144
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue