From: Jérôme Benoit Date: Tue, 15 Aug 2023 14:09:23 +0000 (+0200) Subject: build: fix lint-staged configuration X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b094653cb9588765441f7aab17d934c933274b4b;p=benchmarks-js.git build: fix lint-staged configuration Signed-off-by: Jérôme Benoit --- 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: