Skip to content

Commit

Permalink
Merge pull request #22 from hexojs/es6-rule
Browse files Browse the repository at this point in the history
feat: prefer ES6 syntax
  • Loading branch information
curbengh authored Nov 2, 2019
2 parents bc4071a + 2c92a97 commit 7c3417f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions eslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ 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',
Expand Down Expand Up @@ -113,13 +114,18 @@ module.exports = {
'template-tag-spacing': 'error',
'unicode-bom': 'error',
// ECMAScript 6
'arrow-parens': ['error', 'as-needed'],
'arrow-spacing': 'error',
'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',
'prefer-const': ['error', { ignoreReadBeforeAssign: true }],
'rest-spread-spacing': 'error',
'template-curly-spacing': 'error',
'yield-star-spacing': 'error',
Expand Down

0 comments on commit 7c3417f

Please sign in to comment.