From d93e849951b03ce18888102357074fd3c5a37136 Mon Sep 17 00:00:00 2001 From: John Gozde Date: Tue, 15 Oct 2024 13:50:15 -0600 Subject: [PATCH] Fix recommended config --- .changeset/quick-ties-add.md | 5 +++++ packages/eslint-plugin-immutable-class/src/index.ts | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .changeset/quick-ties-add.md diff --git a/.changeset/quick-ties-add.md b/.changeset/quick-ties-add.md new file mode 100644 index 0000000..a402811 --- /dev/null +++ b/.changeset/quick-ties-add.md @@ -0,0 +1,5 @@ +--- +"eslint-plugin-immutable-class": patch +--- + +Fix recommended config diff --git a/packages/eslint-plugin-immutable-class/src/index.ts b/packages/eslint-plugin-immutable-class/src/index.ts index 65d9b2b..605c223 100644 --- a/packages/eslint-plugin-immutable-class/src/index.ts +++ b/packages/eslint-plugin-immutable-class/src/index.ts @@ -42,7 +42,10 @@ const recommended = { plugins: { 'immutable-class': plugin, }, - rules, + rules: { + 'declare-implicit-fields': 'error', + 'readonly-implicit-fields': 'error', + }, }; export = plugin;