Closed jandresampaio closed 1 year ago
Can you add files
https://github.com/webpack-contrib/eslint-webpack-plugin#files?
Can you add
files
https://github.com/webpack-contrib/eslint-webpack-plugin#files?
@alexander-akait like this?
new ESLintPlugin({
baseConfig: options,
files: [
"./src/**/*.(json|tsx|ts)",
]
}),
It gives the same result
So this is my mistake, I was testing with a json that was not being used in the build, i.e, imported inside some other file. I guess it's not possible to check for json files outside the build then...
Yeah, we check files only related to build
Documentation Is:
Please Explain in Detail...
Plugin is working perfectly for
js
andts
files but it's not validatingjson
files. If we useeslint src --ext js,ts,tsx,json
is works as expected but we are using theeslint-webpack-plugin
to check the warnings in the same terminal window as the compiler.Not sure if this is expected and what is the recommended configuration to achieve this:
My current webpack config file:
and eslintrc.json file:
Your Proposal for Changes
It should validate json files.