Skip to content

Commit 6ed77e4

Browse files
fix: allow mutations of things prefixed with mutable
1 parent 8d2ba6b commit 6ed77e4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/plugins/functional.ts

+14
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,20 @@ export const settings: Linter.Config = {
1010
],
1111

1212
rules: {
13+
"functional/no-let": [
14+
"error",
15+
{
16+
ignorePattern: "^mutable",
17+
},
18+
],
19+
"functional/immutable-data": [
20+
"error",
21+
{
22+
ignoreAccessorPattern: "**.mutable*.**",
23+
ignoreClass: "fieldsOnly",
24+
ignoreImmediateMutation: true,
25+
},
26+
],
1327
"functional/no-conditional-statement": [
1428
"error",
1529
{

0 commit comments

Comments
 (0)