23 lines
548 B
JavaScript
23 lines
548 B
JavaScript
import { defineConfig } from "eslint/config";
|
|
import js from "@eslint/js";
|
|
import globals from "globals";
|
|
import tseslint from "typescript-eslint";
|
|
import eslintConfigPrettier from "eslint-config-prettier/flat";
|
|
|
|
export default defineConfig([
|
|
{
|
|
files: ["**/*.{js,mjs,cjs,ts,mts,cts}"],
|
|
plugins: { js },
|
|
extends: ["js/recommended"],
|
|
},
|
|
{
|
|
files: ["**/*.{js,mjs,cjs,ts,mts,cts}"],
|
|
languageOptions: { globals: globals.browser },
|
|
},
|
|
tseslint.configs.recommended,
|
|
eslintConfigPrettier,
|
|
{
|
|
ignores: ["dist"],
|
|
},
|
|
]);
|