Skip to content

Commit

Permalink
chore: add dps husky,ls-lint,commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
sz-p committed Aug 28, 2023
1 parent 80f3ccf commit 5b6a8ae
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .ls-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
ls:
.js: kebabcase | camelCase | pointcase
.ts: kebabcase | camelCase | pointcase
.d.ts: PascalCase | pointcase
.html: regex:[a-z0-9]+

ignore:
- node_modules
- outExtension
- outWebView
- packages/dependency-tree/node_modules
- tests
- typings
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
"build:Extension": "node ./scripts/build.js",
"build:WebView": "node ./src/webView/scripts/build.js",
"package": "vsce package",
"ls-lint": "node_modules/.bin/ls-lint",
"test": "mocha -n experimental-specifier-resolution=node -n loader=ts-node/esm --serial -p ./tests/tsconfig.testing.json --spec tests/**/*.test.ts tests/**/*.test.js"
},
"devDependencies": {
Expand All @@ -117,6 +118,8 @@
"@babel/preset-env": "^7.11.0",
"@babel/preset-react": "^7.14.5",
"@babel/runtime": "^7.14.8",
"@commitlint/config-conventional": "^17.7.0",
"@ls-lint/ls-lint": "^2.0.1",
"@types/glob": "^7.1.1",
"@types/mocha": "^5.2.7",
"@types/node": "^14.17.7",
Expand Down Expand Up @@ -181,6 +184,12 @@
"vue": "2.6.12",
"vue-template-compiler": "2.6.12"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS",
"pre-commit": "yarn ls-lint"
}
},
"private": true,
"workspaces": [
"packages/**"
Expand Down
44 changes: 44 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1102,6 +1102,13 @@
"@babel/helper-validator-identifier" "^7.14.8"
to-fast-properties "^2.0.0"

"@commitlint/config-conventional@^17.7.0":
version "17.7.0"
resolved "https://registry.npmmirror.com/@commitlint/config-conventional/-/config-conventional-17.7.0.tgz#1bbf2bce7851db63c1a8aa8d924277ad4938247e"
integrity sha512-iicqh2o6et+9kWaqsQiEYZzfLbtoWv9uZl8kbI8EGfnc0HeGafQBF7AJ0ylN9D/2kj6txltsdyQs8+2fTMwWEw==
dependencies:
conventional-changelog-conventionalcommits "^6.1.0"

"@cspotcode/[email protected]":
version "0.8.0"
resolved "https://registry.npmmirror.com/@cspotcode/source-map-consumer/-/source-map-consumer-0.8.0.tgz#33bf4b7b39c178821606f669bbc447a6a629786b"
Expand Down Expand Up @@ -1222,6 +1229,11 @@
"@uifabric/utilities" "^7.34.0"
tslib "^1.10.0"

"@ls-lint/ls-lint@^2.0.1":
version "2.0.1"
resolved "https://registry.npmmirror.com/@ls-lint/ls-lint/-/ls-lint-2.0.1.tgz#27a0513fde8e06704ff174b0a696d473190b8874"
integrity sha512-z+sGTPWHQ2nWRj2UsDFSEQDOCw2iIjP2bPU/K1wgLNkWUv7J8WjzoBsZLgUqIgD1Sqi7zpksFTtTymgnUwramA==

"@microsoft/load-themed-styles@^1.10.26":
version "1.10.114"
resolved "https://registry.npm.taobao.org/@microsoft/load-themed-styles/download/@microsoft/load-themed-styles-1.10.114.tgz#fe3e6555f56601d44b0df62e8d63b5385f20e9ca"
Expand Down Expand Up @@ -1819,6 +1831,11 @@ argparse@^2.0.1:
resolved "https://registry.npmmirror.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38"
integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==

array-ify@^1.0.0:
version "1.0.0"
resolved "https://registry.npmmirror.com/array-ify/-/array-ify-1.0.0.tgz#9e528762b4a9066ad163a6962a364418e9626ece"
integrity sha512-c5AMf34bKdvPhQ7tBGhqkgKNUzMr4WUs+WDtC2ZUGOUncbxKMTvqxYctiseW3+L4bA8ec+GcZ6/A/FW4m8ukng==

arrify@^1.0.0:
version "1.0.1"
resolved "https://registry.npm.taobao.org/arrify/download/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d"
Expand Down Expand Up @@ -2175,11 +2192,26 @@ commondir@^1.0.1:
resolved "https://registry.npm.taobao.org/commondir/download/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b"
integrity sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=

compare-func@^2.0.0:
version "2.0.0"
resolved "https://registry.npmmirror.com/compare-func/-/compare-func-2.0.0.tgz#fb65e75edbddfd2e568554e8b5b05fff7a51fcb3"
integrity sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==
dependencies:
array-ify "^1.0.0"
dot-prop "^5.1.0"

[email protected]:
version "0.0.1"
resolved "https://registry.npm.taobao.org/concat-map/download/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=

conventional-changelog-conventionalcommits@^6.1.0:
version "6.1.0"
resolved "https://registry.npmmirror.com/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-6.1.0.tgz#3bad05f4eea64e423d3d90fc50c17d2c8cf17652"
integrity sha512-3cS3GEtR78zTfMzk0AizXKKIdN4OvSh7ibNz6/DPbhWWQu7LqE/8+/GqSodV+sywUR2gpJAdP/1JFf4XtN7Zpw==
dependencies:
compare-func "^2.0.0"

convert-source-map@^1.7.0:
version "1.7.0"
resolved "https://registry.npm.taobao.org/convert-source-map/download/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442"
Expand Down Expand Up @@ -2722,6 +2754,13 @@ dot-case@^3.0.3:
no-case "^3.0.3"
tslib "^1.10.0"

dot-prop@^5.1.0:
version "5.3.0"
resolved "https://registry.npmmirror.com/dot-prop/-/dot-prop-5.3.0.tgz#90ccce708cd9cd82cc4dc8c3ddd9abdd55b20e88"
integrity sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==
dependencies:
is-obj "^2.0.0"

duplexer2@~0.1.4:
version "0.1.4"
resolved "https://registry.npmmirror.com/duplexer2/-/duplexer2-0.1.4.tgz#8b12dab878c0d69e3e7891051662a32fc6bddcc1"
Expand Down Expand Up @@ -3327,6 +3366,11 @@ is-number@^7.0.0:
resolved "https://registry.npm.taobao.org/is-number/download/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b"
integrity sha1-dTU0W4lnNNX4DE0GxQlVUnoU8Ss=

is-obj@^2.0.0:
version "2.0.0"
resolved "https://registry.npmmirror.com/is-obj/-/is-obj-2.0.0.tgz#473fb05d973705e3fd9620545018ca8e22ef4982"
integrity sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==

is-plain-obj@^2.1.0:
version "2.1.0"
resolved "https://registry.npmmirror.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287"
Expand Down

0 comments on commit 5b6a8ae

Please sign in to comment.