Socket
Socket
Sign inDemoInstall

eslint-config-xo

Package Overview
Dependencies
Maintainers
2
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-xo - npm Package Compare versions

Comparing version 0.14.1 to 0.15.0

9

esnext.js

@@ -11,3 +11,5 @@ 'use strict';

'prefer-arrow-callback': 2,
'prefer-const': [2, {destructuring: 'all'}],
'prefer-const': [2, {
destructuring: 'all'
}],

@@ -29,3 +31,6 @@ // disabled since latest Node.js LTS doesn't yet support it

'babel/generator-star-spacing': [2, 'both'],
'babel/new-cap': [2, {newIsCap: true, capIsNew: true}],
'babel/new-cap': [2, {
newIsCap: true,
capIsNew: true
}],
'babel/array-bracket-spacing': [2, 'never'],

@@ -32,0 +37,0 @@ 'babel/object-curly-spacing': [2, 'never'],

@@ -26,3 +26,5 @@ 'use strict';

'no-empty-character-class': 2,
'no-empty': [2, {allowEmptyCatch: true}],
'no-empty': [2, {
allowEmptyCatch: true
}],
'no-ex-assign': 2,

@@ -39,2 +41,3 @@ 'no-extra-boolean-cast': 2,

'no-obj-calls': 2,
'no-prototype-builtins': 2,
'no-regex-spaces': 2,

@@ -50,2 +53,3 @@ 'no-sparse-arrays': 2,

'block-scoped-var': 2,
'complexity': 1,
'curly': 2,

@@ -110,3 +114,5 @@ 'default-case': 2,

'no-undef-init': 2,
'no-undef': [2, {typeof: true}],
'no-undef': [2, {
typeof: true
}],
'no-unused-vars': 2,

@@ -117,3 +123,6 @@ 'no-use-before-define': [2, 'nofunc'],

'handle-callback-err': 1,
'no-mixed-requires': [2, {grouping: true, allowCall: true}],
'no-mixed-requires': [2, {
grouping: true,
allowCall: true
}],
'no-new-require': 2,

@@ -124,21 +133,44 @@ 'no-path-concat': 2,

'array-bracket-spacing': [2, 'never'],
'brace-style': [2, '1tbs', {allowSingleLine: false}],
'camelcase': [2, {properties: 'always'}],
'comma-spacing': [2, {before: false, after: true}],
'brace-style': [2, '1tbs', {
allowSingleLine: false
}],
'camelcase': [2, {
properties: 'always'
}],
'comma-spacing': [2, {
before: false,
after: true
}],
'comma-style': [2, 'last'],
'computed-property-spacing': [2, 'never'],
'eol-last': 2,
'indent': [2, 'tab', {SwitchCase: 1}],
'indent': [2, 'tab', {
SwitchCase: 1
}],
'jsx-quotes': 2,
'key-spacing': [2, {beforeColon: false, afterColon: true}],
'key-spacing': [2, {
beforeColon: false,
afterColon: true
}],
'keyword-spacing': 2,
'linebreak-style': [2, 'unix'],
'max-depth': 1,
'max-lines': 1,
'max-nested-callbacks': [1, 4],
'max-params': [1, {
max: 4
}],
'max-statements-per-line': 2,
'new-cap': [2, {newIsCap: true, capIsNew: true}],
'new-cap': [2, {
newIsCap: true,
capIsNew: true
}],
'new-parens': 2,
'no-array-constructor': 2,
'no-lonely-if': 2,
'no-mixed-operators': 2,
'no-mixed-spaces-and-tabs': 2,
'no-multiple-empty-lines': [2, {max: 1}],
'no-multiple-empty-lines': [2, {
max: 1
}],
'no-nested-ternary': 1,

@@ -153,2 +185,3 @@ 'no-negated-condition': 2,

'object-curly-spacing': [2, 'never'],
'object-property-newline': 2,
'one-var': [2, 'never'],

@@ -160,13 +193,32 @@ 'one-var-declaration-per-line': 2,

'quote-props': [2, 'consistent-as-needed'],
'quotes': [2, 'single', {allowTemplateLiterals: true}],
'semi-spacing': [2, {before: false, after: true}],
'quotes': [2, 'single', {
allowTemplateLiterals: true
}],
'semi-spacing': [2, {
before: false,
after: true
}],
'semi': [2, 'always'],
'space-before-blocks': [2, 'always'],
'space-before-function-paren': [2, {anonymous: 'always', named: 'never'}],
'space-before-function-paren': [2, {
anonymous: 'always',
named: 'never'
}],
'space-in-parens': [2, 'never'],
'space-infix-ops': 2,
'space-unary-ops': 2,
'spaced-comment': [2, 'always', {markers: ['!']}],
'spaced-comment': [2, 'always', {
line: {
exceptions: ['-']
},
block: {
markers: ['!']
}
}],
'unicode-bom': [2, 'never'],
'arrow-parens': [2, 'as-needed'],
'arrow-spacing': [2, {before: true, after: true}],
'arrow-spacing': [2, {
before: true,
after: true
}],
'constructor-super': 2,

@@ -177,3 +229,5 @@ 'generator-star-spacing': [2, 'both'],

'no-dupe-class-members': 2,
'no-duplicate-imports': [2, {includeExports: true}],
'no-duplicate-imports': [2, {
includeExports: true
}],
'no-new-symbol': 2,

@@ -183,3 +237,5 @@ 'no-this-before-super': 2,

'no-useless-constructor': 2,
'no-useless-rename': 2,
'require-yield': 2,
'rest-spread-spacing': [2, 'never'],
'template-curly-spacing': 2,

@@ -186,0 +242,0 @@ 'yield-star-spacing': [2, 'both']

{
"name": "eslint-config-xo",
"version": "0.14.1",
"version": "0.15.0",
"description": "ESLint shareable config for XO",

@@ -55,3 +55,3 @@ "license": "MIT",

"babel-eslint": "^6.0.0",
"eslint": "^2.9.0",
"eslint": "^2.12.0",
"eslint-plugin-babel": "^3.0.0",

@@ -62,4 +62,4 @@ "is-plain-obj": "^1.0.0",

"peerDependencies": {
"eslint": ">=2.9.0"
"eslint": ">=2.12.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