@ggascoigne/secretlint-config
v1.2.2
Published
A shareable secretlint configuration for projects.
Downloads
8
Maintainers
Readme
Secretlint Config
My personal shareable secretlint configuration.
Install
pnpm add -D secretlint @ggascoigne/secretlint-config
Usage
.secretlintrc.js
module.exports = {
...require('@ggascoigne/secretlint-config'),
};
Add an NPM Script
Running this command:
npm set-script lint:secrets "npx secretlint **/*"
Will create:
package.json
"scripts": {
"lint:secrets": "npx secretlint **/*"
},
Add a Pre-commit Hook
lint-staged.config.js
module.exports = {
'*': ['secretlint'],
};
Under The Hood
index.json
@secretlint/secretlint-rule-preset-recommend
License
MIT