Skip to content

Commit

Permalink
chore: setup eslint (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhu2000 authored Jan 11, 2023
1 parent 0a2da7b commit 8c4a0a3
Show file tree
Hide file tree
Showing 3 changed files with 917 additions and 6 deletions.
10 changes: 10 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
root: true,
ignorePatterns: ["src-tauri/target", "dist"],
rules: {
"@typescript-eslint/consistent-type-imports": "error",
},
};
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
"@types/node": "^18.11.18",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
"@typescript-eslint/eslint-plugin": "^5.48.1",
"@typescript-eslint/parser": "^5.48.1",
"@vitejs/plugin-react": "^3.0.1",
"eslint": "^8.31.0",
"prettier": "^2.8.2",
"typescript": "^4.9.4",
"vite": "^4.0.4"
Expand Down
Loading

0 comments on commit 8c4a0a3

Please sign in to comment.