eslint-plugin-no-secrets
Advanced tools
Comparing version 0.7.9 to 0.8.9
# CHANGELOG | ||
## 0.8.9 | ||
### Minor | ||
- Replaced how JSON document scanning worked so it works with other plugins | ||
## 0.7.9 | ||
@@ -3,0 +6,0 @@ ### Minor |
14
index.js
@@ -128,2 +128,6 @@ const { | ||
checkString(value, node); | ||
}, | ||
JSONLiteral(node){ | ||
const { value } = node; | ||
checkString(value, node); | ||
} | ||
@@ -133,13 +137,3 @@ }; | ||
} | ||
}, | ||
processors: { | ||
".json": { | ||
preprocess(text) { | ||
return [`var json = ${text}`]; | ||
}, | ||
postprocess(messages, fileName) { | ||
return messages[0]; | ||
} | ||
} | ||
} | ||
}; |
{ | ||
"name": "eslint-plugin-no-secrets", | ||
"version": "0.7.9", | ||
"version": "0.8.9", | ||
"description": "An eslint rule that searches for potential secrets/keys in code", | ||
@@ -24,5 +24,6 @@ "main": "index.js", | ||
"devDependencies": { | ||
"eslint": "^7.19.0", | ||
"eslint-plugin-jsonc": "^0.9.0", | ||
"eslint-plugin-self": "^1.2.0", | ||
"eslint6": "npm:eslint@^6.8.0", | ||
"eslint7": "npm:eslint@^7.0.0", | ||
"mocha": "^7.1.1" | ||
@@ -29,0 +30,0 @@ }, |
@@ -49,10 +49,18 @@ [![Build Status](https://travis-ci.org/nickdeis/eslint-plugin-no-secrets.svg)](https://travis-ci.org/nickdeis/eslint-plugin-no-secrets) | ||
If you want to include JSON files, either us the `--ext` flag from the command line | ||
To include JSON files, install `eslint-plugin-jsonc` | ||
`eslint . --ext .json,.js` | ||
`npm install --save-dev eslint-plugin-jsonc` | ||
or run them on individual JSON files | ||
Then in your `.eslint` configuration file, extend the jsonc base config | ||
`eslint config.json` | ||
```json | ||
{ | ||
"extends": [ | ||
"plugin:jsonc/base" | ||
] | ||
} | ||
``` | ||
## 2. <a name='Config'></a>Config | ||
@@ -59,0 +67,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19188
160
5
295