mirror of
https://github.com/vector-im/element-call.git
synced 2026-10-16 23:45:50 +00:00
22 lines
991 B
TypeScript
22 lines
991 B
TypeScript
import { eslintCompatPlugin } from "@oxlint/plugins";
|
|
|
|
import { noManualEffectErrorTagRule } from "./rules/no-manual-effect-error-tag.ts";
|
|
import { noManualTagComparisonRule } from "./rules/no-manual-tag-comparison.ts";
|
|
import { noManualTaggedConstructionRule } from "./rules/no-manual-tagged-construction.ts";
|
|
import { noServiceConstructorImportsRule } from "./rules/no-service-constructor-imports.ts";
|
|
import { preferEffectMatchRule } from "./rules/prefer-effect-match.ts";
|
|
|
|
/** Opt-in Oxlint rules for Effect service and Layer architecture. */
|
|
const antiSlopEffectPlugin = eslintCompatPlugin({
|
|
meta: { name: "anti-slop-effect" },
|
|
rules: {
|
|
"no-manual-effect-error-tag": noManualEffectErrorTagRule,
|
|
"no-manual-tag-comparison": noManualTagComparisonRule,
|
|
"no-manual-tagged-construction": noManualTaggedConstructionRule,
|
|
"no-service-constructor-imports": noServiceConstructorImportsRule,
|
|
"prefer-effect-match": preferEffectMatchRule,
|
|
},
|
|
});
|
|
|
|
export default antiSlopEffectPlugin;
|