Comments (9)
@ricardogobbosouza, it's the globs. Since the my files
option didn't contain glob paths, processModule
isn't matching them. That's a breaking change, I think.
Also, in the previous version, running watch with lintDirtyModulesOnly
would only run the linter after files were changed. Now it lints the whole graph on the first run -- that makes the initial build MUCH slower, killing much of lintDirtyModulesOnly
's value.
from eslint-webpack-plugin.
Hi @jrnail23
Resolved v2.3.0
If the problem persists, reopen this
from eslint-webpack-plugin.
@ricardogobbosouza, I just tried v2.2.0, and it doesn't seem to be raising eslint warnings at all when using lintDirtyModulesOnly
in watch
mode.
I'm using the same config as above:
new ESLintWebpackPlugin({
files: ['src/client', 'src/shared'],
extensions: ['js', 'jsx'],
cache: true,
lintDirtyModulesOnly: true,
}),
from eslint-webpack-plugin.
I have same problem on windows with [email protected]
from eslint-webpack-plugin.
from eslint-webpack-plugin.
@ricardogobbosouza trying it now. Thanks for the heads up. I'll let you know what happens.
from eslint-webpack-plugin.
@ricardogobbosouza, to be clear, that's a bad thing. It's not outputting eslint errors or warnings when I add them to a file in watch mode.
from eslint-webpack-plugin.
@jrnail23
If you can share the repository it would be of great help
from eslint-webpack-plugin.
@jrnail23 Remembering that only files imported on the graph will be linted, at least it is the expected behavior.
Ex:
src/index.js
import('./lint')
src/lint.js
// this file will linted
const foo = 'bar'
src/no-lint.js
// this file will not linted, why not being used
webpack.config.js
const ESLintPlugin = require('eslint-webpack-plugin');
module.exports = {
plugins: [new ESLintPlugin({lintDirtyModulesOnly: true})],
};
from eslint-webpack-plugin.
Related Issues (20)
- Error with eslint error detection HOT 1
- in webpack-dev-server, rule `@typescript-eslint/no-unsafe-assignment` throws an error when an imported type changed HOT 5
- Error if package.json is not in parent directory to the linted code HOT 2
- Build error in ci tool. HOT 4
- Lint Errors Kill Webpack Watch HOT 2
- Add support to the new eslint.config.js format HOT 6
- Checking/validating json files HOT 4
- v4.0.0 much slower than v3.2.0, potentially due to linting cached webpack files 🤷 HOT 3
- Performance: 4.0 Hot Module Replacement build very slow HOT 5
- Enable `cache` eslint HOT 4
- Can Nuxt2 use eslint-webpack-plugin? HOT 2
- lintDirtyModulesOnly relies on a populated cache, and lints all files if cache is not present HOT 2
- Angular 15+16 compile gets stuck at "70% sealing finish module graph ESLintWebpackPlugin_1" HOT 5
- detect new file issues HOT 2
- TS files that contain only typings are not linted HOT 1
- Run ESLint only on modified files HOT 1
- Add new option `flatConfigFile` HOT 2
- Update for ESLint 9 HOT 2
- 'extensions' has been removed HOT 3
- Update the eslint version to 9 HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eslint-webpack-plugin.