Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 9f1793f

Browse files
committed
chore(eslint): allow ES6 for node scripts
1 parent a7a9688 commit 9f1793f

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

.eslintrc-node.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
{
22
"extends": "./.eslintrc-base.json",
3-
43
"env": {
54
"browser": false,
65
"node": true
7-
}
6+
},
7+
"parserOptions": {
8+
"ecmaVersion": 2017
9+
},
10+
"plugins": [
11+
"promise"
12+
]
813
}

Gruntfile.js

+1
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ module.exports = function(grunt) {
174174
'docs/**/*.js',
175175
'lib/**/*.js',
176176
'scripts/**/*.js',
177+
'!scripts/*/*/node_modules/**',
177178
'src/**/*.js',
178179
'test/**/*.js',
179180
'i18n/**/*.js',

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"cz-conventional-changelog": "1.1.4",
3535
"dgeni": "^0.4.0",
3636
"dgeni-packages": "^0.16.4",
37+
"eslint-plugin-promise": "^3.6.0",
3738
"event-stream": "~3.1.0",
3839
"glob": "^6.0.1",
3940
"google-code-prettify": "1.0.1",

yarn.lock

+4
Original file line numberDiff line numberDiff line change
@@ -1994,6 +1994,10 @@ escope@^3.6.0:
19941994
esrecurse "^4.1.0"
19951995
estraverse "^4.1.1"
19961996

1997+
eslint-plugin-promise@^3.6.0:
1998+
version "3.6.0"
1999+
resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-3.6.0.tgz#54b7658c8f454813dc2a870aff8152ec4969ba75"
2000+
19972001
eslint@^3.0.0:
19982002
version "3.15.0"
19992003
resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.15.0.tgz#bdcc6a6c5ffe08160e7b93c066695362a91e30f2"

0 commit comments

Comments
 (0)