-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some files are ignored #120
Comments
I have the same problem. All of my Running eslint directly via CLI command reports all errors without exceptions. |
@NZhuravlev thanks for reporting and @rklos thanks for example. For some reason the webpack is not included the @alexander-akait, @jsg2021 any idea? |
Oh, |
An option to lint files out of graphic should be interesting |
At that point, you should just use eslint directly and run it on your files via cli/watch... kinda out of scope for this plugin wouldn't you think? |
Yeah, then it's just easier to lint everything with |
Having an option to lint some files out of graph, ino case of . |
Honestly - yes, I think even more linting and formatting are out of scope bundling, we have these package only because it is still popular, but I don't want to sacrifice perf, just setup CI and run eslint/stylelint/prettier/etc on CI before merge, just my opinion |
It would be nice to have them in the scope of the plugin. We have a case where our spec files are in different directory than the src files but would like to have spec files follow consistent styling too. Eslint can be directly used to lint multiple directories (src, spec or any other directories) but that would mean that we'll need to connect the eslint failures to fail the webpack compilation too somehow, which I do not know how to do it, at the time of writing. This plugin brings the benefit of failing the webpack compilation (which was one of the big reason it was chosen for our project) in case of any linting errors and developers are then enforced by the means of errors to fix them which brings consistent styling, which means less reviewer efforts on the code reviews. We needed it before code changes could go to CI to save the turn around time. |
Expected Behavior
Errors in all the specified folders should be reported.
Actual Behavior
With either
or
errors in the api-examples (one of the folders in the project) are not getting reported.
Code
eslintignore:
.eslintrc.js:
tsconfig.eslint.json:
How Do We Reproduce?
If I were to guess it's about setting up a ts project with similar rules. api-examples folder files here are not used by webpack while compiling - it might be a problem. The documentation says it's possible to lint files outside the compiler context.
The text was updated successfully, but these errors were encountered: