Skip to content

Commit

Permalink
set ecmaVersion in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
koddsson committed Jun 26, 2019
1 parent f46c739 commit ee7501c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/no-implicit-buggy-globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ ruleTester.run('no-implicit-buggy-globals', rule, {
},
{
code: 'var foo = 1;',
parserOptions: {sourceType: 'module'}
parserOptions: {sourceType: 'module', ecmaVersion: 2015}
},
{
code: 'let foo = 1;',
parserOptions: {sourceType: 'module'}
parserOptions: {sourceType: 'module', ecmaVersion: 2015}
},
{
code: 'const foo = 1;',
parserOptions: {sourceType: 'module'}
parserOptions: {sourceType: 'module', ecmaVersion: 2015}
}
],
invalid: [
Expand Down

0 comments on commit ee7501c

Please sign in to comment.