Skip to content

Commit

Permalink
use eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
hieudoanm committed Apr 16, 2024
1 parent 86402e4 commit 2081e0c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 61 deletions.
43 changes: 0 additions & 43 deletions .eslintignore

This file was deleted.

16 changes: 0 additions & 16 deletions .eslintrc.json

This file was deleted.

7 changes: 7 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const eslint = require('@eslint/js');
const tseslint = require('typescript-eslint');

module.exports = tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended
);
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@
"pino": "8.20.0"
},
"devDependencies": {
"@eslint/js": "9.0.0",
"@types/jest": "29.5.12",
"@types/node": "20.12.7",
"@typescript-eslint/eslint-plugin": "7.7.0",
"@typescript-eslint/parser": "7.7.0",
"@webpack-cli/generators": "3.0.7",
"concurrently": "8.2.2",
"eslint": "9.0.0",
Expand All @@ -41,6 +40,7 @@
"ts-loader": "9.5.1",
"ts-node": "10.9.2",
"typescript": "5.4.5",
"typescript-eslint": "7.7.0",
"webpack": "5.91.0",
"webpack-cli": "5.1.4",
"webpack-dev-server": "5.0.4"
Expand Down
9 changes: 9 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6969,6 +6969,15 @@ type-is@~1.6.18:
media-typer "0.3.0"
mime-types "~2.1.24"

typescript-eslint@7.7.0:
version "7.7.0"
resolved "https://registry.yarnpkg.com/typescript-eslint/-/typescript-eslint-7.7.0.tgz#b755e350dad25bb1e5b3826d11daa973dc0970ac"
integrity sha512-wZZ+7mTQJCn4mGAvzdERtL4vwKGM/mF9cMSMeKUllz3Hgbd1Mdd5L60Q+nJmCio9RB4OyMMr0EX4Ry2Q7jiAyw==
dependencies:
"@typescript-eslint/eslint-plugin" "7.7.0"
"@typescript-eslint/parser" "7.7.0"
"@typescript-eslint/utils" "7.7.0"

typescript@5.4.5:
version "5.4.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611"
Expand Down

0 comments on commit 2081e0c

Please sign in to comment.