Skip to content

Commit

Permalink
More configuration for vite
Browse files Browse the repository at this point in the history
- build in 'build' folder instead of dist, so the deploy task is
  unchanged
- adding eslint (was part of cra, but not natively in vite) and fix
  linter issues
- adding vite checker plugin to run TSC & eslint in live mode
  • Loading branch information
sim51 committed Jan 30, 2024
1 parent 96f0809 commit 73be71c
Show file tree
Hide file tree
Showing 46 changed files with 5,252 additions and 1,488 deletions.
17 changes: 17 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"root": true,
"ignorePatterns": ["**/build/*", "**/dist/*", "**/lib/*"],
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended"
],
"plugins": ["react", "prettier","@typescript-eslint"],
"rules": {
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
"no-extra-boolean-cast": "off"
}
}

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/coverage

# production
/dist
/build

# misc
.DS_Store
Expand Down
Loading

0 comments on commit 73be71c

Please sign in to comment.