Skip to content

Commit 97152e2

Browse files
authored
Fix: Set meta.type to "layout" (#283)
Per https://eslint.org/docs/user-guide/command-line-interface#fix-type , one can set `meta` to "problem" or "suggestion" for code-related changes or "layout" for formatting ones. Setting this value allows `eslint --fix-type` to take into account the type of fix desired. (And I'm making an eslint badge formatter for which it is more convenient to have this meta info so any rule violations can be grouped by type.)
1 parent 185b106 commit 97152e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

eslint-plugin-prettier.js

+1
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ module.exports = {
120120
docs: {
121121
url: 'https://github.com/prettier/eslint-plugin-prettier#options'
122122
},
123+
type: 'layout',
123124
fixable: 'code',
124125
schema: [
125126
// Prettier options:

0 commit comments

Comments
 (0)