Skip to content

Commit

Permalink
fix(deps): update eslint plugins
Browse files Browse the repository at this point in the history
fix #19
  • Loading branch information
azu committed Dec 21, 2023
1 parent ae45ece commit fdaf929
Show file tree
Hide file tree
Showing 4 changed files with 159 additions and 42 deletions.
5 changes: 3 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = {
"file-extension-in-import-ts/file-extension-in-import-ts": [
"error",
"always",
{ extMapping: { ".ts": ".js" }, forceIndexFileImport: true },
{ extMapping: { ".ts": ".js" } },
],
// https://github.com/mysticatea/eslint-plugin-node
// this plugin does not allow ".js" from ts?
Expand All @@ -41,7 +41,8 @@ module.exports = {
"node/file-extension-in-import": "error",
// https://github.com/import-js/eslint-plugin-import
"import/extensions": "error",
"import/no-unresolved": "error",
// conflict with file-extension-in-import-ts
'import/no-unresolved': ['error', { ignore: [ '\\.js$' ] }],
"import/no-useless-path-segments": "error",
"import/no-extraneous-dependencies": "error",
"import/no-commonjs": "error",
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: test
on: [push, pull_request]
on: [ push, pull_request ]
permissions:
contents: read
jobs:
Expand All @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16, 18]
node-version: [ 18,20 ]
steps:
- name: checkout
uses: actions/checkout@v4
Expand Down
184 changes: 150 additions & 34 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@
},
"packageManager": "[email protected]",
"dependencies": {
"@typescript-eslint/parser": "^6.14.0",
"eslint": "^8.44.0",
"@typescript-eslint/parser": "^6.15.0",
"eslint": "^8.56.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-file-extension-in-import-ts": "^1.0.2",
"eslint-plugin-file-extension-in-import-ts": "^2.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-unicorn": "^49.0.0",
"eslint-plugin-unicorn": "^50.0.1",
"execa": "^8.0.1"
}
}

0 comments on commit fdaf929

Please sign in to comment.