Skip to content

Commit a8f9555

Browse files
authored
fix: disallow additional properties in rule options (#1045)
1 parent b29277f commit a8f9555

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

lib/rules/no-node-access.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export default createTestingLibraryRule<Options, MessageIds>({
4141
type: 'boolean',
4242
},
4343
},
44+
additionalProperties: false,
4445
},
4546
],
4647
},

lib/rules/no-render-in-lifecycle.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export default createTestingLibraryRule<Options, MessageIds>({
7272
type: 'string',
7373
},
7474
},
75+
additionalProperties: false,
7576
},
7677
],
7778
},

lib/rules/no-unnecessary-act.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export default createTestingLibraryRule<Options, MessageIds>({
4545
type: 'boolean',
4646
},
4747
},
48+
additionalProperties: false,
4849
},
4950
],
5051
},

lib/rules/prefer-query-matchers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export default createTestingLibraryRule<Options, MessageIds>({
5050
type: 'string',
5151
},
5252
},
53+
additionalProperties: false,
5354
},
5455
},
5556
},

lib/rules/prefer-user-event.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ export default createTestingLibraryRule<Options, MessageIds>({
9090
properties: {
9191
allowedMethods: { type: 'array' },
9292
},
93+
additionalProperties: false,
9394
},
9495
],
9596
},

0 commit comments

Comments
 (0)