Skip to content

Commit

Permalink
refactor: remove duplicates and defaults (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
curbengh authored and tomap committed Sep 6, 2019
1 parent 3f9e539 commit d1c598a
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions eslint.js
Expand Up @@ -45,42 +45,40 @@ module.exports = {
'no-proto': 'error',
'no-return-assign': 'error',
'no-void': 'error',
'no-with': 'error',
'prefer-promise-reject-errors': 'error',
'radix': 'error',
'wrap-iife': 'error',
'yoda': ['error', 'never'],
'yoda': 'error',
// Strict Mode
'strict': 'error',
// Variables
'no-label-var': 'error',
'no-shadow-restricted-names': 'error',
'no-undef-init': 'error',
'no-use-before-define': ['error', 'nofunc'],
// Node.js and CommonJS
'handle-callback-err': 'error',
'no-mixed-operators': 'error',
'no-path-concat': 'error',
// Stylistic Issues
'array-bracket-spacing': ['error', 'never'],
'block-spacing': ['error', 'always'],
'array-bracket-spacing': 'error',
'block-spacing': 'error',
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
'comma-dangle': ['error', 'never'],
'comma-dangle': 'error',
'comma-spacing': ['error', {
before: false,
after: true
}],
'comma-style': ['error', 'last'],
'computed-property-spacing': ['error', 'never'],
'computed-property-spacing': 'error',
'eol-last': 'error',
'func-call-spacing': 'error',
'indent': ['error', 2, { SwitchCase: 1 }],
'key-spacing': ['error', {
beforeColon: false,
afterColon: true
}],
'keyword-spacing': ['error', {}],
'linebreak-style': ['error', 'unix'],
'keyword-spacing': 'error',
'linebreak-style': 'error',
'lines-around-comment': ['error', { beforeBlockComment: true }],
'new-cap': 'error',
'new-parens': 'error',
Expand All @@ -98,22 +96,22 @@ module.exports = {
}],
'operator-linebreak': ['error', 'before'],
'quotes': ['error', 'single'],
'semi': ['error', 'always'],
'semi': 'error',
'semi-spacing': ['error', {
before: false,
after: true
}],
'space-before-blocks': ['error', 'always'],
'space-before-blocks': 'error',
'space-before-function-paren': ['error', 'never'],
'space-in-parens': ['error', 'never'],
'space-in-parens': 'error',
'space-infix-ops': 'error',
'space-unary-ops': ['error', {
words: false,
nonwords: false
}],
'spaced-comment': ['error', 'always'],
'template-tag-spacing': ['error', 'never'],
'unicode-bom': ['error', 'never'],
'spaced-comment': 'error',
'template-tag-spacing': 'error',
'unicode-bom': 'error',
// ECMAScript 6
'arrow-spacing': 'error',
'generator-star-spacing': ['error', 'after'],
Expand All @@ -122,9 +120,9 @@ module.exports = {
'no-useless-computed-key': 'error',
'no-useless-constructor': 'error',
'no-useless-rename': 'error',
'rest-spread-spacing': ['error', 'never'],
'template-curly-spacing': ['error', 'never'],
'yield-star-spacing': ['error', 'after'],
'rest-spread-spacing': 'error',
'template-curly-spacing': 'error',
'yield-star-spacing': 'error',
// Node 8 compatibility
'node/no-deprecated-api': ['error', {
'ignoreModuleItems': ['url.parse', 'url.resolve']
Expand Down

0 comments on commit d1c598a

Please sign in to comment.