Skip to content

Commit

Permalink
feat: update dependencies that needed to switch to ESM syntax
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wagoid committed Jul 7, 2021
1 parent 9e5880e commit 5463926
Show file tree
Hide file tree
Showing 17 changed files with 10,737 additions and 20,148 deletions.
21 changes: 20 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,29 @@
{
"extends": ["airbnb-base", "prettier", "plugin:node/recommended"],
"plugins": ["prettier"],
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js"]
}
}
},
"rules": {
"prettier/prettier": "error",
"no-console": "off",
"no-process-exit": "off",
"node/no-unpublished-require": "off"
"node/no-unpublished-require": "off",
"node/no-unpublished-import": "off",
"node/no-unsupported-features/es-syntax": "off",
"import/extensions": [
"error",
{
"js": "always"
}
]
}
}
File renamed without changes.
File renamed without changes.
15 changes: 0 additions & 15 deletions .versionrc.js

This file was deleted.

12 changes: 12 additions & 0 deletions .versionrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"packageFiles": ["package.json"],
"bumpFiles": [
"package.json",
"package-lock.json",
{
"filename": "action.yml",
"updater": "./.github/tasks/actionYamlUpdater.cjs"
}
],
"releaseCommitMessageFormat": "chore(release): publish {{currentTag}} [skip-ci]"
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = {
export default {
// Automatically clear mock calls and instances between every test
clearMocks: true,
testEnvironment: '@commitlint/test-environment',
transform: {},
}
Loading

0 comments on commit 5463926

Please sign in to comment.