Skip to content

Commit

Permalink
fix: update functional rules
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Sep 29, 2022
1 parent c1e35e4 commit d8d8420
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions src/plugins/functional.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import type { Linter } from "eslint";
export const settings: Linter.Config = {
plugins: ["functional"],

extends: ["plugin:functional/recommended"],

rules: {
"functional/no-expression-statement": "error",
"functional/immutable-data": [
Expand All @@ -13,37 +15,12 @@ export const settings: Linter.Config = {
ignoreImmediateMutation: true,
},
],
"functional/no-conditional-statement": [
"error",
{
allowReturningBranches: true,
},
],
"functional/no-let": [
"error",
{
allowInForLoopInit: true,
ignorePattern: ["^mutable", "^m_"],
},
],
"functional/no-loop-statement": "error",
"functional/no-mixed-type": "error",
"functional/no-throw-statement": [
"error",
{
allowInAsyncFunctions: true,
},
],
"functional/no-return-void": "error",
},

overrides: [
{
files: ["**/*.cjs"],
rules: {
"functional/immutable-data": "off",
"functional/no-expression-statement": "off",
},
},
],
};

0 comments on commit d8d8420

Please sign in to comment.