Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
Docs: Add range to espree options in README (fixes #66) (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan-Liang authored Feb 9, 2021
1 parent 8a7a21c commit ae27ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var eslintScope = require('eslint-scope');
var espree = require('espree');
var estraverse = require('estraverse');

var ast = espree.parse(code);
var ast = espree.parse(code, { range: true });
var scopeManager = eslintScope.analyze(ast);

var currentScope = scopeManager.acquire(ast); // global scope
Expand Down

0 comments on commit ae27ff3

Please sign in to comment.