25 lines
645 B
JavaScript
25 lines
645 B
JavaScript
import js from "@eslint/js";
|
|
import globals from "globals";
|
|
import tseslint from "typescript-eslint";
|
|
import pluginVue from "eslint-plugin-vue";
|
|
import { defineConfig } from "eslint/config";
|
|
|
|
export default defineConfig([
|
|
{
|
|
files: ["**/*.{js,mjs,cjs,ts,mts,cts,vue}"],
|
|
plugins: { js },
|
|
extends: ["js/recommended"],
|
|
languageOptions: { globals: globals.browser },
|
|
},
|
|
{
|
|
files: ["**/*.js"],
|
|
languageOptions: { sourceType: "commonjs" },
|
|
},
|
|
tseslint.configs.recommended,
|
|
pluginVue.configs["flat/essential"],
|
|
{
|
|
files: ["**/*.vue"],
|
|
languageOptions: { parserOptions: { parser: tseslint.parser } },
|
|
},
|
|
]);
|