Skip to content

Commit

Permalink
feat(build): migrate to esm from cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
aorinevo committed Feb 4, 2024
1 parent 69c9330 commit 8e816b1
Show file tree
Hide file tree
Showing 35 changed files with 1,720 additions and 559 deletions.
13 changes: 7 additions & 6 deletions .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ module.exports = {
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:import/errors',
'plugin:import/warnings',
'prettier',
'plugin:prettier/recommended',
'eslint-config-prettier',
],
parser: '@typescript-eslint/parser',
parserOptions: {
Expand All @@ -30,19 +31,19 @@ module.exports = {
'@typescript-eslint/require-await': 0,
'no-useless-escape': 0,
},
plugins: ['@typescript-eslint', 'import', 'prefer-arrow'],
plugins: ['@typescript-eslint', 'import', 'prefer-arrow', 'prettier'],
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
"typescript": {
"alwaysTryTypes": true
}
},
},
overrides: [
{
files: ['*.ts', '*.tsx'],
parserOptions: {
project: ['tsconfig.cjs.json'],
project: ['tsconfig.esm.json'],
},
},
],
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['18', '20']
node: ['20', '22']
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
File renamed without changes.
Loading

0 comments on commit 8e816b1

Please sign in to comment.