Skip to content

Commit 45f1c3e

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

File tree

1 file changed

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

1 file changed

+10
-1
lines changed

src/pages/coding-standards/js.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,4 +384,13 @@ This document outlines the necessary changes to implement custom Eslint rules.
384384
}
385385
}
386386
}
387-
```
387+
```
388+
### Applying custom rules
389+
390+
To add or modify custom rules, update `eslint.config.mjs` in the `magento-coding-standard` repository.
391+
With latest version, configuration has changed from eslint to flat config. We use this https://eslint.org/docs/latest/use/configure/migration-guide as a
392+
reference to migrate the eslint.
393+
394+
This reference doc provides the command and other information in detail. such as to convert old `.eslintrc` file with new config
395+
run below command
396+
`npx @eslint/migrate-config .eslintrc`

0 commit comments

Comments
 (0)