From 72c964dce9dbc408ed2ac7e583a9b9afd25414d3 Mon Sep 17 00:00:00 2001 From: Victor Ferraz Date: Mon, 3 Feb 2020 10:51:51 -0300 Subject: [PATCH] Fix babel-eslint parser and update ecmaVersion to 7 --- package.json | 2 +- plugins/babel.js | 4 ++-- plugins/import.js | 2 +- plugins/react-hooks.js | 2 +- plugins/react.js | 2 +- plugins/unicorn.js | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index ccdf1a8..523ab0e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-config-vinta", - "version": "1.4.0", + "version": "1.4.1", "description": "Vinta's ESLint and Prettier Shareable Configs", "main": "index.js", "scripts": { diff --git a/plugins/babel.js b/plugins/babel.js index 9e6f6bd..ab2cce8 100644 --- a/plugins/babel.js +++ b/plugins/babel.js @@ -1,9 +1,9 @@ module.exports = { extends: ['prettier/babel'], plugins: ['babel'], + parser: 'babel-eslint', parserOptions: { - parser: 'babel-eslint', - ecmaVersion: 6, + ecmaVersion: 7, }, rules: { // Disabled ESLint rules that are replaced by babel's ones diff --git a/plugins/import.js b/plugins/import.js index d0eb83a..c33a804 100644 --- a/plugins/import.js +++ b/plugins/import.js @@ -4,7 +4,7 @@ module.exports = { es6: true, }, parserOptions: { - ecmaVersion: 6, + ecmaVersion: 7, sourceType: 'module', }, settings: { diff --git a/plugins/react-hooks.js b/plugins/react-hooks.js index b2d6e7c..f261f19 100644 --- a/plugins/react-hooks.js +++ b/plugins/react-hooks.js @@ -1,7 +1,7 @@ module.exports = { plugins: ['react-hooks'], parserOptions: { - ecmaVersion: 6, + ecmaVersion: 7, sourceType: 'module', }, rules: { diff --git a/plugins/react.js b/plugins/react.js index 4e225d1..33dc712 100644 --- a/plugins/react.js +++ b/plugins/react.js @@ -2,7 +2,7 @@ module.exports = { extends: ['prettier/react'], plugins: ['react', 'react-hooks'], parserOptions: { - ecmaVersion: 6, + ecmaVersion: 7, sourceType: 'module', ecmaFeatures: { jsx: true, diff --git a/plugins/unicorn.js b/plugins/unicorn.js index 5df3ba5..d6c5be0 100644 --- a/plugins/unicorn.js +++ b/plugins/unicorn.js @@ -2,7 +2,7 @@ module.exports = { extends: ['prettier/unicorn'], plugins: ['unicorn'], parserOptions: { - ecmaVersion: 6, + ecmaVersion: 7, sourceType: 'module', }, rules: {