build: switch default to ESM
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 27 Dec 2023 12:38:39 +0000 (13:38 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 27 Dec 2023 12:38:39 +0000 (13:38 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
.eslintrc.cjs [moved from .eslintrc.js with 100% similarity]
.lintstagedrc.js
commitlint.config.js
package.json
pnpm-lock.yaml

similarity index 100%
rename from .eslintrc.js
rename to .eslintrc.cjs
index 28d332e567aec40a4221ce4a069437282d56ee2a..1c4c8e46533e262ec75b2b665b4f03914d780784 100644 (file)
@@ -1,4 +1,4 @@
-module.exports = {
+export default {
   '*.{js,jsx,cjs,mjs}': [
     'biome format --write',
     'standard --fix',
index 4fedde6daf0b816025b8d16a7b8af9e06b33bec5..7c4ff4d984107759ade90b600caeca9637f75883 100644 (file)
@@ -1 +1 @@
-module.exports = { extends: ['@commitlint/config-conventional'] }
+export default { extends: ['@commitlint/config-conventional'] }
index 079d520e4f02af57de8f379a151adb008cffcb71..fcdbe6a945ee2d780b08cf8651b00bf7853a6232 100644 (file)
@@ -7,9 +7,10 @@
     "node": ">=16.x",
     "pnpm": ">=8.6.0"
   },
+  "type": "module",
   "volta": {
     "node": "20.10.0",
-    "pnpm": "8.12.0"
+    "pnpm": "8.13.1"
   },
   "repository": {
     "type": "git",
@@ -74,7 +75,7 @@
     "@commitlint/config-conventional": "^18.4.3",
     "eslint": "^8.56.0",
     "eslint-config-standard": "^17.1.0",
-    "eslint-define-config": "^2.0.0",
+    "eslint-define-config": "^2.1.0",
     "eslint-plugin-import": "^2.29.1",
     "eslint-plugin-jsdoc": "^46.9.1",
     "eslint-plugin-n": "^16.5.0",
index 84d1702f9552f99b493c1ecb8debdce7fa7587fb..5bb5e3125ed420dc44d517f390b73d7af075e8c6 100644 (file)
@@ -50,8 +50,8 @@ devDependencies:
     specifier: ^17.1.0
     version: 17.1.0(eslint-plugin-import@2.29.1)(eslint-plugin-n@16.5.0)(eslint-plugin-promise@6.1.1)(eslint@8.56.0)
   eslint-define-config:
-    specifier: ^2.0.0
-    version: 2.0.0
+    specifier: ^2.1.0
+    version: 2.1.0
   eslint-plugin-import:
     specifier: ^2.29.1
     version: 2.29.1(eslint@8.56.0)
@@ -1170,8 +1170,8 @@ packages:
       eslint-plugin-promise: 6.1.1(eslint@8.56.0)
     dev: true
 
-  /eslint-define-config@2.0.0:
-    resolution: {integrity: sha512-M8ao9mAE35BGwjZeT8ZlsRA42wcJHWS29Avd0qfeclRXig6uTnGXcaO7UxVyFzUA1VJtxeV/acw4KrhJA3JqxQ==}
+  /eslint-define-config@2.1.0:
+    resolution: {integrity: sha512-QUp6pM9pjKEVannNAbSJNeRuYwW3LshejfyBBpjeMGaJjaDUpVps4C6KVR8R7dWZnD3i0synmrE36znjTkJvdQ==}
     engines: {node: '>=18.0.0', npm: '>=9.0.0', pnpm: '>=8.6.0'}
     dev: true