Skip to content

Commit dfc0993

Browse files
authored
Disallow extra properties in rule options (#359)
1 parent 19be3c7 commit dfc0993

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

rules/assertion-arguments.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ const schema = [{
399399
default: undefined,
400400
},
401401
},
402+
additionalProperties: false,
402403
}];
403404

404405
module.exports = {

rules/no-ignored-test-files.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ const schema = [{
6060
type: 'array',
6161
},
6262
},
63+
additionalProperties: false,
6364
}];
6465

6566
module.exports = {

rules/no-import-test-files.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ const schema = [{
7272
type: 'array',
7373
},
7474
},
75+
additionalProperties: false,
7576
}];
7677

7778
module.exports = {

rules/test-title-format.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const schema = [
4545
default: undefined,
4646
},
4747
},
48+
additionalProperties: false,
4849
},
4950
];
5051

0 commit comments

Comments
 (0)