From f0b602bcea2ab4061e7f9cb5e97f9e4326a8e784 Mon Sep 17 00:00:00 2001 From: Nicolas Sutter Date: Wed, 29 Nov 2023 10:59:34 +0100 Subject: [PATCH] chore: use `.mjs` prettier config --- .prettierrc | 12 ------------ .prettierrc.mjs | 13 +++++++++++++ 2 files changed, 13 insertions(+), 12 deletions(-) delete mode 100644 .prettierrc create mode 100644 .prettierrc.mjs diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index 365d73f..0000000 --- a/.prettierrc +++ /dev/null @@ -1,12 +0,0 @@ -{ - "semi": false, - "singleQuote": true, - "quoteProps": "as-needed", - "trailingComma": "all", - "bracketSpacing": true, - "bracketSameLine": false, - "arrowParens": "always", - "singleAttributePerLine": true, - "printWidth": 80, - "jsxSingleQuote": true -} diff --git a/.prettierrc.mjs b/.prettierrc.mjs new file mode 100644 index 0000000..fa89386 --- /dev/null +++ b/.prettierrc.mjs @@ -0,0 +1,13 @@ +/** @type {import('prettier').Config} */ +export default { + semi: false, + singleQuote: true, + quoteProps: 'as-needed', + trailingComma: 'all', + bracketSpacing: true, + bracketSameLine: false, + arrowParens: 'always', + singleAttributePerLine: true, + printWidth: 80, + jsxSingleQuote: true, +}