From: Jérôme Benoit Date: Wed, 27 Dec 2023 12:38:39 +0000 (+0100) Subject: build: switch default to ESM X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=3efb941cb93ac6a12fa4c23d183177e96c40374b;p=benchmarks-js.git build: switch default to ESM Signed-off-by: Jérôme Benoit --- diff --git a/.eslintrc.js b/.eslintrc.cjs similarity index 100% rename from .eslintrc.js rename to .eslintrc.cjs diff --git a/.lintstagedrc.js b/.lintstagedrc.js index 28d332e..1c4c8e4 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -1,4 +1,4 @@ -module.exports = { +export default { '*.{js,jsx,cjs,mjs}': [ 'biome format --write', 'standard --fix', diff --git a/commitlint.config.js b/commitlint.config.js index 4fedde6..7c4ff4d 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1 +1 @@ -module.exports = { extends: ['@commitlint/config-conventional'] } +export default { extends: ['@commitlint/config-conventional'] } diff --git a/package.json b/package.json index 079d520..fcdbe6a 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 84d1702..5bb5e31 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -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