webpack-contrib / eslint-webpack-plugin

A ESLint plugin for webpack
MIT License
255 stars 49 forks source link

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

Closed ZiiMs closed 3 years ago

ZiiMs commented 3 years ago

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\CFXDefault2A8AD9.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.

ricardogobbosouza commented 3 years ago

Hi @ZiiMs Update your context

new ESLintPlugin({
  context: '../'
}),
ZiiMs commented 3 years ago

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