Skip to content

Commit

Permalink
build: fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
AruSeito committed Nov 29, 2022
1 parent d2f55d8 commit 67ad293
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 17 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/*.svg
4 changes: 2 additions & 2 deletions apps/builder/src/page/User/Login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
import { currentUserActions } from "@/redux/currentUser/currentUserSlice"
import { CurrentUser } from "@/redux/currentUser/currentUserState"
import { setLocalStorage } from "@/utils/storage"
import { LocationState, LoginFields } from "./interface"
import { LoginFields } from "./interface"

export const Login: FC = () => {
const [submitLoading, setSubmitLoading] = useState(false)
Expand Down Expand Up @@ -62,7 +62,7 @@ export const Login: FC = () => {
email: res.data.email,
}),
)
navigate((location.state as LocationState)?.from?.pathname ?? "/", {
navigate(location.state?.from?.pathname ?? "/", {
replace: true,
})
message.success({
Expand Down
14 changes: 0 additions & 14 deletions apps/builder/src/page/User/Login/interface.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
import { Location } from "history"

export interface LoginFields {
email: string
password: string
}

export interface LoginResult {
userId: string
nickname: string
email: string
createdAt: string
language: string
}

export interface LocationState {
from?: Location
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"build-self": "NODE_OPTIONS=--max-old-space-size=10240 turbo run build-self",
"prepare": "husky install",
"format": "prettier --write \"apps/**/*.{ts,tsx}\"",
"lint": "eslint apps/**/src/ --ext .ts,.tsx --config .eslintrc.js"
"lint": "eslint \"apps/**/src/**\" --ext \".ts,.tsx\" --config \".eslintrc.js\""
},
"devDependencies": {
"@commitlint/cli": "^17.0.3",
Expand Down

0 comments on commit 67ad293

Please sign in to comment.