We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
context.parserOptions
1 parent 1b3881d commit d5ef939Copy full SHA for d5ef939
lib/rules/no-eval.js
@@ -226,7 +226,9 @@ module.exports = {
226
227
Program(node) {
228
const scope = sourceCode.getScope(node),
229
- features = context.parserOptions.ecmaFeatures || {},
+ features =
230
+ context.languageOptions.parserOptions.ecmaFeatures ||
231
+ {},
232
strict =
233
scope.isStrict ||
234
node.sourceType === "module" ||
lib/rules/strict.js
@@ -101,7 +101,8 @@ module.exports = {
101
},
102
103
create(context) {
104
- const ecmaFeatures = context.parserOptions.ecmaFeatures || {},
+ const ecmaFeatures =
105
+ context.languageOptions.parserOptions.ecmaFeatures || {},
106
scopes = [],
107
classScopes = [];
108
let [mode] = context.options;
0 commit comments