0
Fork 0
mirror of https://github.com/penpot/penpot-plugins.git synced 2025-01-04 13:50:13 -05:00

chore: lint on commitmsg

This commit is contained in:
Juanfran 2024-02-05 14:24:32 +01:00
parent 1082d398a6
commit 56851aa17e
5 changed files with 1224 additions and 3 deletions

1
.husky/commit-msg Normal file
View file

@ -0,0 +1 @@
npx --no -- commitlint --edit $1

1
.husky/pre-commit Normal file
View file

@ -0,0 +1 @@
npm run lint:affected

1
commitlint.config.js Normal file
View file

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

1216
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -4,10 +4,15 @@
"license": "MIT",
"scripts": {
"start": "npx nx run plugins-runtime:serve",
"build": "npx nx build plugins-runtime --emptyOutDir=true"
"build": "npx nx build plugins-runtime --emptyOutDir=true",
"lint": "nx run-many --all --target=lint --parallel",
"lint:affected": "npx nx affected --target=lint",
"prepare": "husky"
},
"private": true,
"devDependencies": {
"@commitlint/cli": "^18.6.0",
"@commitlint/config-conventional": "^18.6.0",
"@nx/eslint": "17.2.8",
"@nx/eslint-plugin": "17.2.8",
"@nx/js": "17.3.0",
@ -23,6 +28,7 @@
"@vitest/ui": "~0.34.6",
"eslint": "~8.48.0",
"eslint-config-prettier": "^9.0.0",
"husky": "^9.0.10",
"jsdom": "~22.1.0",
"nx": "17.2.8",
"prettier": "^2.6.2",