mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
23 lines
517 B
JavaScript
23 lines
517 B
JavaScript
import { RuleTester } from "eslint";
|
|
import babelESLintParser from "@babel/eslint-parser";
|
|
import { fileURLToPath } from "node:url";
|
|
|
|
const defaultConfig = {
|
|
languageOptions: {
|
|
parser: babelESLintParser,
|
|
parserOptions: {
|
|
sourceType: "module",
|
|
ecmaVersion: "latest",
|
|
babelOptions: {
|
|
configFile: fileURLToPath(
|
|
new URL("../config/babel.config.js", import.meta.url)
|
|
),
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
RuleTester.setDefaultConfig(defaultConfig);
|
|
|
|
export default RuleTester;
|