Skip to content

Commit 5463926

Browse files
committed
feat: update dependencies that needed to switch to ESM syntax
Some packages were updated to versions that now use ECMAScript modules, so this repo was updated to use ES modules using Node.js built-in support. Update was done using the great guide from @sindresorhus: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
1 parent 9e5880e commit 5463926

17 files changed

+10737
-20148
lines changed

.eslintrc.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,29 @@
11
{
22
"extends": ["airbnb-base", "prettier", "plugin:node/recommended"],
33
"plugins": ["prettier"],
4+
"parserOptions": {
5+
"ecmaVersion": 2020,
6+
"sourceType": "module"
7+
},
8+
"settings": {
9+
"import/resolver": {
10+
"node": {
11+
"extensions": [".js"]
12+
}
13+
}
14+
},
415
"rules": {
516
"prettier/prettier": "error",
617
"no-console": "off",
718
"no-process-exit": "off",
8-
"node/no-unpublished-require": "off"
19+
"node/no-unpublished-require": "off",
20+
"node/no-unpublished-import": "off",
21+
"node/no-unsupported-features/es-syntax": "off",
22+
"import/extensions": [
23+
"error",
24+
{
25+
"js": "always"
26+
}
27+
]
928
}
1029
}
File renamed without changes.

.versionrc.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

.versionrc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"packageFiles": ["package.json"],
3+
"bumpFiles": [
4+
"package.json",
5+
"package-lock.json",
6+
{
7+
"filename": "action.yml",
8+
"updater": "./.github/tasks/actionYamlUpdater.cjs"
9+
}
10+
],
11+
"releaseCommitMessageFormat": "chore(release): publish {{currentTag}} [skip-ci]"
12+
}
File renamed without changes.

jest.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
module.exports = {
1+
export default {
22
// Automatically clear mock calls and instances between every test
33
clearMocks: true,
44
testEnvironment: '@commitlint/test-environment',
5+
transform: {},
56
}

0 commit comments

Comments
 (0)