Skip to content

Commit 80bc62e

Browse files
authored
refactor: use defaultOptions in no-unnormalized-keys (#140)
1 parent d519f38 commit 80bc62e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/rules/no-unnormalized-keys.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,16 @@ const rule = {
4545
additionalProperties: false,
4646
},
4747
],
48+
49+
defaultOptions: [
50+
{
51+
form: "NFC",
52+
},
53+
],
4854
},
4955

5056
create(context) {
51-
const form = context.options.length
52-
? context.options[0].form
53-
: undefined;
57+
const [{ form }] = context.options;
5458

5559
return {
5660
Member(node) {

0 commit comments

Comments
 (0)