Skip to content

Commit

Permalink
feat: prefer ES6 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
curbengh committed Sep 3, 2019
1 parent 2c2a4b9 commit 9cb3992
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions eslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,13 @@ module.exports = {
'no-array-constructor': 'error',
'no-extra-label': 'error',
'no-multiple-empty-lines': 'error',
'no-multi-assign': 'error',
'no-nested-ternary': 'error',
'no-new-object': 'error',
'no-trailing-spaces': 'error',
'no-unneeded-ternary': 'error',
'no-whitespace-before-property': 'error',
'one-var': ['error', {
uninitialized: 'always',
initialized: 'never'
}],
'one-var': 'error',
'operator-linebreak': ['error', 'before'],
'quotes': ['error', 'single'],
'semi': ['error', 'always'],
Expand All @@ -115,13 +113,24 @@ module.exports = {
'template-tag-spacing': ['error', 'never'],
'unicode-bom': ['error', 'never'],
// ECMAScript 6
'arrow-spacing': 'error',
'arrow-parens': ['error', 'as-needed'],
'arrow-spacing': ['error', { before: true, after: true }],
'generator-star-spacing': ['error', 'after'],
'no-confusing-arrow': ['error', { allowParens: true }],
'no-const-assign': 'error',
'no-duplicate-imports': 'error',
'no-useless-computed-key': 'error',
'no-useless-constructor': 'error',
'no-useless-rename': 'error',
'no-var': 'error',
'prefer-arrow-callback': ['error', {
allowNamedFunctions: false,
allowUnboundThis: true
}],
'prefer-const': ['error', {
destructuring: 'any',
ignoreReadBeforeAssign: true
}],
'rest-spread-spacing': ['error', 'never'],
'template-curly-spacing': ['error', 'never'],
'yield-star-spacing': ['error', 'after'],
Expand Down

0 comments on commit 9cb3992

Please sign in to comment.