From f613678e64c249d2622ca855c83415c81213cf6d Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Tue, 30 Apr 2019 16:49:40 +0200 Subject: [PATCH] chore(.prettier): Move config to package.json --- .prettierrc.js | 3 --- package.json | 12 ++++++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) delete mode 100644 .prettierrc.js diff --git a/.prettierrc.js b/.prettierrc.js deleted file mode 100644 index 176ecddc..00000000 --- a/.prettierrc.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = { printWidth: 100, tabWidth: 4 }; diff --git a/package.json b/package.json index df564a8d..3fa26a01 100644 --- a/package.json +++ b/package.json @@ -71,6 +71,18 @@ } ] }, + "prettier": { + "printWidth": 100, + "tabWidth": 4, + "overrides": [ + { + "files": "*.md", + "options": { + "tabWidth": 2 + } + } + ] + }, "scripts": { "lint": "eslint --ignore-path=.gitignore .", "lint-updated": "pipe-git-updated --ext=js -- eslint --ignore-pattern '!*'",