From b06576735c16f5444488e3acc06ee95e35005977 Mon Sep 17 00:00:00 2001 From: Emiliano Bovetti Date: Tue, 19 Nov 2019 12:51:31 +0100 Subject: [PATCH] chore: enable es2018 in eslint --- .eslintrc.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 68cce9e..1ef2e8c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -12,7 +12,7 @@ module.exports = { 'shared-node-browser': true, }, parserOptions: { - ecmaVersion: 6, + ecmaVersion: 2018, sourceType: 'module', }, rules: { @@ -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'],