Skip to content

Commit 7568b29

Browse files
committed
fix: disallow extra properties in rule options
1 parent 9050669 commit 7568b29

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

lib/rules/filename-blocklist.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export default {
3838
},
3939
{
4040
type: 'object',
41+
additionalProperties: false,
4142
properties: {
4243
errorMessage: { type: 'string' },
4344
},

lib/rules/filename-naming-convention.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export default {
4444
},
4545
{
4646
type: 'object',
47+
additionalProperties: false,
4748
properties: {
4849
ignoreMiddleExtensions: { type: 'boolean' },
4950
errorMessage: { type: 'string' },

lib/rules/folder-match-with-fex.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export default {
3939
},
4040
{
4141
type: 'object',
42+
additionalProperties: false,
4243
properties: {
4344
errorMessage: { type: 'string' },
4445
},

lib/rules/folder-naming-convention.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export default {
4646
},
4747
{
4848
type: 'object',
49+
additionalProperties: false,
4950
properties: {
5051
errorMessage: { type: 'string' },
5152
ignoreWords: {

lib/rules/no-index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export default {
2424
schema: [
2525
{
2626
type: 'object',
27+
additionalProperties: false,
2728
properties: {
2829
ignoreMiddleExtensions: { type: 'boolean' },
2930
errorMessage: { type: 'string' },

0 commit comments

Comments
 (0)