Files
termos/eslint.config.mjs
T
ChaosMaker 55b5d3a873 - cleaned up old console logs that trashed the terminal
- adjusted the eslint config to include the `__` pattern for function arguments aswell
2026-08-28 17:03:12 +02:00

30 lines
941 B
JavaScript

import js from "@eslint/js";
import prettier from "eslint-config-prettier";
import functional from "eslint-plugin-functional";
import tseslint from "typescript-eslint";
export default [
js.configs.recommended,
...tseslint.configs.recommended,
{
files: ["src/core/**/*.ts"],
...functional.configs.recommended,
rules: {
"functional/no-mixed-types": "off",
"@typescript-eslint/no-unused-vars": ["error", { varsIgnorePattern: "^__", argsIgnorePattern: "^__" }],
"@typescript-eslint/no-restricted-imports": [
"error",
{
patterns: [
{
group: ["../shell/**", "@shell/**"],
message: "Core modules cannot import from shell.",
},
],
},
],
},
},
prettier,
];