eslint-config-xo
Advanced tools
Comparing version 0.17.0 to 0.18.0
@@ -13,14 +13,18 @@ 'use strict'; | ||
}], | ||
'prefer-numeric-literals': 2, | ||
'prefer-numeric-literals': 2 | ||
// disabled since latest Node.js LTS doesn't yet support it | ||
// Disabled since latest Node.js LTS doesn't yet support it | ||
// 'prefer-reflect': ['error', {exceptions: ['delete']}], | ||
// 'prefer-rest-params': 'error', | ||
// 'prefer-spread': 'error', | ||
// 'prefer-destructuring': ['error', { | ||
// array: true, | ||
// object: true | ||
// }, { | ||
// enforceForRenamedProperties: true | ||
// }] | ||
// disabled because of https://github.com/eslint/eslint/issues/6572 | ||
// 'prefer-template': 'error', | ||
// 'prefer-spread': 'error', | ||
// Disabled because of https://github.com/eslint/eslint/issues/6572 | ||
// 'prefer-template': 'error' | ||
} | ||
}; |
68
index.js
@@ -18,2 +18,4 @@ 'use strict'; | ||
'comma-dangle': ['error', 'never'], | ||
'no-await-in-loop': 'error', | ||
'no-compare-neg-zero': 'error', | ||
'no-cond-assign': 'error', | ||
@@ -32,4 +34,7 @@ 'no-constant-condition': 'error', | ||
'no-extra-boolean-cast': 'error', | ||
// disabled because of https://github.com/eslint/eslint/issues/6028 | ||
// 'no-extra-parens': [2, 'all', {nestedBinaryExpressions: false}], | ||
// Disabled because of https://github.com/eslint/eslint/issues/6028 | ||
// 'no-extra-parens': [2, 'all', { | ||
// nestedBinaryExpressions: false, | ||
// ignoreJSX: 'multi-line' | ||
// }], | ||
'no-extra-semi': 'error', | ||
@@ -54,8 +59,8 @@ 'no-func-assign': 'error', | ||
'block-scoped-var': 'error', | ||
'complexity': 'warn', | ||
'curly': 'error', | ||
complexity: 'warn', | ||
curly: 'error', | ||
'default-case': 'error', | ||
'dot-notation': 'error', | ||
'dot-location': ['error', 'property'], | ||
'eqeqeq': 'error', | ||
eqeqeq: 'error', | ||
'guard-for-in': 'error', | ||
@@ -93,2 +98,3 @@ 'no-alert': 'error', | ||
'no-return-assign': ['error', 'always'], | ||
'no-return-await': 'error', | ||
'no-script-url': 'error', | ||
@@ -105,8 +111,10 @@ 'no-self-assign': ['error', {props: true}], | ||
'no-useless-escape': 'error', | ||
'no-useless-return': 'error', | ||
'no-void': 'error', | ||
'no-warning-comments': 'warn', | ||
'no-with': 'error', | ||
'radix': 'error', | ||
'wrap-iife': ['error', 'inside'], | ||
'yoda': 'error', | ||
'prefer-promise-reject-errors': ['error', {allowEmptyReject: true}], | ||
radix: 'error', | ||
'wrap-iife': ['error', 'inside', {functionPrototypeMethods: true}], | ||
yoda: 'error', | ||
'no-delete-var': 'error', | ||
@@ -120,5 +128,7 @@ 'no-label-var': 'error', | ||
}], | ||
'no-unused-vars': ['error', {varsIgnorePattern: '^_$'}], | ||
'no-unused-vars': ['error', { | ||
ignoreRestSiblings: true | ||
}], | ||
'no-use-before-define': ['error', 'nofunc'], | ||
// disabled because of https://github.com/eslint/eslint/issues/3420 | ||
// Disabled because of https://github.com/eslint/eslint/issues/3420 | ||
// 'callback-return': ['warn', ['cb', 'callback', 'next', 'done']], | ||
@@ -138,5 +148,11 @@ 'handle-callback-err': 'warn', | ||
}], | ||
'camelcase': ['error', { | ||
camelcase: ['error', { | ||
properties: 'always' | ||
}], | ||
'capitalized-comments': ['error', 'always', { | ||
// You can also ignore this rule by wrapping the first word in quotes | ||
ignorePattern: 'pragma|ignore', | ||
ignoreInlineComments: true, | ||
ignoreConsecutiveComments: true | ||
}], | ||
'comma-spacing': ['error', { | ||
@@ -150,5 +166,17 @@ before: false, | ||
'func-call-spacing': ['error', 'never'], | ||
'func-name-matching': 'error', | ||
'func-names': ['error', 'never'], | ||
'indent': ['error', 'tab', { | ||
SwitchCase: 1 | ||
indent: ['error', 'tab', { | ||
SwitchCase: 1, | ||
FunctionDeclaration: { | ||
parameters: 1, | ||
body: 1 | ||
}, | ||
FunctionExpression: { | ||
parameters: 1, | ||
body: 1 | ||
}, | ||
CallExpression: { | ||
arguments: 1 | ||
} | ||
}], | ||
@@ -177,2 +205,3 @@ 'jsx-quotes': 'error', | ||
'no-mixed-spaces-and-tabs': 'error', | ||
'no-multi-assign': 'error', | ||
'no-multiple-empty-lines': ['error', { | ||
@@ -188,3 +217,3 @@ max: 1 | ||
'object-curly-spacing': ['error', 'never'], | ||
// disabled because of https://github.com/sindresorhus/eslint-config-xo/issues/27 | ||
// Disabled because of https://github.com/sindresorhus/eslint-config-xo/issues/27 | ||
// 'object-property-newline': 'error', | ||
@@ -197,3 +226,3 @@ 'one-var': ['error', 'never'], | ||
'quote-props': ['error', 'as-needed'], | ||
'quotes': ['error', 'single', { | ||
quotes: ['error', 'single', { | ||
allowTemplateLiterals: true | ||
@@ -205,7 +234,8 @@ }], | ||
}], | ||
'semi': ['error', 'always'], | ||
semi: ['error', 'always'], | ||
'space-before-blocks': ['error', 'always'], | ||
'space-before-function-paren': ['error', { | ||
anonymous: 'always', | ||
named: 'never' | ||
named: 'never', | ||
asyncArrow: 'always' | ||
}], | ||
@@ -224,2 +254,3 @@ 'space-in-parens': ['error', 'never'], | ||
}], | ||
'template-tag-spacing': ['error', 'never'], | ||
'unicode-bom': ['error', 'never'], | ||
@@ -236,5 +267,2 @@ 'arrow-parens': ['error', 'as-needed'], | ||
'no-dupe-class-members': 'error', | ||
'no-duplicate-imports': ['error', { | ||
includeExports: true | ||
}], | ||
'no-new-symbol': 'error', | ||
@@ -241,0 +269,0 @@ 'no-this-before-super': 'error', |
{ | ||
"name": "eslint-config-xo", | ||
"version": "0.17.0", | ||
"version": "0.18.0", | ||
"description": "ESLint shareable config for XO", | ||
@@ -54,9 +54,9 @@ "license": "MIT", | ||
"ava": "*", | ||
"eslint": "^3.6.0", | ||
"eslint": "^3.17.0", | ||
"is-plain-obj": "^1.0.0", | ||
"temp-write": "^2.1.0" | ||
"temp-write": "^3.1.0" | ||
}, | ||
"peerDependencies": { | ||
"eslint": ">=3.6.0" | ||
"eslint": ">=3.17.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13246
299