Skip to content

Commit cf52b30

Browse files
andreww2012JounQin
andauthored
fix: disallow extra properties in rule options (#751)
Co-authored-by: JounQin <[email protected]>
1 parent 723f7a8 commit cf52b30

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/twelve-jokes-act.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-plugin-prettier": patch
3+
---
4+
5+
fix: disallow extra properties in rule options

eslint-plugin-prettier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ const eslintPluginPrettier = {
166166
additionalProperties: true,
167167
},
168168
},
169-
additionalProperties: true,
169+
additionalProperties: false,
170170
},
171171
],
172172
messages: {

0 commit comments

Comments
 (0)