21 lines
547 B
JavaScript
21 lines
547 B
JavaScript
import eslint from "@eslint/js";
|
|
import { defineConfig, globalIgnores } from "eslint/config";
|
|
import eslintConfigPrettier from "eslint-config-prettier/flat";
|
|
import tseslint from "typescript-eslint";
|
|
|
|
export default defineConfig([
|
|
globalIgnores(["dist/", "node_modules/", "eslint.config.mjs"]),
|
|
|
|
eslint.configs.recommended,
|
|
tseslint.configs.recommendedTypeChecked,
|
|
eslintConfigPrettier,
|
|
|
|
{
|
|
languageOptions: {
|
|
parserOptions: {
|
|
projectService: true,
|
|
tsconfigRootDir: import.meta.dirname,
|
|
},
|
|
},
|
|
},
|
|
]);
|