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

eslint-config-defaults

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-defaults - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

configurations/airbnb.js

15

CHANGELOG.md

@@ -0,1 +1,16 @@

## 2.0.0 (2015-07-05)
#### User Facing Changes
* Replace "default" config with named configs (airbnb, walmart, eslint)
* Extract environment config into new directory
* Move rules into eslint directory for cleaner addition of plugins
* Add ESLint's default config and set it to the new default
* Add WalmartLabs config
* Add AirBnB config
#### Internal Changes
* Update lodash
## 1.0.0 (2015-06-25)

@@ -2,0 +17,0 @@

16

configurations/off.js

@@ -5,10 +5,10 @@ 'use strict';

var bestPractices = require('../rules/best-practices/off.js');
var errors = require('../rules/errors/off.js');
var es6 = require('../rules/es6/off.js');
var legacy = require('../rules/legacy/off.js');
var node = require('../rules/node/off.js');
var strict = require('../rules/strict/off.js');
var style = require('../rules/style/off.js');
var variables = require('../rules/variables/off.js');
var bestPractices = require('../rules/eslint/best-practices/off.js');
var errors = require('../rules/eslint/errors/off.js');
var es6 = require('../rules/eslint/es6/off.js');
var legacy = require('../rules/eslint/legacy/off.js');
var node = require('../rules/eslint/node/off.js');
var strict = require('../rules/eslint/strict/off.js');
var style = require('../rules/eslint/style/off.js');
var variables = require('../rules/eslint/variables/off.js');

@@ -15,0 +15,0 @@ var defaults = {

@@ -17,3 +17,3 @@ {

"version" : "1.0.0",
"version" : "2.0.0",
"author" : "Eric Baer <me@ericbaer.com>",

@@ -30,3 +30,3 @@

"dependencies": {
"lodash": "3.9.3"
"lodash": "3.10.0"
},

@@ -37,3 +37,3 @@

"main": "./configurations/es5.js",
"main": "./configurations/eslint.js",

@@ -40,0 +40,0 @@ "engines":{

@@ -1,5 +0,15 @@

# eslint-config-strict
<h1 align="center">eslint-config-defaults</h1>
A set of configurable ESLint configurations.
<p align="center">
<a href="https://nodei.co/npm/eslint-config-defaults/">
<img src="https://nodei.co/npm/eslint-config-defaults.png?compact=true">
</a>
</p>
<h4 align="center">
A composable set of ESLint configurations.
</h4>
***
## Installation

@@ -15,22 +25,22 @@

#### Full Configurations
### Full Configurations
This set of configs is meant to be extended on a per-project basis as necessary using ESLint's
shareable configs feature. For more details about how shareable configs work, see the
[ESLint documentation](http://eslint.org/docs/developer-guide/shareable-configs).
This package includes the following complete and ready to use configurations:
This package includes the following full configurations:
- `defaults` - The default ES5 config
- `defaults` - The default ESLint config
- `defaults/configurations/eslint` - The default ESLint config
- `defaults/configurations/airbnb` - Config from the [AirBnB Style Guide](https://github.com/airbnb/javascript)
- `defaults/configurations/walmart/walmart-es5-browser` - Walmart ES5 config with browser globals
- `defaults/configurations/walmart/walmart-es5-node` - Walmart ES5 config with node globals and rules
- `defaults/configurations/walmart/walmart-es5-test` - Walmart ES5 config with mocha globals
- `defaults/configurations/walmart/walmart-es5` - Walmart ES5 config
- `defaults/configurations/walmart/walmart-es6-browser` - Walmart ES6 config with browser globals
- `defaults/configurations/walmart/walmart-es6-node` - Walmart ES6 config with node globals and rules
- `defaults/configurations/walmart/walmart-es6-test` - Walmart ES6 config with mocha globals
- `defaults/configurations/walmart/walmart-es6` - Walmart ES6 config
- `defaults/configurations/off` - Turns off all rules. This will be ESLint's default after 1.0.0
- `defaults/configurations/es5-browser` - The default ES5 config with browser globals
- `defaults/configurations/es5-node` - The default ES5 config with node globals and rules
- `defaults/configurations/es5-test` - The default ES5 config with mocha globals
- `defaults/configurations/es5` - The default ES5 config
- `defaults/configurations/es6-browser` - The default ES6 config with browser globals
- `defaults/configurations/es6-node` - The default ES6 config with node globals and rules
- `defaults/configurations/es6-test` - The default ES6 config with mocha globals
- `defaults/configurations/es6` - The default ES6 config
To extend a config in ESLint just add the extends attribute to your `.eslintrc`
To consume and extend a config in ESLint just add the extends attribute to your `.eslintrc`. For
more details about how shareable configs work, see the
[ESLint documentation](http://eslint.org/docs/developer-guide/shareable-configs).

@@ -45,19 +55,25 @@ ```json

{
"extends": "defaults/configurations/es6-browser"
"extends": "defaults/configurations/walmart/walmart-es6-browser"
}
```
#### Piecemeal Configurations
### Piecemeal Configurations
ESLint rules are broken out into categories that mirror the documentation. Each of the following
directories can be included as a set of defaults or by including the `off.js` file which turns off
every rule in this category.
ESLint configuration is broken into two parts: `rules` and `environments`
###### `best-practices`, `errors`, `es6`, `legacy`, `node`, `strict`, `style`, `variables`
* Rules - The full set of ESLint rules are included in the project broken into categories that
mirror the documentation. Under each rule type there are sets of configuration as well as an
`off.js` file which turns off every rule in this category.
Using these you can create the exact starting config you need
* Environments - Environments are a collection of modifiers that amend a set of generic rules to run
in specific environments like `browser` or `node`.
###### Examples
```json
{
"extends": ["defaults/configurations/es6-browser", "defaults/rules/legacy/defaults.js"]
"extends": [
"defaults/configurations/walmart/walmart-es6",
"defaults/environments/browser"
]
}

@@ -69,8 +85,8 @@ ```

"extends": [
"defaults/rules/best-practices/default.js",
"defaults/rules/errors/default.js"
"defaults/rules/eslint/best-practices/default.js",
"defaults/rules/eslint/errors/default.js"
"defaults/rules/es6/off.js"
"defaults/rules/legacy/off.js"
"defaults/rules/node/off.js"
"defaults/rules/eslint/es6/off.js"
"defaults/rules/eslint/legacy/off.js"
"defaults/rules/eslint/node/off.js"
]

@@ -77,0 +93,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