Skip to content

Commit 49989e9

Browse files
committed
Upgrade deps and cjs to esm
1 parent c6ad132 commit 49989e9

File tree

9 files changed

+8864
-2562
lines changed

9 files changed

+8864
-2562
lines changed

.eslintrc.js renamed to .eslintrc.cjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ module.exports = {
2727
// enforce consistent line breaks inside function parentheses
2828
// https://eslint.org/docs/rules/function-paren-newline
2929
'function-paren-newline': ['error', 'multiline'],
30-
'import/no-unresolved': ['error', { commonjs: true }],
30+
'import/no-unresolved': ['error', { amd: true }],
31+
// Used in order to supress the errors in the use of appending file extensions to the import statement for local modules
32+
// Which is required in order to upgrade from CJS to ESM. At time of upgrade file extensions have to be provided in import statements.
33+
'import/extensions': ['error', { 'js': 'ignorePackages' }],
3134
'no-unused-expressions': ['error', { allowShortCircuit: true, allowTernary: true }],
3235
'object-curly-newline': ['error', { multiline: true }],
3336
'no-multiple-empty-lines': ['error', { max: 2, maxBOF: 0, maxEOF: 1 }]

.github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
strategy:
3030
matrix:
31-
node-version: [14.x, 16.x]
31+
node-version: [16.x, 17.x]
3232
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
3333

3434
steps:

.husky/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)