From 97152e2787bf9bb27f053d6a91ccf826dc96a505 Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Mon, 13 Apr 2020 09:13:18 +0800 Subject: [PATCH] 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.) --- eslint-plugin-prettier.js | 1 + 1 file changed, 1 insertion(+) diff --git a/eslint-plugin-prettier.js b/eslint-plugin-prettier.js index 79ca0ef3..4087e5e4 100644 --- a/eslint-plugin-prettier.js +++ b/eslint-plugin-prettier.js @@ -120,6 +120,7 @@ module.exports = { docs: { url: 'https://github.com/prettier/eslint-plugin-prettier#options' }, + type: 'layout', fixable: 'code', schema: [ // Prettier options: