Socket
Socket
Sign inDemoInstall

eslint-config-airbnb-base

Package Overview
Dependencies
248
Maintainers
2
Versions
45
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 12.0.2 to 12.1.0

4

CHANGELOG.md

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

12.1.0 / 2017-10-16
==================
- [deps] update `eslint` to `v4.9`
12.0.2 / 2017-10-05

@@ -2,0 +6,0 @@ ==================

8

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

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

"prelint": "editorconfig-tools check * rules/* test/*",
"lint": "eslint .",
"lint": "eslint --report-unused-disable-directives .",
"tests-only": "babel-tape-runner ./test/test-*.js",

@@ -55,3 +55,3 @@ "prepublish": "(in-install || eslint-find-rules --unused) && (not-in-publish || npm test) && safe-publish-latest",

"editorconfig-tools": "^0.1.1",
"eslint": "^4.8.0",
"eslint": "^4.9.0",
"eslint-find-rules": "^3.1.1",

@@ -64,3 +64,3 @@ "eslint-plugin-import": "^2.7.0",

"peerDependencies": {
"eslint": "^4.8.0",
"eslint": "^4.9.0",
"eslint-plugin-import": "^2.7.0"

@@ -67,0 +67,0 @@ },

@@ -60,3 +60,5 @@ module.exports = {

// disallow else after a return in an if
'no-else-return': 'error',
// https://eslint.org/docs/rules/no-else-return
// TODO: semver-major, set allowElseIf to false
'no-else-return': ['error', { allowElseIf: true }],

@@ -63,0 +65,0 @@ // disallow empty functions, except for standalone funcs/arrows

@@ -6,3 +6,3 @@ module.exports = {

// TODO: enable? semver-major
'array-bracket-newline': ['off', { multiline: true, minItems: 3 }],
'array-bracket-newline': ['off', 'consistent'], // object option alternative: { multiline: true, minItems: 3 }

@@ -157,2 +157,7 @@ // enforce line breaks between array elements

// require or disallow an empty line between class members
// https://eslint.org/docs/rules/lines-between-class-members
// TODO: semver-major: enable
'lines-between-class-members': ['off', 'always', { exceptAfterSingleLine: false }],
// enforces empty lines around comments

@@ -202,2 +207,6 @@ 'lines-around-comment': 'off',

// enforce a particular style for multiline comments
// https://eslint.org/docs/rules/multiline-comment-style
'multiline-comment-style': ['off', 'starred-block'],
// require multiline ternary

@@ -204,0 +213,0 @@ // http://eslint.org/docs/rules/multiline-ternary

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc