-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: lint #4
base: main
Are you sure you want to change the base?
fix: lint #4
Changes from 2 commits
99eb7da
faf9935
3a072e7
de3ff17
b2d6e6b
3ea9684
4738884
e4f180c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ const isDev = process.defaultApp | |
let TREM; | ||
|
||
if (isDev) { | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 是確定全域變數的話在 eslint.config.mjs 的 global 裡面設定,不要單獨關規則 |
||
TREM = require('../js/index/constant'); | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
const Station_Wrapper = document.querySelector('.realtime-station'); | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 是確定全域變數的話在 eslint.config.mjs 的 global 裡面設定,不要單獨關規則 |
||
const Station_Location = Station_Wrapper.querySelector('.location'); | ||
const Station_Select_Wrapper = Station_Wrapper.querySelector('.select-wrapper'); | ||
const Station_Local_Items = Station_Select_Wrapper.querySelector('.local'); | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 是確定全域變數的話在 eslint.config.mjs 的 global 裡面設定,不要單獨關規則 |
||
const Station_Select = Station_Select_Wrapper.querySelector('.current-station'); | ||
const Station_Items = Station_Select_Wrapper.querySelector('.station'); | ||
|
||
|
@@ -32,6 +34,7 @@ Location.onclick = function () { | |
LocationSelWrapper.classList.toggle('select-show-big'); | ||
}; | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 是確定全域變數的話在 eslint.config.mjs 的 global 裡面設定,不要單獨關規則 |
||
const addLocationSelectEvent = ( | ||
localItemsContainer, | ||
cityItemsContainer, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 是確定全域變數的話在 eslint.config.mjs 的 global 裡面設定,不要單獨關規則 |
||
let TREM = JSON.parse(localStorage.getItem('constant')); | ||
|
||
const logger = require('../js/core/utils/logger'); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不要關掉這個規則
把 class 換成一般的物件就好