4.0 roadmap
See original GitHub issueFeatures
ESM rule support #187
Secretlint allow to load secretlint rule as ESM(ECMAScript modules). You can write secretlint rule as ESM.
For more details, pleases see document.
Support secretlint-disable
directive #96 #195
@secretlint/secretlint-rule-filter-comments support disable comment like secretlint-disable
.
This rule is included in @secretlint/secretlint-rule-preset-recommend.
// secretlint-disable -- disable all rules
THIS IS SECRET A
THIS IS SECRET B
THIS IS SECRET C
// secretlint-enable -- enable again
// secretlint-disable-next-line @secretlint/secretlint-rule-secret-alphabet -- disable specific rule in next line
THIS IS SECRET D
THIS IS SECRET E // secretlint-disable-line -- disable current line
If you want to use this directive in shellscript, you can use # secretlint-disable
.
# secretlint-disable-next-line
echo "THIS IS SECRET, BUT IT WILL BE IGNORED"
For more details, see https://github.com/secretlint/secretlint/blob/master/docs/configuration.md
Breaking Changes
use export cosnt creator
instead of export default
#190
Secretlint rule should use named export insteadof default export. It is caused is thatDynamic Import in CommonJS is broken https://github.com/secretlint/secretlint/issues/190
If you have a secretlint rule, please change following.
- export default creator;
+ export { creator }
Require Node.js 12 and update engines
#193
Now, Secretlint requires Node.js 12+ It aims to support ECMAScript modules.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top GitHub Comments
Please try next version.
or
https://github.com/secretlint/secretlint/releases/tag/v4.0.0 🎉