Skip to content

Commit

Permalink
refactor: seperate out overrides into its own var
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Oct 15, 2021
1 parent e30ec78 commit 6f14b9f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/configs/functional-lite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Linter } from "eslint";

import functional from "./functional";

const config: Linter.Config = deepmerge(functional, {
const overrides: Linter.Config = {
rules: {
"functional/immutable-data": ["error", { ignoreClass: "fieldsOnly" }],
"functional/no-conditional-statement": "off",
Expand All @@ -16,6 +16,8 @@ const config: Linter.Config = deepmerge(functional, {
},
],
},
} as Linter.Config);
};

const config: Linter.Config = deepmerge(functional, overrides);

export default config;

0 comments on commit 6f14b9f

Please sign in to comment.