30 lines
915 B
JavaScript
30 lines
915 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: "^__" }],
|
|
"@typescript-eslint/no-restricted-imports": [
|
|
"error",
|
|
{
|
|
patterns: [
|
|
{
|
|
group: ["../shell/**", "@shell/**"],
|
|
message: "Core modules cannot import from shell.",
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
},
|
|
prettier,
|
|
];
|