From 7a3243ae13239271dfb9ff4c9ec932fe575102d0 Mon Sep 17 00:00:00 2001 From: Kiran Jonnalagadda Date: Fri, 7 Jun 2024 12:51:29 +0530 Subject: [PATCH] Revise prettier config --- .pre-commit-config.yaml | 6 ++---- .prettierignore | 1 + .prettierrc.js | 6 ------ .prettierrc.json | 6 ++++++ 4 files changed, 9 insertions(+), 10 deletions(-) create mode 100644 .prettierignore delete mode 100644 .prettierrc.js create mode 100644 .prettierrc.json diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c8d8a12e2..c630a9d3b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -123,12 +123,10 @@ repos: - id: remove-crlf - id: forbid-tabs - id: remove-tabs - - repo: https://github.com/pre-commit/mirrors-prettier - rev: v4.0.0-alpha.8 + - repo: https://github.com/pycontribs/mirrors-prettier + rev: v3.3.1 hooks: - id: prettier - args: ['--single-quote', '--trailing-comma', 'es5', '--end-of-line', 'lf'] - exclude: funnel/templates/js/ - repo: https://github.com/ducminh-phan/reformat-gherkin rev: v3.0.1 hooks: diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 000000000..de056073a --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +**/*.md diff --git a/.prettierrc.js b/.prettierrc.js deleted file mode 100644 index 1aed56ad4..000000000 --- a/.prettierrc.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - endOfLine: 'lf', - singleQuote: true, - trailingComma: 'es5', - printWidth: 88, -}; diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 000000000..c423a7056 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,6 @@ +{ + "endOfLine": "lf", + "singleQuote": true, + "trailingComma": "es5", + "printWidth": 88 +}