Skip to content

Commit 876be72

Browse files
author
Joe Goggins
committed
Adject linter to allow anonymous async functions in mocha
Specifically, this change makes this linter error go away: /Users/me/git/particle-api-js/test/Particle.spec.js:941:78: Parsing error: Unexpected token => [Error]`
1 parent f65b727 commit 876be72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.eslintrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
module.exports = {
22
extends: ['eslint-config-particle'],
33
parserOptions: {
4-
sourceType: 'module'
4+
sourceType: 'module',
5+
ecmaVersion: 8
56
},
67
env: {
78
browser: true,

0 commit comments

Comments
 (0)