Skip to content

Commit 438937e

Browse files
committed
AC-14314::[AdobeDocs Approval] Dev doc update after upgrading eslint version to 9
1 parent ffad28e commit 438937e

File tree

1 file changed

+24
-1
lines changed
  • src/pages/coding-standards

1 file changed

+24
-1
lines changed

src/pages/coding-standards/js.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,4 +361,27 @@ var foo = 'bar',
361361

362362
There is a set of custom Eslint rules to ensure code compatibility with the latest versions of third-party libraries.
363363

364-
These custom rules are included using the `rulePaths` setting in the [Eslint Grunt configuration](https://github.com/magento/magento2/blob/2.4/dev/tools/grunt/configs/eslint.json).
364+
In previous version of eslint these custom rules were included using the `rulePaths` setting in the [Eslint Grunt configuration](https://github.com/magento/magento2/blob/2.4/dev/tools/grunt/configs/eslint.json).
365+
366+
However, since ESLint 9 has deprecated `rulePaths`, the configuration has been updated accordingly.
367+
368+
This document outlines the necessary changes to implement custom Eslint rules.
369+
370+
```json
371+
{
372+
"file": {
373+
"options": {
374+
"overrideConfigFile": "vendor/magento/magento-coding-standard/eslint/eslint.config.mjs",
375+
"useEslintrc": false
376+
}
377+
},
378+
"test": {
379+
"options": {
380+
"overrideConfigFile": "vendor/magento/magento-coding-standard/eslint/eslint.config.mjs",
381+
"outputFile": "dev/tests/static/eslint-error-report.xml",
382+
"format": "junit",
383+
"quiet": true
384+
}
385+
}
386+
}
387+
```

0 commit comments

Comments
 (0)