mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
29 lines
606 B
JavaScript
29 lines
606 B
JavaScript
import importPlugin from "eslint-plugin-import";
|
|
import babelParser from "@babel/eslint-parser";
|
|
import { fileURLToPath } from "url";
|
|
|
|
export default [
|
|
{
|
|
plugins: {
|
|
import: importPlugin,
|
|
},
|
|
|
|
languageOptions: {
|
|
parser: babelParser,
|
|
parserOptions: {
|
|
requireConfigFile: false,
|
|
babelOptions: {
|
|
configFile: false,
|
|
cwd: fileURLToPath(new URL("..", import.meta.url)),
|
|
presets: ["@babel/preset-flow"],
|
|
},
|
|
},
|
|
},
|
|
|
|
rules: {
|
|
"import/no-named-as-default": "error",
|
|
"no-unused-vars": "error",
|
|
},
|
|
},
|
|
];
|