Socket
Socket
Sign inDemoInstall

eslint-config-airbnb-base

Package Overview
Dependencies
Maintainers
2
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-airbnb-base - npm Package Compare versions

Comparing version 10.0.1 to 11.0.0

9

CHANGELOG.md

@@ -0,1 +1,10 @@

11.0.0 / 2016-12-11
==================
- [breaking] enable `no-await-in-loop`
- [patch] disable `no-duplicate-imports` rule (#1188, #1195, #1054)
- [patch] `import/no-extraneous-dependencies`: add some comments to ignore patterns
- [patch] add `import/no-extraneous-dependencies` ignore patterns for test files (#1174)
- [patch] `import/no-extraneous-dependencies`: added ignore patterns for config files (#1168)
- [deps] update `eslint`, `eslint-plugin-import`, `tape`
10.0.1 / 2016-11-07

@@ -2,0 +11,0 @@ ==================

12

package.json
{
"name": "eslint-config-airbnb-base",
"version": "10.0.1",
"version": "11.0.0",
"description": "Airbnb's base JS ESLint config, following our styleguide",

@@ -50,12 +50,12 @@ "main": "index.js",

"babel-tape-runner": "^2.0.1",
"eslint": "^3.9.1",
"eslint": "^3.12.0",
"eslint-find-rules": "^1.14.3",
"eslint-plugin-import": "^2.1.0",
"eslint-plugin-import": "^2.2.0",
"in-publish": "^2.0.0",
"safe-publish-latest": "^1.1.1",
"tape": "^4.6.2"
"tape": "^4.6.3"
},
"peerDependencies": {
"eslint": "^3.9.1",
"eslint-plugin-import": "^2.1.0"
"eslint": "^3.12.0",
"eslint-plugin-import": "^2.2.0"
},

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

@@ -198,2 +198,5 @@ module.exports = {

// disallow redundant `return await`
'no-return-await': 'error',
// disallow use of `javascript:` urls.

@@ -257,2 +260,6 @@ 'no-script-url': 'error',

// require `await` in `async function` (note: this is a horrible rule that should never be used)
// http://eslint.org/docs/rules/require-await
'require-await': 'off',
// requires to declare all vars on top of their containing scope

@@ -259,0 +266,0 @@ 'vars-on-top': 'error',

@@ -12,2 +12,6 @@ module.exports = {

// Disallow await inside of loops
// http://eslint.org/docs/rules/no-await-in-loop
'no-await-in-loop': 'error',
// disallow assignment in conditional expressions

@@ -14,0 +18,0 @@ 'no-cond-assign': ['error', 'always'],

@@ -58,3 +58,4 @@ module.exports = {

// http://eslint.org/docs/rules/no-duplicate-imports
'no-duplicate-imports': 'error',
// replaced by https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md
'no-duplicate-imports': 'off',

@@ -61,0 +62,0 @@ // disallow symbol constructor

@@ -71,3 +71,16 @@ module.exports = {

'import/no-extraneous-dependencies': ['error', {
devDependencies: ['spec/**', 'test/**', 'tests/**', '**/__tests__/**'],
devDependencies: [
'test/**', // tape, common npm pattern
'tests/**', // also common npm pattern
'spec/**', // mocha, rspec-like pattern
'**/__tests__/**', // jest pattern
'test.js', // repos with a single test file
'test-*.js', // repos with multiple top-level test files
'**/*.test.js', // tests where the extension denotes that it is a test
'**/webpack.config.js', // webpack config
'**/webpack.config.*.js', // webpack config
'**/rollup.config.js', // rollup config
'**/gulpfile.js', // gulp config
'**/Gruntfile', // grunt config
],
optionalDependencies: false,

@@ -74,0 +87,0 @@ }],

@@ -16,2 +16,17 @@ module.exports = {

// enforce or disallow capitalization of the first letter of a comment
// http://eslint.org/docs/rules/capitalized-comments
'capitalized-comments': ['off', 'never', {
line: {
ignorePattern: '.*',
ignoreInlineComments: true,
ignoreConsecutiveComments: true,
},
block: {
ignorePattern: '.*',
ignoreInlineComments: true,
ignoreConsecutiveComments: true,
},
}],
// enforce spacing before and after comma

@@ -18,0 +33,0 @@ 'comma-spacing': ['error', { before: false, after: true }],

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