1.0.4 • Published 1 year ago

@waldronmatt/secretlint-config v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Secretlint Config

My personal shareable secretlint configuration.

Install

yarn add -D secretlint @waldronmatt/secretlint-config

Usage

.secretlintrc.js

module.exports = {
  ...require('@waldronmatt/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