Skip to content

Commit

Permalink
chore: enable es2018 in eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
emilianobovetti committed Nov 19, 2019
1 parent 1964623 commit b065767
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
'shared-node-browser': true,
},
parserOptions: {
ecmaVersion: 6,
ecmaVersion: 2018,
sourceType: 'module',
},
rules: {
Expand All @@ -35,7 +35,15 @@ module.exports = {
'block-spacing': [error, 'always'],
'brace-style': [error, '1tbs'],
'capitalized-comments': off,
'comma-dangle': [error, 'always-multiline'],
'comma-dangle': [
error, {
'arrays': 'always-multiline',
'objects': 'always-multiline',
'imports': 'always-multiline',
'exports': 'always-multiline',
'functions': 'never',
},
],
'computed-property-spacing': [error, 'never'],
'consistent-this': [error, 'that'],
'func-call-spacing': [error, 'never'],
Expand Down

0 comments on commit b065767

Please sign in to comment.