Skip to content

Commit 01b6d34

Browse files
npm run -> node --run
1 parent ba3c4cd commit 01b6d34

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

guides/eslint.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,13 @@ This will set up `Husky` to run the `lint-staged` command before committing any
118118
You can run ESLint manually by executing the following command in your terminal:
119119

120120
```bash
121-
npm run lint
121+
node --run lint
122122
```
123123

124124
This will check your code for linting errors. If you want to automatically fix any fixable linting errors, you can run:
125125

126126
```bash
127-
npm run lint:fix
127+
node --run lint:fix
128128
```
129129

130130
This will automatically fix any linting errors that can be fixed.
@@ -138,8 +138,8 @@ Add the following section to your `README.md` file to inform other developers ab
138138
```markdown
139139
## Developer commands
140140

141-
- `npm run lint` - Run linting checks.
142-
- `npm run lint:fix` - Fix automatically fixable linting errors.
141+
- `node --run lint` - Run linting checks.
142+
- `node --run lint:fix` - Fix automatically fixable linting errors.
143143
```
144144

145145
### 5 - Add GitHub Actions workflow (optional)

0 commit comments

Comments
 (0)