Skip to content

Commit

Permalink
use typescript-eslint and fix some lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludea committed Feb 4, 2025
1 parent ef0992b commit 53c4d71
Show file tree
Hide file tree
Showing 9 changed files with 5,160 additions and 104 deletions.
86 changes: 0 additions & 86 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"typescriptreact"
],
"editor.codeActionsOnSave": {
"source.fixAll": true
"source.fixAll": "explicit"
},
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
Expand Down
16 changes: 16 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";

export default tseslint.config(
eslint.configs.recommended,
tseslint.configs.strictTypeChecked,
tseslint.configs.stylisticTypeChecked,
{
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
);
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"src"
],
"scripts": {
"lint": "eslint src/",
"lint": "eslint .",
"lint:fix": "eslint src/ --fix",
"build": "tsc -b",
"start": "tsc -b --watch",
Expand All @@ -54,10 +54,9 @@
"@babel/core": "^7.24.3",
"@babel/preset-env": "^7.24.3",
"@babel/preset-typescript": "^7.13.0",
"@eslint/js": "^9.19.0",
"@mui/icons-material": "^5.15.14",
"@mui/material": "^5.15.14",
"@typescript-eslint/eslint-plugin": "^8.15.0",
"@typescript-eslint/parser": "^7.5.0",
"babel-loader": "^9.1.3",
"babel-plugin-optimize-clsx": "^2.6.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
Expand All @@ -74,6 +73,7 @@
"react": "^19.0.0",
"react-dom": "^18.2.0",
"typescript": "^5.4.3",
"typescript-eslint": "^8.18.1",
"webpack": "^5.91.0"
}
}
Loading

0 comments on commit 53c4d71

Please sign in to comment.