New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-node

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-node - npm Package Compare versions

Comparing version

to
1.1.0

style-guide/index.json

8

package.json
{
"name": "eslint-config-node",
"version": "1.0.0",
"version": "1.1.0",
"description": "Pluggable eslint config for Node.js that you can import, extend and override",

@@ -8,3 +8,3 @@ "main": "index.js",

"test": "echo \"Error: no test specified\" && exit 1",
"prepublish": "js-yaml index.yaml > index.json && js-yaml style-guide.yaml > style-guide.json"
"prepublish": "js-yaml index.yaml > index.json && js-yaml style-guide/index.yaml > style-guide/index.json"
},

@@ -33,3 +33,3 @@ "repository": {

"eslint": "~3.0.0",
"eslint-config-esnext": "~1.0.0"
"eslint-config-esnext": "~1.1.0"
},

@@ -41,4 +41,4 @@ "devDependencies": {

"eslint": "~3.0.0",
"eslint-config-esnext": "~1.0.0"
"eslint-config-esnext": "~1.1.0"
}
}
## Pluggable [ESLint](http://eslint.org/docs/about/) [config](http://eslint.org/docs/developer-guide/shareable-configs) for [Node.js](nodejs.org) that you can import, extend and override
### Node.js: Safety Checks and Best Practices with a bias toward code concision / brevity
#### Usage

@@ -17,3 +19,2 @@

- node
- node/style-guide #optional
```

@@ -25,3 +26,3 @@

{
"extends": ["node", "node/style-guide"]
"extends": ["node"]
}

@@ -46,4 +47,6 @@ ```

#### safety checks and best practices supporting commonly used ESNext features with a bias toward code concision / brevity
#### Config
This config is biased and opinionated, and errs on the side of too many rules instead of too few. Think of this as a superset of your repo's lint config, and discard what you don't like in it. It's easy to override and disable the rules you find inconvenient.
```yaml

@@ -60,3 +63,3 @@ env:

includes rules from [eslint-config-esnext](https://github.com/kunalgolani/eslint-config/tree/master/esnext#safety-checks-and-best-practices-supporting-commonly-used-esnext-features-with-a-bias-toward-code-concision--brevity)
includes config and rules from [eslint-config-esnext](https://github.com/kunalgolani/eslint-config/tree/master/esnext)

@@ -75,9 +78,2 @@ ```yaml

#### style-guide: for consistency, readability and more brevity
```yaml
---
extends: esnext/style-guide
```
includes rules from [eslint-config-esnext](https://github.com/kunalgolani/eslint-config/tree/master/esnext#style-guide-for-consistency-readability-and-more-brevity)
### [Node.js Style Guide](https://github.com/kunalgolani/eslint-config/tree/master/node/style-guide)