Skip to content

Commit

Permalink
Fix: Set meta.type to "layout" (#283)
Browse files Browse the repository at this point in the history
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.)
  • Loading branch information
brettz9 authored Apr 13, 2020
1 parent 185b106 commit 97152e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eslint-plugin-prettier.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ module.exports = {
docs: {
url: 'https://github.com/prettier/eslint-plugin-prettier#options'
},
type: 'layout',
fixable: 'code',
schema: [
// Prettier options:
Expand Down

0 comments on commit 97152e2

Please sign in to comment.