Skip to content

Commit

Permalink
docs: Add eslint-usage section in DEVELOPMENT.md (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutoshgautams authored Jan 30, 2025
1 parent 9b3b286 commit bcbb53e
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,25 @@ npm run lint:phpstan

#### ESLint

@todo - Add ESLint configuration
This project uses [ESLint](https://eslint.org) through `@wordpress/scripts` and `@wordpress/eslint-plugin` for JavaScript linting, following WordPress coding standards and best practices.

You can run ESLint on JavaScript files using:

```bash
npm run lint:js
```

To automatically fix JavaScript linting issues:

```bash
npm run lint:js:fix
```

You can also generate a detailed JSON report of linting issues:

```bash
npm run lint:js:report
```

### Testing

Expand Down

0 comments on commit bcbb53e

Please sign in to comment.