eslint-config-es
Advanced tools
Comparing version 0.8.12 to 0.9.0
@@ -12,3 +12,3 @@ 'use strict'; | ||
const parserOptions = { | ||
ecmaVersion: 2017, | ||
ecmaVersion: 2018, | ||
sourceType: 'script', | ||
@@ -35,2 +35,6 @@ ecmaFeatures: { | ||
'comma-dangle': [ 2, 'never' ], | ||
'for-direction': 2, | ||
'getter-return': [ 2, { allowImplicit: true }], | ||
'no-await-in-loop': 0, | ||
'no-compare-neg-zero': 2, | ||
'no-cond-assign': [ 2, 'always' ], | ||
@@ -48,3 +52,9 @@ 'no-console': 2, | ||
'no-extra-boolean-cast': 2, | ||
'no-extra-parens': [ 2, 'all', { nestedBinaryExpressions: false }], | ||
'no-extra-parens': [ 2, 'all', { | ||
conditionalAssign: false, | ||
enforceForArrowConditionals: false, | ||
ignoreJSX: 'all', | ||
nestedBinaryExpressions: false, | ||
returnAssign: false | ||
}], | ||
'no-extra-semi': 2, | ||
@@ -68,3 +78,3 @@ 'no-func-assign': 2, | ||
'accessor-pairs': [ 2, { getWithoutSet: false, setWithoutGet: true }], | ||
'array-callback-return': 2, | ||
'array-callback-return': [ 2, { allowImplicit: true }], | ||
'block-scoped-var': 2, | ||
@@ -155,2 +165,3 @@ 'class-methods-use-this': 2, | ||
'handle-callback-err': [ 2, 'err' ], | ||
'no-buffer-constructor': 2, | ||
'no-mixed-requires': [ 2, true ], | ||
@@ -162,4 +173,5 @@ 'no-new-require': 2, | ||
'no-restricted-modules': 0, | ||
'no-sync': 2, | ||
'no-sync': [ 2, { allowAtRootLevel: false }], | ||
'array-bracket-newline': 0, | ||
'array-bracket-spacing': [ 2, 'always', { | ||
@@ -170,2 +182,3 @@ singleValue: true, | ||
}], | ||
'array-element-newline': 0, | ||
'block-spacing': [ 2, 'always' ], | ||
@@ -183,2 +196,3 @@ 'brace-style': [ 2, '1tbs', { allowSingleLine: false }], | ||
'func-style': [ 2, 'expression' ], | ||
'function-paren-newline': [ 2, 'multiline' ], | ||
'id-blacklist': 0, | ||
@@ -192,3 +206,7 @@ 'id-length': [ 2, { | ||
'id-match': 0, | ||
indent: [ 2, 2, { SwitchCase: 1, VariableDeclarator: { var: 2, let: 2, const: 3 }}], | ||
'implicit-arrow-linebreak': 0, | ||
indent: [ 2, 2, { | ||
SwitchCase: 1, | ||
VariableDeclarator: { var: 2, let: 2, const: 3 } | ||
}], | ||
'jsx-quotes': [ 2, 'prefer-single' ], | ||
@@ -211,3 +229,3 @@ 'key-spacing': [ 2, { beforeColon: false, afterColon: true, mode: 'strict' }], | ||
}], | ||
'lines-around-directive': [ 2, 'always' ], | ||
'lines-between-class-members': [ 2, 'always' ], | ||
'max-depth': 0, | ||
@@ -219,2 +237,4 @@ 'max-len': 0, | ||
'max-statements-per-line': [ 2, { max: 1 }], | ||
'multiline-comment-style': [ 2, 'separate-lines' ], | ||
'multiline-ternary': [ 2, 'always-multiline' ], | ||
'new-cap': [ 2, { | ||
@@ -228,4 +248,2 @@ newIsCap: true, | ||
'new-parens': 2, | ||
'newline-after-var': [ 2, 'always' ], | ||
'newline-before-return': 2, | ||
'newline-per-chained-call': [ 2, { ignoreChainWithDepth: 2 }], | ||
@@ -245,6 +263,13 @@ 'no-array-constructor': 2, | ||
'no-ternary': 0, | ||
'no-trailing-spaces': [ 2, { skipBlankLines: false }], | ||
'no-trailing-spaces': [ 2, { | ||
ignoreComments: false, | ||
skipBlankLines: false | ||
}], | ||
'no-underscore-dangle': 2, | ||
'no-unneeded-ternary': 2, | ||
'no-whitespace-before-property': 2, | ||
'object-curly-newline': [ 2, { | ||
ObjectExpression: { multiline: true }, | ||
ObjectPattern: { multiline: true } | ||
}], | ||
'object-curly-spacing': [ 2, 'always', { | ||
@@ -254,3 +279,3 @@ objectsInObjects: false, | ||
}], | ||
'object-property-newline': [ 2, { allowMultiplePropertiesPerLine: true }], | ||
'object-property-newline': [ 2, { allowAllPropertiesOnSameLine: true }], | ||
'one-var': 0, | ||
@@ -261,2 +286,9 @@ 'one-var-declaration-per-line': [ 2, 'always' ], | ||
'padded-blocks': [ 2, 'never' ], | ||
'padding-line-between-statements': [ | ||
2, | ||
{ blankLine: 'always', prev: '*', next: 'return' }, | ||
{ blankLine: 'always', prev: [ 'const', 'let', 'var' ], next: '*' }, | ||
{ blankLine: 'any', prev: [ 'const', 'let', 'var' ], next: [ 'const', 'let', 'var' ]}, | ||
{ blankLine: 'always', prev: 'directive', next: '*' }, { blankLine: 'any', prev: 'directive', next: 'directive' } | ||
], | ||
'quote-props': [ 2, 'as-needed' ], | ||
@@ -267,2 +299,3 @@ quotes: [ 2, 'single', { avoidEscape: false, allowTemplateLiterals: true }], | ||
'semi-spacing': [ 2, { before: false, after: true }], | ||
'semi-style': [ 2, 'last' ], | ||
'sort-keys': [ 0 ], | ||
@@ -276,2 +309,3 @@ 'sort-vars': [ 2, { ignoreCase: true }], | ||
'spaced-comment': [ 2, 'always' ], | ||
'switch-colon-spacing': [ 2, { after: true, before: false }], | ||
'wrap-regex': 0, | ||
@@ -278,0 +312,0 @@ |
{ | ||
"name": "eslint-config-es", | ||
"version": "0.8.12", | ||
"version": "0.9.0", | ||
"description": "eslint-config-es contains a strict ESLint configuration for ES2015+.", | ||
@@ -37,2 +37,3 @@ "contributors": [ | ||
"es2017", | ||
"es2018", | ||
"eslint", | ||
@@ -39,0 +40,0 @@ "eslint-config" |
Potential vulnerability
Supply chain riskInitial human review suggests the presence of a vulnerability in this package. It is pending further analysis and confirmation.
Found 1 instance in 1 package
18655
462
0
7