build: fix lint-staged configuration
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 15 Aug 2023 14:09:23 +0000 (16:09 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 15 Aug 2023 14:09:23 +0000 (16:09 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.lintstagedrc.js
.prettierignore [new file with mode: 0644]
package.json
pnpm-lock.yaml

index eddb147c5b41aeb5811423b139b685e8b952dd10..d0c795d385456319b9d875fd3ebbeb4978e618e6 100644 (file)
@@ -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 (file)
index 0000000..bd5535a
--- /dev/null
@@ -0,0 +1 @@
+pnpm-lock.yaml
index 1c8f0dbe420a52a316f4cd4575fb0fa41fbc3148..1a7ae63639256eb88e6fa7be240a2da953a16dd1 100644 (file)
@@ -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"
index 494b33ebbc6a8ee58e56cd5e27ca6b7444ad4379..481f620b9c070ab49b954ecd48d05834a7eb9dec 100644 (file)
@@ -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: