Skip to content

Commit d3a4373

Browse files
committed
Fix ESLint to work with async/await
1 parent 6e0b9de commit d3a4373

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.eslintrc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
extends:
33
- eslint:recommended
44
- google
5+
parser: babel-eslint
56
parserOptions:
67
ecmaVersion: 6
78
sourceType: module
@@ -25,7 +26,6 @@
2526
MethodDefinition: true
2627
spaced-comment: error
2728
valid-jsdoc: [error, {requireParamDescription: true}]
28-
2929
env:
3030
es6: true
3131
node: true

package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,14 @@
2525
},
2626
"babel": {
2727
"presets": [
28-
"es2015"
28+
[
29+
"env",
30+
{
31+
"targets": {
32+
"node": 6
33+
}
34+
}
35+
]
2936
],
3037
"plugins": [
3138
[
@@ -59,9 +66,11 @@
5966
},
6067
"devDependencies": {
6168
"babel-core": "^6.7.7",
69+
"babel-eslint": "^7.2.3",
6270
"babel-plugin-add-module-exports": "^0.2.1",
6371
"babel-plugin-istanbul": "3.0.0",
6472
"babel-plugin-transform-es2015-modules-umd": "^6.5.0",
73+
"babel-preset-env": "^1.6.0",
6574
"babel-preset-es2015": "^6.5.0",
6675
"babel-register": "^6.7.2",
6776
"babelify": "^7.3.0",

test/repository.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ describe('Repository', function() {
263263
});
264264
});
265265

266-
describe.only('creating/modifiying', function() {
266+
describe('creating/modifiying', function() {
267267
const fileName = 'test.md';
268268

269269
const initialText = 'This is a test.';

0 commit comments

Comments
 (0)