1.2.2 • Published 8 months ago

@ggascoigne/secretlint-config v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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