Skip to content

Commit 884efc6

Browse files
committed
style: fix linting errors
1 parent 687b37e commit 884efc6

File tree

8 files changed

+113
-103
lines changed

8 files changed

+113
-103
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
22
name: Report BUG
33
about: If you want support we recommend rather joining the Discord chat at https://discord.gg/CdpmRhQ.
4-
title: "[BUG]"
4+
title: '[BUG]'
55
labels: bug
66
assignees: 'christianalfoni'
7-
87
---

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copilot Instructions for Overmind
22

3-
This project is the Overmind monorepo which contains [Overmind](<https://overmindjs.org/>) and its related packages. The monorepo is managed using repo-cooker.
3+
This project is the Overmind monorepo which contains [Overmind](https://overmindjs.org/) and its related packages. The monorepo is managed using repo-cooker.
44
Overmind is a state and side-effects management library for JavaScript and TypeScript applications.
55

66
## Project Goals

packages/overmind-devtools-client/README.md

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
There are three packages related to `overmind-devtools` experience:
66

7-
* [overmind-devtools-client](../overmind-devtools-client/) - "core" package that provides UI ("web client")
8-
* [overmind-devtools](../overmind-devtools/README.md) - standalone, electron application
9-
* [overmind-devtools-vscode](../overmind-devtools-vscode/) - VSCode extension
7+
- [overmind-devtools-client](../overmind-devtools-client/) - "core" package that provides UI ("web client")
8+
- [overmind-devtools](../overmind-devtools/README.md) - standalone, electron application
9+
- [overmind-devtools-vscode](../overmind-devtools-vscode/) - VSCode extension
1010

1111
`overmind-devtools-client` is a core application that can be hosted by available "hosts": `overmind-devtools` and `overmind-devtools-vscode`.
1212

@@ -32,8 +32,8 @@ npm start
3232

3333
This starts:
3434

35-
* The WebSocket server on port 3031 (for communication with Overmind apps)
36-
* The web client at <http://localhost:8080> (or another port if 8080 is in use)
35+
- The WebSocket server on port 3031 (for communication with Overmind apps)
36+
- The web client at <http://localhost:8080> (or another port if 8080 is in use)
3737

3838
### Connecting Your Application
3939

@@ -63,31 +63,31 @@ The Overmind DevTools provide several powerful features:
6363

6464
#### 1. State Tab
6565

66-
* View and inspect your entire application state
67-
* Expand/collapse nested objects and arrays
68-
* Edit values directly in the DevTools
66+
- View and inspect your entire application state
67+
- Expand/collapse nested objects and arrays
68+
- Edit values directly in the DevTools
6969

7070
#### 2. Actions Tab
7171

72-
* See all executed actions in chronological order
73-
* Inspect payloads, mutations, and effects for each action
74-
* Review sequences of operations within actions
72+
- See all executed actions in chronological order
73+
- Inspect payloads, mutations, and effects for each action
74+
- Review sequences of operations within actions
7575

7676
#### 3. Components Tab
7777

78-
* Track React components using Overmind state
79-
* Monitor component update counts and path dependencies
80-
* Identify performance bottlenecks from unnecessary renders
78+
- Track React components using Overmind state
79+
- Monitor component update counts and path dependencies
80+
- Identify performance bottlenecks from unnecessary renders
8181

8282
#### 4. Console Tab
8383

84-
* Execute actions directly from the DevTools
85-
* Try different payloads without modifying application code
84+
- Execute actions directly from the DevTools
85+
- Try different payloads without modifying application code
8686

8787
#### 5. Flushes Tab
8888

89-
* Track state mutations and their effects on components
90-
* See which components updated after each state change
89+
- Track state mutations and their effects on components
90+
- See which components updated after each state change
9191

9292
### Changing the Port
9393

@@ -119,18 +119,21 @@ The port is displayed in the DevTools UI, under the "Devtool port" section in th
119119
If you're having connection issues:
120120

121121
1. **Cannot connect to WebSocket server**
122-
* Check if the server is running (you should see "Overmind DevTools WebSocket server running on port 3031" in the console)
123-
* Verify no other application is using the port
124-
* Try specifying a different port using the OV_DEV_PORT environment variable
122+
123+
- Check if the server is running (you should see "Overmind DevTools WebSocket server running on port 3031" in the console)
124+
- Verify no other application is using the port
125+
- Try specifying a different port using the OV_DEV_PORT environment variable
125126

126127
2. **No data appears in DevTools**
127-
* Ensure your Overmind app is configured with the correct devtools option
128-
* Check browser console for any errors
129-
* Make sure the port in your app configuration matches the port used by the DevTools server
128+
129+
- Ensure your Overmind app is configured with the correct devtools option
130+
- Check browser console for any errors
131+
- Make sure the port in your app configuration matches the port used by the DevTools server
130132

131133
3. **Components not appearing**
132-
* Make sure you're using the overmind-react package correctly
133-
* Verify components are consuming state via useAppState()
134+
135+
- Make sure you're using the overmind-react package correctly
136+
- Verify components are consuming state via useAppState()
134137

135138
## Local Development
136139

packages/overmind-devtools-client/src/types.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
declare global {
22
interface Window {
33
__OVERMIND_DEVTOOLS_BACKEND_PORT__: string
4-
4+
55
// Electron environment
66
process?: {
77
type: string
@@ -12,7 +12,7 @@ declare global {
1212
[key: string]: any
1313
}
1414
require?: (module: string) => any
15-
15+
1616
// VSCode environment
1717
vscode?: any
1818
acquireVsCodeApi?: () => any

packages/overmind-devtools-vscode/vsc-extension-quickstart.md

Lines changed: 57 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -2,91 +2,93 @@
22

33
## What's in the folder
44

5-
* This folder contains all of the files necessary for your extension.
6-
* `package.json` - this is the manifest file in which you declare your extension and command.
7-
* The sample plugin registers a command and defines its title and command name. With this information VS Code can show the command in the command palette. It doesn’t yet need to load the plugin.
8-
* `src/extension.ts` - this is the main file where you will provide the implementation of your command.
9-
* The file exports one function, `activate`, which is called the very first time your extension is activated (in this case by executing the command). Inside the `activate` function we call `registerCommand`.
10-
* We pass the function containing the implementation of the command as the second parameter to `registerCommand`.
5+
- This folder contains all of the files necessary for your extension.
6+
- `package.json` - this is the manifest file in which you declare your extension and command.
7+
- The sample plugin registers a command and defines its title and command name. With this information VS Code can show the command in the command palette. It doesn’t yet need to load the plugin.
8+
- `src/extension.ts` - this is the main file where you will provide the implementation of your command.
9+
- The file exports one function, `activate`, which is called the very first time your extension is activated (in this case by executing the command). Inside the `activate` function we call `registerCommand`.
10+
- We pass the function containing the implementation of the command as the second parameter to `registerCommand`.
1111

1212
## Get up and running straight away
1313

14-
* Press `F5` to open a new window with your extension loaded.
15-
* Run your command from the command palette by pressing (`Ctrl+Shift+P` or `Cmd+Shift+P` on Mac) and typing `Hello World`.
16-
* Set breakpoints in your code inside `src/extension.ts` to debug your extension.
17-
* Find output from your extension in the debug console.
14+
- Press `F5` to open a new window with your extension loaded.
15+
- Run your command from the command palette by pressing (`Ctrl+Shift+P` or `Cmd+Shift+P` on Mac) and typing `Hello World`.
16+
- Set breakpoints in your code inside `src/extension.ts` to debug your extension.
17+
- Find output from your extension in the debug console.
1818

1919
## Make changes
2020

21-
* You can relaunch the extension from the debug toolbar after changing code in `src/extension.ts`.
22-
* You can also reload (`Ctrl+R` or `Cmd+R` on Mac) the VS Code window with your extension to load your changes.
21+
- You can relaunch the extension from the debug toolbar after changing code in `src/extension.ts`.
22+
- You can also reload (`Ctrl+R` or `Cmd+R` on Mac) the VS Code window with your extension to load your changes.
2323

2424
## Explore the API
2525

26-
* You can open the full set of our API when you open the file `node_modules/vscode/vscode.d.ts`.
26+
- You can open the full set of our API when you open the file `node_modules/vscode/vscode.d.ts`.
2727

2828
## Run tests
2929

30-
* Open the debug viewlet (`Ctrl+Shift+D` or `Cmd+Shift+D` on Mac) and from the launch configuration dropdown pick `Extension Tests`.
31-
* Press `F5` to run the tests in a new window with your extension loaded.
32-
* See the output of the test result in the debug console.
33-
* Make changes to `test/extension.test.ts` or create new test files inside the `test` folder.
34-
* By convention, the test runner will only consider files matching the name pattern `**.test.ts`.
35-
* You can create folders inside the `test` folder to structure your tests any way you want.
30+
- Open the debug viewlet (`Ctrl+Shift+D` or `Cmd+Shift+D` on Mac) and from the launch configuration dropdown pick `Extension Tests`.
31+
- Press `F5` to run the tests in a new window with your extension loaded.
32+
- See the output of the test result in the debug console.
33+
- Make changes to `test/extension.test.ts` or create new test files inside the `test` folder.
34+
- By convention, the test runner will only consider files matching the name pattern `**.test.ts`.
35+
- You can create folders inside the `test` folder to structure your tests any way you want.
3636

3737
## Go further
3838

39-
* Reduce the extension size and improve the startup time by [bundling your extension](https://code.visualstudio.com/api/working-with-extensions/testing-extension).
40-
* [Publish your extension](https://code.visualstudio.com/api/working-with-extensions/publishing-extension) on the VSCode extension marketplace.
41-
* Automate builds by setting up [Continuous Integration](https://code.visualstudio.com/api/working-with-extensions/continuous-integration).
39+
- Reduce the extension size and improve the startup time by [bundling your extension](https://code.visualstudio.com/api/working-with-extensions/testing-extension).
40+
- [Publish your extension](https://code.visualstudio.com/api/working-with-extensions/publishing-extension) on the VSCode extension marketplace.
41+
- Automate builds by setting up [Continuous Integration](https://code.visualstudio.com/api/working-with-extensions/continuous-integration).
4242

4343
## Local Development
4444

4545
### Prerequisites
4646

47-
* Node.js 14+ installed
48-
* VS Code installed
49-
* Overmind project for testing
47+
- Node.js 14+ installed
48+
- VS Code installed
49+
- Overmind project for testing
5050

5151
### Setup for Local Development
5252

5353
1. First, build the DevTools client:
5454

55-
```bash
56-
# Navigate to the client package
57-
cd packages/overmind-devtools-client
55+
```bash
56+
# Navigate to the client package
57+
cd packages/overmind-devtools-client
5858

59-
# Build the client
60-
npm run build
61-
```
59+
# Build the client
60+
npm run build
61+
```
6262

6363
2. Build the VSCode extension:
6464

65-
```bash
66-
# Navigate to the extension directory
67-
cd ../overmind-devtools-vscode
65+
```bash
66+
# Navigate to the extension directory
67+
cd ../overmind-devtools-vscode
6868

69-
# Build the extension
70-
npm run build
71-
npm run compile
72-
```
69+
# Build the extension
70+
npm run build
71+
npm run compile
72+
```
7373

7474
### Running the Extension Locally
7575

7676
1. Open the extension in VS Code:
7777

78-
```bash
79-
# Open VSCode in this directory
80-
code .
81-
```
78+
```bash
79+
# Open VSCode in this directory
80+
code .
81+
```
8282

8383
2. Open `extension.ts` in the editor and press `F5` to start debugging
84-
* Select `VS Code Extension Development` if prompted
85-
* This will open a new VS Code window with the extension loaded
84+
85+
- Select `VS Code Extension Development` if prompted
86+
- This will open a new VS Code window with the extension loaded
8687

8788
3. In the Extension Development Host window:
88-
* Press `Ctrl+Shift+P` (or `Cmd+Shift+P` on macOS)
89-
* Type and select `Overmind: Start DevTools`
89+
90+
- Press `Ctrl+Shift+P` (or `Cmd+Shift+P` on macOS)
91+
- Type and select `Overmind: Start DevTools`
9092

9193
4. The Overmind DevTools should appear in a new tab within VS Code
9294

@@ -95,20 +97,20 @@
9597
1. Open an Overmind project in VS Code
9698
2. Update your Overmind initialization to connect to the extension:
9799

98-
```js
99-
const overmind = createOvermind(config, {
100-
devtools: true // Will connect to default port 3031
101-
})
102-
```
100+
```js
101+
const overmind = createOvermind(config, {
102+
devtools: true // Will connect to default port 3031
103+
})
104+
```
103105

104106
3. Run your application and it should connect to the DevTools
105107

106108
### Debugging Tips
107109

108-
* You can set breakpoints in your extension code
109-
* Check the Debug Console for logs
110-
* To reload the extension, press `Ctrl+R` (or `Cmd+R` on macOS) in the Extension Development Host
111-
* Check the Output panel (select "Overmind DevTools" from the dropdown) for extension logs
110+
- You can set breakpoints in your extension code
111+
- Check the Debug Console for logs
112+
- To reload the extension, press `Ctrl+R` (or `Cmd+R` on macOS) in the Extension Development Host
113+
- Check the Output panel (select "Overmind DevTools" from the dropdown) for extension logs
112114

113115
### Packaging the Extension
114116

packages/overmind-devtools-vscode/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const path = require('path')
22

3-
module.exports = (env) => ({
3+
module.exports = () => ({
44
devtool: 'inline-source-map',
55
target: 'node',
66
mode: 'development',

packages/overmind/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# overmind
22

3-
Go to website [www.overmindjs.org](https://www.overmindjs.org)
3+
Go to website [www.overmindjs.org](https://www.overmindjs.org)

0 commit comments

Comments
 (0)