Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-no-secrets

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-no-secrets - npm Package Compare versions

Comparing version 0.7.9 to 0.8.9

3

CHANGELOG.md
# 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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc