Skip to content

Commit

Permalink
chore: view, vscode에도 husky, lint-staged 설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
choisohyun committed Sep 11, 2024
1 parent 3854aa3 commit 6e025cb
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
4 changes: 4 additions & 0 deletions package-lock.json

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

13 changes: 12 additions & 1 deletion packages/view/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"test": "jest",
"test:e2e": "playwright test",
"lint": "eslint src --ext ts",
"lint:fix": "eslint src --ext ts --fix"
"lint:fix": "eslint src --ext ts --fix",
"lint-staged": "lint-staged"
},
"eslintConfig": {
"extends": [
Expand Down Expand Up @@ -77,6 +78,8 @@
"eslint-plugin-react-hooks": "^4.6.0",
"fork-ts-checker-webpack-plugin": "^7.2.13",
"html-webpack-plugin": "^5.5.0",
"husky": "^8.0.0",
"lint-staged": "^15.2.10",
"prettier": "^3.0.1",
"sass": "^1.77.4",
"sass-loader": "^13.0.2",
Expand Down Expand Up @@ -115,5 +118,13 @@
"ts-jest": "^29.1.1",
"tsyringe": "^4.7.0",
"zustand": "^4.5.5"
},
"lint-staged": {
"packages/**/src/**/*.{ts,tsx}": [
"eslint"
],
"**/*.{ts,tsx,json,yaml,md}": [
"prettier --check"
]
}
}
13 changes: 12 additions & 1 deletion packages/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"lint:fix": "eslint src --ext ts --fix",
"test": "node ./out/test/runTest.js"
"test": "node ./out/test/runTest.js",
"lint-staged": "lint-staged"
},
"dependencies": {
"@githru-vscode-ext/analysis-engine": "^0.7.1",
Expand All @@ -107,11 +108,21 @@
"eslint-plugin-unused-imports": "^3.0.0",
"formdata-polyfill": "^4.0.10",
"glob": "^8.0.1",
"husky": "^8.0.0",
"lint-staged": "^15.2.10",
"mocha": "^9.2.2",
"prettier": "^3.0.1",
"ts-loader": "^9.2.8",
"typescript": "^4.6.4",
"webpack": "^5.70.0",
"webpack-cli": "^4.9.2"
},
"lint-staged": {
"packages/**/src/**/*.{ts,tsx}": [
"eslint"
],
"**/*.{ts,tsx,json,yaml,md}": [
"prettier --check"
]
}
}

0 comments on commit 6e025cb

Please sign in to comment.