From 813c8777eb689cf1a913c664e69f0c79ea53e4db Mon Sep 17 00:00:00 2001 From: Ivan Shmidt Date: Wed, 10 Jun 2020 21:50:29 +0200 Subject: [PATCH] fix(cli): prettier config --- package.json | 1 - prettier.config.js | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 prettier.config.js diff --git a/package.json b/package.json index 437ce36c4b..fd9e42ec65 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,6 @@ "pre-commit": "lint-staged" } }, - "prettier": "@spotify/prettier-config", "lint-staged": { "*.{js,jsx,ts,tsx}": [ "eslint --fix", diff --git a/prettier.config.js b/prettier.config.js new file mode 100644 index 0000000000..ed2aaa1774 --- /dev/null +++ b/prettier.config.js @@ -0,0 +1,19 @@ +/* + * Copyright 2020 Spotify AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// For some reason VSCode's extension doesn't work with field in the +// package.json pointing to the same package +module.exports = require('@spotify/prettier-config');