Skip to content

Commit

Permalink
Fix babel-eslint parser and update ecmaVersion to 7
Browse files Browse the repository at this point in the history
  • Loading branch information
victorfsf committed Feb 3, 2020
1 parent 4c9adab commit 72c964d
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions plugins/babel.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugins/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
es6: true,
},
parserOptions: {
ecmaVersion: 6,
ecmaVersion: 7,
sourceType: 'module',
},
settings: {
Expand Down
2 changes: 1 addition & 1 deletion plugins/react-hooks.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
plugins: ['react-hooks'],
parserOptions: {
ecmaVersion: 6,
ecmaVersion: 7,
sourceType: 'module',
},
rules: {
Expand Down
2 changes: 1 addition & 1 deletion plugins/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
extends: ['prettier/react'],
plugins: ['react', 'react-hooks'],
parserOptions: {
ecmaVersion: 6,
ecmaVersion: 7,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
Expand Down
2 changes: 1 addition & 1 deletion plugins/unicorn.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
extends: ['prettier/unicorn'],
plugins: ['unicorn'],
parserOptions: {
ecmaVersion: 6,
ecmaVersion: 7,
sourceType: 'module',
},
rules: {
Expand Down

0 comments on commit 72c964d

Please sign in to comment.