Skip to content
This repository has been archived by the owner on May 25, 2019. It is now read-only.

Commit

Permalink
Add eslint es6 env
Browse files Browse the repository at this point in the history
  • Loading branch information
masakura committed Aug 28, 2015
1 parent b98b4ea commit 5a4eb8d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/templates/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
],
"env": {
"node": true,
"browser": true<% if (includeJQuery) { %>,
"browser": true<% if (useBabel) { %>,
"es6": true<% } if (includeJQuery) { %>,
"jquery": true<% } if (testFramework === 'mocha') { %>,
"mocha": true<% } else if (testFramework === 'jasmine') { %>,
"jasmine": true<% } %>
Expand Down
4 changes: 4 additions & 0 deletions test/babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ describe('babel', function () {
assert.fileContent('package.json', 'babel');
});

it('adds the es6 eslint en', function () {
assert.fileContent('package.json', '"es6": true');
});

it('adds the Grunt task', function () {
assert.fileContent('Gruntfile.js', 'babel');
});
Expand Down

0 comments on commit 5a4eb8d

Please sign in to comment.