Skip to content

Commit bbe382b

Browse files
committed
AC-1156: Move custom eslint tests to magento-coding-standard repo
- Update README.md with instructions to run Eslint tests
1 parent 1772172 commit bbe382b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,18 @@ Also, verify that the sniffer code itself is written according to the Magento Co
9999
vendor/bin/phpcs --standard=Magento2 Magento2/ --extensions=php
100100
```
101101

102+
### ESLint testing
103+
Prerequisites: [Node.js](https://nodejs.org/) (`^12.22.0`, `^14.17.0`, or `>=16.0.0`).
104+
105+
You need to run the following command to install all the necessary packages described in the `package.json` file:
106+
```bash
107+
npm install
108+
```
109+
110+
After that, you can just execute the ESLint tests simply running:
111+
```bash
112+
npm run eslint -- eslint/rules
113+
```
102114
## License
103115

104116
Each Magento source file included in this distribution is licensed under the OSL-3.0 license.

0 commit comments

Comments
 (0)