Skip to content

Commit 5e2c1f2

Browse files
authored
lint: set sourceType to 'script' (#1141)
This allows parsing `return;` outside of functions.
1 parent da8af20 commit 5e2c1f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.eslintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
module.exports = {
2+
parserOptions: {
3+
sourceType: 'script'
4+
},
25
extends: ['semistandard']
36
};

0 commit comments

Comments
 (0)