From 33fca678fe6e7881d09ad85f3dfd368132b397ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Vanvelthem?= Date: Sun, 6 Feb 2022 20:42:27 +0100 Subject: [PATCH] chore(prettier): uses javascript rc --- .dockerignore | 2 +- .prettierrc.js | 24 ++++++++++++++++++++++++ .prettierrc.json | 19 ------------------- 3 files changed, 25 insertions(+), 20 deletions(-) create mode 100644 .prettierrc.js delete mode 100644 .prettierrc.json diff --git a/.dockerignore b/.dockerignore index 549da8c4f42..5608b40844d 100644 --- a/.dockerignore +++ b/.dockerignore @@ -25,7 +25,7 @@ tsconfig.tsbuildinfo # Used when building with nextjs (next-eslint) !.eslintrc.base.json !.prettierignore -!.prettierrc.json +!.prettierrc.js !.eslintignore # npm diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100644 index 00000000000..b0a497a03d0 --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1,24 @@ +// @ts-check + +/** + * @type {import('prettier').Config} + */ +module.exports = { + singleQuote: true, + semi: true, + tabWidth: 2, + bracketSpacing: true, + trailingComma: 'es5', + bracketSameLine: false, + useTabs: false, + endOfLine: 'lf', + overrides: [ + { + files: '*.md', + options: { + singleQuote: false, + quoteProps: 'preserve', + }, + }, + ], +}; diff --git a/.prettierrc.json b/.prettierrc.json deleted file mode 100644 index ea8a9af7f1b..00000000000 --- a/.prettierrc.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "singleQuote": true, - "semi": true, - "tabWidth": 2, - "bracketSpacing": true, - "trailingComma": "es5", - "bracketSameLine": false, - "useTabs": false, - "endOfLine": "lf", - "overrides": [ - { - "files": "*.md", - "options": { - "singleQuote": false, - "quoteProps": "preserve" - } - } - ] -}