Skip to content
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

ESlint output no errors or warnings when directory path includes square brackets #93

Closed
ZiiMs opened this issue Mar 27, 2021 · 2 comments · Fixed by #94
Closed

ESlint output no errors or warnings when directory path includes square brackets #93

ZiiMs opened this issue Mar 27, 2021 · 2 comments · Fixed by #94
Labels
bug Something isn't working

Comments

@ZiiMs
Copy link

ZiiMs commented Mar 27, 2021

  • Operating System: Windows 10
  • Node Version: v14.16.0
  • NPM Version: 7.6.3
  • webpack Version: 5.28.0
  • eslint-webpack-plugin Version: 2.5.3

Expected Behavior

Show errors and warnings

Actual Behavior

Nothing happens

Code

Link to code to test

How Do We Reproduce?

The code I provided above should suffice, has two errors and a warning in src/containers/App/index.js

All you have to do is put the project in a folder that's path includes square brackets E.G

S:\Servers\CTest\txData\CFXDefault_2A8AD9.base\resources\ [ziim] \ziim-progress\progress.client\html

If I drag my project one folder down from [ziim] it has linting, drag it one folder up it breaks again. Tried it with multiple projects.

@ZiiMs ZiiMs changed the title ESlint output not errors or warnings when directory path includes square brackets ESlint output no errors or warnings when directory path includes square brackets Mar 27, 2021
@ricardogobbosouza
Copy link
Collaborator

Hi @ZiiMs
Update your context

new ESLintPlugin({
  context: '../'
}),

@ZiiMs
Copy link
Author

ZiiMs commented Mar 28, 2021

Hi @ZiiMs
Update your context

new ESLintPlugin({
  context: '../'
}),

Still not linting with context added.

Heres an example, both exact same code other than devServer port. Only different is path.

Gif:
Gif of linting not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants