* Prevent parseForESLint() behavior from changing after parse() is called (fixes https://github.com/babel/babel-eslint/issues/558, fixes https://github.com/eslint/eslint/issues/9767) * Avoid using the enhanced referencer after monkeypatching * Chore: add test for babel/babel-eslint#558 * Pass correct scope analyzer options * fix escope patch and improve tests * remove process.exit(1)
6 lines
121 B
JavaScript
6 lines
121 B
JavaScript
"use strict"
|
|
const babelEslint = require("../..")
|
|
|
|
// Apply monkeypatch to eslint-scope.
|
|
babelEslint.parse("var x = 0;")
|