From 9462c41de2e6be94d1308af29a4dc9f2acfacfd8 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Wed, 17 Jun 2020 13:35:41 +0300 Subject: [PATCH] Simplify prettier config --- .prettierignore | 13 +++++++++++++ package.json | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 .prettierignore diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000000..bdffee7df8 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,13 @@ +# Copied from '.gitignore', please keep it in sync. +.eslintcache +node_modules +coverage +npmDist +denoDist +benchmarkDist +integrationTmp +npm +deno + +# Don't touch GraphQL files. +*.graphql diff --git a/package.json b/package.json index 8bdcc2225f..3a02bc1676 100644 --- a/package.json +++ b/package.json @@ -38,8 +38,8 @@ "check:cover": "node resources/check-cover.js && nyc report --nycrc-path .nycflowrc.yml", "testonly": "mocha --full-trace src/**/__tests__/**/*-test.js", "testonly:cover": "nyc npm run testonly", - "prettier": "prettier --ignore-path .gitignore --write --list-different \"**/*.{js,ts,md,json,yml}\"", - "prettier:check": "prettier --ignore-path .gitignore --check \"**/*.{js,ts,md,json,yml}\"", + "prettier": "prettier --write --list-different .", + "prettier:check": "prettier --check .", "check:spelling": "cspell \"./{src/**/,resources/**/,integrationTests/**/}*.{js,ts,md,graphql}\"", "check:integrations": "mocha --full-trace integrationTests/*-test.js", "build:npm": "node resources/build-npm.js",