Skip to content

Commit

Permalink
Upgrade deps and cjs to esm
Browse files Browse the repository at this point in the history
  • Loading branch information
binarymist committed Feb 14, 2022
1 parent c6ad132 commit 49989e9
Show file tree
Hide file tree
Showing 9 changed files with 8,864 additions and 2,562 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.js → .eslintrc.cjs
Expand Up @@ -27,7 +27,10 @@ module.exports = {
// enforce consistent line breaks inside function parentheses
// https://eslint.org/docs/rules/function-paren-newline
'function-paren-newline': ['error', 'multiline'],
'import/no-unresolved': ['error', { commonjs: true }],
'import/no-unresolved': ['error', { amd: true }],
// Used in order to supress the errors in the use of appending file extensions to the import statement for local modules
// Which is required in order to upgrade from CJS to ESM. At time of upgrade file extensions have to be provided in import statements.
'import/extensions': ['error', { 'js': 'ignorePackages' }],
'no-unused-expressions': ['error', { allowShortCircuit: true, allowTernary: true }],
'object-curly-newline': ['error', { multiline: true }],
'no-multiple-empty-lines': ['error', { max: 2, maxBOF: 0, maxEOF: 1 }]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Expand Up @@ -28,7 +28,7 @@ jobs:

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

steps:
Expand Down
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

0 comments on commit 49989e9

Please sign in to comment.