ng schematic does not recognise .eslintrc.cjs files
Which @ngrx/* package(s) are the source of the bug?
eslint-plugin
Minimal reproduction of the bug/regression with instructions
- have any project
- with a
.eslintrc.cjsfile (see: https://eslint.org/docs/latest/user-guide/configuring/configuration-files) - try to install ngrx-eslint-plugin using schematics (https://ngrx.io/guide/eslint-plugin/install)
- eslintrc.json can not be found error:
Minimal reproduction of the bug/regression with instructions
installation via schematic finds eslint config file and proceeds.
Versions of NgRx, Angular, Node, affected browser(s) and operating system(s)
latest angular latest ngrx-eslint-plugin latest eslint latest anything
Other information
No response
I would be willing to submit a PR to fix this issue
- [ ] Yes
- [X] No
Drop your name here if you want to pick this up.
I'm interested in taking this issue.
I've looked around and found the addNgRxESLintPlugin() function in modules\store\schematics\ng-add\index.ts and modules\eslint-plugin\schematics\ng-add\index.ts, which should get updated.
I'm wondering, if all the other formats should also be supported?
@JeromeWirth the JS and JSON variants are good for now. We can always add support for more later when it's needed.