Skip to content

Commit

Permalink
Fix 'future-reserved-words' unit tests: explicitly allow parsing rese…
Browse files Browse the repository at this point in the history
  • Loading branch information
yassin-kammoun-sonarsource committed Feb 28, 2022
1 parent e699ecc commit 5946f34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eslint-bridge/tests/rules/future-reserved-words.test.ts
Expand Up @@ -19,7 +19,9 @@
*/
import { RuleTester } from 'eslint';

const ruleTester = new RuleTester({ parserOptions: { ecmaVersion: 3, sourceType: 'script' } });
const ruleTester = new RuleTester({
parserOptions: { ecmaVersion: 3, sourceType: 'script', allowReserved: true },
});
import { rule } from 'rules/future-reserved-words';

ruleTester.run('Future reserved words', rule, {
Expand Down

0 comments on commit 5946f34

Please sign in to comment.