@canideploy/secretlint-config
v0.0.4
Published
Shared secretlint config
Readme
@canideploy/secretlint-config
This package provides shared secretlint configuration.
Installation
Install the package as a development dependency at the root of your workspace
pnpm add @canideploy/secretlint-config secretlint -DUsage
Create a .secretlintrc.cjs file at the root of your workspace with the following content:
const config = require('@canideploy/secretlint-config');
module.exports = {
...config.default,
};Add a script to your package.json to run secretlint
{
"scripts": {
"secretlint": "secretlint . --maskSecrets"
}
}Update your lint-staged.config.mjs file to run secretlint
export default {
'*': (files) => [`secretlint ${files.join(' ')}`],
};