Closed XeniaSiskaki closed 4 years ago
Adding the following option seems to solve the issue:
eslintPath: 'eslint'
It still seems this is a bug in the loader, as printing the options without providing the eslintPath explicitly, the path points to the path of .eslintrc.json
and of course this doesn't export a CLIEngine
I'm sorry, I was misusing the eslintPath
config option. I've mistaken it with the configFile
Expected Behavior
Lint project without errors
Actual Behavior
The loader fails with the following error:
Code - webpack rule
I've read through some issues saying that the loader wasn't compatible with eslint v6 but they are all now closed so I can only assume that compatibility was added. I tried adding the formatter explicitly with
formatter: require('eslint').CLIEngine.getFormatter('stylish')
but then I get a different error
Let me know if you need more information