Avoid importing .json files (#12759)
* Avoid importing `.json` files * Use ESold in babel.config.json * Use `import/extensions` eslint plugin
This commit is contained in:
@@ -18,7 +18,7 @@ type ErrorContext = {
|
||||
|
||||
export type ParsingError = SyntaxError & ErrorContext;
|
||||
|
||||
export { ErrorMessages as Errors } from "./error-message.js";
|
||||
export { ErrorMessages as Errors } from "./error-message";
|
||||
|
||||
export default class ParserError extends CommentsParser {
|
||||
// Forward-declaration: defined in tokenizer/index.js
|
||||
|
||||
@@ -53,7 +53,7 @@ import {
|
||||
newArrowHeadScope,
|
||||
newAsyncArrowScope,
|
||||
newExpressionScope,
|
||||
} from "../util/expression-scope.js";
|
||||
} from "../util/expression-scope";
|
||||
import { Errors } from "./error";
|
||||
|
||||
export default class ExpressionParser extends LValParser {
|
||||
|
||||
Reference in New Issue
Block a user