tb-harmony-modern-ts/eslint.config.mjs
2025-11-18 11:10:37 +01:00

31 lines
717 B
JavaScript

import eslint from "@eslint/js";
import { defineConfig, globalIgnores } from "eslint/config";
import tseslint from "typescript-eslint";
export default defineConfig(
globalIgnores(["dist"]),
eslint.configs.recommended,
tseslint.configs.strictTypeChecked,
tseslint.configs.stylisticTypeChecked,
tseslint.configs.recommendedTypeChecked,
{
languageOptions: {
parserOptions: {
project: [
"./tsconfig.json",
"./tsconfig.webpack.json",
"./tsconfig.eslint.json",
],
},
},
},
{
rules: {
"@typescript-eslint/restrict-template-expressions": [
"error",
{ allowNumber: true, allowBoolean: true },
],
},
},
);