From b094653cb9588765441f7aab17d934c933274b4b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 15 Aug 2023 16:09:23 +0200 Subject: [PATCH] build: fix lint-staged configuration MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .lintstagedrc.js | 3 ++- .prettierignore | 1 + package.json | 1 + pnpm-lock.yaml | 9 +++++++++ 4 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .prettierignore diff --git a/.lintstagedrc.js b/.lintstagedrc.js index eddb147..d0c795d 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -4,5 +4,6 @@ module.exports = { 'standard --fix', 'eslint --cache --fix' ], - '!(.vscode/**)*.{json,md,yml,yaml}': ['rome format --write'] + '!(.vscode/**)*.json': ['rome format --write'], + '*.{md,yml,yaml}': ['prettier --cache --write'] } diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..bd5535a --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +pnpm-lock.yaml diff --git a/package.json b/package.json index 1c8f0db..1a7ae63 100644 --- a/package.json +++ b/package.json @@ -73,6 +73,7 @@ "eslint-plugin-promise": "^6.1.1", "husky": "^8.0.3", "lint-staged": "^14.0.0", + "prettier": "^3.0.1", "rome": "^12.1.3", "standard": "^17.1.0", "typescript": "^5.1.6" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 494b33e..481f620 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -61,6 +61,9 @@ devDependencies: lint-staged: specifier: ^14.0.0 version: 14.0.0 + prettier: + specifier: ^3.0.1 + version: 3.0.1 rome: specifier: ^12.1.3 version: 12.1.3 @@ -1937,6 +1940,12 @@ packages: engines: {node: '>= 0.8.0'} dev: true + /prettier@3.0.1: + resolution: {integrity: sha512-fcOWSnnpCrovBsmFZIGIy9UqK2FaI7Hqax+DIO0A9UxeVoY4iweyaFjS5TavZN97Hfehph0nhsZnjlVKzEQSrQ==} + engines: {node: '>=14'} + hasBin: true + dev: true + /prop-types@15.8.1: resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==} dependencies: -- 2.34.1