31 lines
717 B
JavaScript
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 },
|
|
],
|
|
},
|
|
},
|
|
);
|