From 4170ff2a9b00edc903d4f870302bb57e7fe231a0 Mon Sep 17 00:00:00 2001 From: Jmeas Date: Fri, 13 May 2016 23:53:23 -0700 Subject: [PATCH 1/2] Fix ESLint 2.0.0 upgrade issue Ensures that the correct parser options are set to interpret ES6 code --- app/templates/.eslintrc | 4 ++++ app/templates/test/.eslintrc | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/app/templates/.eslintrc b/app/templates/.eslintrc index 6c87599..e90efaf 100644 --- a/app/templates/.eslintrc +++ b/app/templates/.eslintrc @@ -1,5 +1,9 @@ { "parser": "babel-eslint", + "parserOptions": { + "ecmaVersion": 6, + "sourceType": "module" + }, "rules": {}, "env": { "browser": true, diff --git a/app/templates/test/.eslintrc b/app/templates/test/.eslintrc index 46b422f..1706e71 100644 --- a/app/templates/test/.eslintrc +++ b/app/templates/test/.eslintrc @@ -1,6 +1,10 @@ { "extends": "./setup/.globals.json", "parser": "babel-eslint", + "parserOptions": { + "ecmaVersion": 6, + "sourceType": "module" + }, "rules": { "strict": 0, "quotes": [2, "single"], From 3dccc60311f8e75ffda0849fc81c3794c0a337e0 Mon Sep 17 00:00:00 2001 From: Jmeas Date: Fri, 13 May 2016 23:55:05 -0700 Subject: [PATCH 2/2] 7.3.3 --- CHANGELOG.md | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 06a0edb..c8c0bc8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +### [7.3.3](https://github.com/babel/babel-library-boilerplate/releases/tag/7.3.3) + +- Fixes issue where ESLint would explode due to a lack of specifying `parserOptions`. + This was caused by the upgrade to ESLint 2.0.0 in v7.3.0 + ### [7.3.2](https://github.com/babel/babel-library-boilerplate/releases/tag/7.3.2) - Ensures that the intended naming updates from `7.3.0` work in more situations diff --git a/package.json b/package.json index 818e668..4d1550e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "generator-babel-boilerplate", - "version": "7.3.2", + "version": "7.3.3", "description": "Generate a boilerplate for a library written in ES2015 for Node and the browser.", "main": "app/index.js", "scripts": {