From 14660ab74aca28be5371e00830b2a9c3acba3be7 Mon Sep 17 00:00:00 2001 From: Kiran Jonnalagadda Date: Mon, 1 Jul 2024 11:14:33 +0530 Subject: [PATCH] Downgrade to Prettier stable release --- .pre-commit-config.yaml | 5 ++--- .prettierrc.js | 6 ++++++ 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .prettierrc.js diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2417609c..9e419de5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -89,11 +89,10 @@ repos: args: ['-c', 'pyproject.toml'] additional_dependencies: - 'bandit[toml]' - - 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'] - repo: https://github.com/ducminh-phan/reformat-gherkin rev: v3.0.1 hooks: diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100644 index 00000000..1aed56ad --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1,6 @@ +module.exports = { + endOfLine: 'lf', + singleQuote: true, + trailingComma: 'es5', + printWidth: 88, +};