Skip to content

Commit f8c1923

Browse files
committed
add secretlint
1 parent 8281b16 commit f8c1923

File tree

3 files changed

+502
-16
lines changed

3 files changed

+502
-16
lines changed

.secretlintrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"rules": [
3+
{
4+
"id": "@secretlint/secretlint-rule-preset-recommend"
5+
}
6+
]
7+
}

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"devDependencies": {
3333
"@kazupon/lerna-changelog": "^4.3.0",
3434
"@microsoft/api-extractor": "^7.18.4",
35+
"@secretlint/secretlint-rule-preset-recommend": "^3.3.0",
3536
"@types/jest": "^26.0.22",
3637
"@types/node": "^14.14.25",
3738
"@typescript-eslint/eslint-plugin": "^4.29.0",
@@ -52,6 +53,7 @@
5253
"npm-run-all": "^4.1.5",
5354
"opener": "^1.5.2",
5455
"puppeteer": "^10.2.0",
56+
"secretlint": "^3.3.0",
5557
"shipjs": "^0.23.3",
5658
"ts-jest": "^26.5.4",
5759
"typescript": "^4.3.5",
@@ -100,11 +102,13 @@
100102
"clean:lib": "rm -rf ./lib/*.*",
101103
"coverage": "opener coverage/lcov-report/index.html",
102104
"example": "yarn build && webpack-dev-server --config example/webpack.config.js --inline --hot",
103-
"fix": "npm-run-all --parallel lint:fix format:fix",
105+
"fix": "npm-run-all --parallel lint:eslint:fix format:fix",
104106
"format": "prettier --config .prettierrc --ignore-path .prettierignore '**/*.{js,json,html}'",
105107
"format:fix": "yarn format --write",
106-
"lint": "eslint ./src ./test --ext .ts",
107-
"lint:fix": "yarn lint --fix",
108+
"lint": "npm-run-all --parallel lint:eslint lint:secret",
109+
"lint:eslint": "eslint ./src ./test --ext .ts",
110+
"lint:eslint:fix": "yarn lint:eslint --fix",
111+
"lint:secret": "npx secretlint \"**/*\"",
108112
"release:prepare": "shipjs prepare",
109113
"release:trigger": "shipjs trigger",
110114
"test": "yarn lint && yarn test:cover && yarn test:e2e",

0 commit comments

Comments
 (0)