You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[utils] [fix] parse: add ecmaVersion and sourceType to parserOptions
This change adds `ecmaVersion` and `sourceType` to the options we're passing to the parsers, if they're present on `languageOptions` (which would only be the case for flat config).
expect(parseSpy.args[0][1],'custom parser to get ecmaVersion in parserOptions from languageOptions').to.have.property('ecmaVersion',languageOptions.ecmaVersion);
153
+
expect(parseSpy.args[0][1],'custom parser to get sourceType in parserOptions from languageOptions').to.have.property('sourceType',languageOptions.sourceType);
0 commit comments