@ggascoigne/secretlint-config

1.2.2 • Public • Published

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

Package Sidebar

Install

npm i @ggascoigne/secretlint-config

Weekly Downloads

1

Version

1.2.2

License

MIT

Unpacked Size

3.14 kB

Total Files

5

Last publish

Collaborators

  • ggascoigne