Skip to content

Commit

Permalink
chore(projects): add lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Feb 1, 2024
1 parent 47f180e commit f4619cc
Show file tree
Hide file tree
Showing 3 changed files with 174 additions and 3 deletions.
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,30 @@
"build": "pnpm -r --filter='./packages/*' run build",
"cleanup": "soy cleanup",
"commit": "soy git-commit",
"format": "soy prettier-write",
"lint": "eslint . --fix",
"prepare": "pnpm -r run stub",
"prepare": "pnpm -r run stub && pnpm simple-git-hooks",
"publish-pkg": "pnpm -r publish --access public",
"release": "pnpm soy release",
"stub": "pnpm -r --parallel --filter='./packages/*' run stub",
"typecheck": "tsc --noEmit --skipLibCheck",
"update-pkg": "soy ncu"
},
"devDependencies": {
"@soybeanjs/cli": "1.0.2",
"@soybeanjs/eslint-config": "1.1.6",
"eslint": "8.56.0",
"eslint-plugin-vue": "9.20.1",
"lint-staged": "15.2.0",
"simple-git-hooks": "2.9.0",
"tsx": "4.7.0",
"typescript": "5.3.3",
"vue-eslint-parser": "9.4.0"
},
"simple-git-hooks": {
"commit-msg": "pnpm soy git-commit-verify",
"pre-commit": "pnpm typecheck && pnpm lint-staged"
},
"lint-staged": {
"*": "eslint --fix"
}
}
163 changes: 163 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true
},
"exclude": ["node_modules", "dist"]
"exclude": ["node_modules", "dist", "examples"]
}

0 comments on commit f4619cc

Please sign in to comment.