eslint-plugin-no-secrets
Version:
An eslint rule that searches for potential secrets/keys in code
35 lines (34 loc) • 1.14 kB
JSON
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array",
"items": {
"description": "Options for no-pattern-match rule",
"type": "object",
"properties": {
"patterns": {
"default": {},
"description": "An object of patterns to check the text contents of files against",
"type": "object",
"additionalProperties": {
"anyOf": [
{
"type": "string",
"description": "A stringified regexp pattern"
},
{
"type": "object",
"properties": {},
"additionalProperties": false,
"description": "An instance of RegExp"
}
],
"description": "A string/RegExp pattern"
}
}
},
"required": [
"patterns"
],
"additionalProperties": false
}
}