chore: removed pre-commit hooks

This commit is contained in:
alina 🌸 2024-07-16 22:59:36 +03:00
parent 5a500020aa
commit 4f3295b8a7
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI
7 changed files with 4 additions and 1181 deletions

View file

@ -1 +0,0 @@
module.exports = { extends: ['@commitlint/config-conventional'] }

View file

@ -1 +0,0 @@
*

View file

@ -1,4 +0,0 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npx --no -- commitlint --edit ${1} --config .config/commitlint.js

View file

@ -1,4 +0,0 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
pnpm exec lint-staged -c .config/lintstaged.cjs

View file

@ -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',
]
}
}

View file

@ -24,7 +24,6 @@
"packages/*"
],
"scripts": {
"prepare": "husky install .config/husky",
"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:dev": "vitest --config .config/vite.mts watch",
@ -45,8 +44,6 @@
"build-package": "node scripts/build-package.js"
},
"devDependencies": {
"@commitlint/cli": "17.6.5",
"@commitlint/config-conventional": "17.6.5",
"@teidesu/slow-types-compiler": "1.1.0",
"@types/node": "20.10.0",
"@types/deno": "npm:@teidesu/deno-types@1.43.1",
@ -58,7 +55,7 @@
"@vitest/expect": "1.4.0",
"@vitest/spy": "1.4.0",
"@vitest/ui": "1.4.0",
"chai": "^5.1.0",
"chai": "5.1.0",
"cjs-module-lexer": "1.2.3",
"dotenv-flow": "3.2.0",
"dpdm": "3.14.0",
@ -70,9 +67,7 @@
"eslint-plugin-import": "2.28.0",
"eslint-plugin-simple-import-sort": "10.0.0",
"glob": "10.2.6",
"husky": "8.0.3",
"lint-staged": "13.2.2",
"playwright": "^1.42.1",
"playwright": "1.42.1",
"prettier": "3.0.3",
"rimraf": "5.0.1",
"semver": "7.5.1",

File diff suppressed because it is too large Load diff