Skip to content

Commit

Permalink
#26: Support Eslint Flat Config
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Deis authored and Nicholas Deis committed Apr 18, 2024
1 parent be05b62 commit 9f8797c
Show file tree
Hide file tree
Showing 9 changed files with 6,085 additions and 1,204 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,14 @@ function shouldIgnore(value, toIgnore) {
}

module.exports = {
meta: {
name: "eslint-plugin-no-secrets",
version: "1.0.0-eslint9"
},
rules: {
"no-secrets": {
meta: {
schema: false,
messages: {
[HIGH_ENTROPY]: `Found a string with entropy {{ entropy }} : "{{ token }}"`,
[PATTERN_MATCH]: `Found a string that matches "{{ name }}" : "{{ match }}"`
Expand Down

0 comments on commit 9f8797c

Please sign in to comment.