Skip to content

Commit d039291

Browse files
committed
add eslint
1 parent 71288db commit d039291

File tree

4 files changed

+35
-214
lines changed

4 files changed

+35
-214
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,11 @@ This plugin is built using the Obsidian Plugin API.
4444
2. Run `npm install`
4545
3. Run `npm run dev` to start compilation in watch mode
4646
4. Run `npm run build` to build the plugin
47+
5. Run `npm run lint` to check for linting errors
4748

4849
### 📁 Manual Installation
4950

50-
1. Create a new folder `status-bar-pomodoro` in your vault's `.obsidian/plugins` folder
51+
1. Create a new folder `obsidian-pomobar` in your vault's `.obsidian/plugins` folder
5152
2. Copy `main.js`, `manifest.json`, and `styles.css` to the new folder
5253
3. Reload Obsidian to load the plugin
5354

main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ export default class PomodoroPlugin extends Plugin {
1212
settings: PomodoroSettings;
1313
statusBarItem: HTMLElement;
1414
timer: number | null = null;
15-
remainingTime: number = 0;
16-
isRunning: boolean = false;
15+
remainingTime = 0;
16+
isRunning = false;
1717
durationCycle: number[] = [25, 15, 5]; // Array to hold the durations
18-
currentDurationIndex: number = 0; // Index to track the current duration
18+
currentDurationIndex = 0; // Index to track the current duration
1919

2020
async onload() {
2121
await this.loadSettings();

0 commit comments

Comments
 (0)