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