You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR was merged into the main branch.
Discussion
----------
Drop ESLint integration
Close#1282, see #1267 (comment) for more information.
Removing `Encore.enableEslintPlugin()` from user-land. It will ease Encore maintenance a lot!
Users have three options to migrate:
1. Either re-install `eslint-webpack-plugin` and add the plugin back through `Encore.addPlugin(new EslintPlugin())`
2. **Recommended:** Either use ESLint in a dedicated task, ex: a git hook pre-commit, a dedicated npm script, a step in their CI, ...
3. Use alternative (and faster) tools like Biome.js or Oxlint
Commits
-------
ef70c34 Drop ESLint integration
logger.deprecation('The ESLint integration is now deprecated and will be removed in the next major release. Please use the standalone ESLint CLI instead, or use the ESLint Webpack plugin directly.');
it('Call method with a not supported loader',()=>{
1493
1493
constconfig=createConfig();
1494
1494
1495
1495
expect(()=>{
1496
1496
config.configureLoaderRule('reason');
1497
-
}).to.throw('Loader "reason" is not configurable. Valid loaders are "javascript", "css", "images", "fonts", "sass", "less", "stylus", "vue", "eslint", "typescript", "handlebars", "svelte" and the aliases "js", "ts", "scss".');
1497
+
}).to.throw('Loader "reason" is not configurable. Valid loaders are "javascript", "css", "images", "fonts", "sass", "less", "stylus", "vue", "typescript", "handlebars", "svelte" and the aliases "js", "ts", "scss".');
1498
1498
});
1499
1499
1500
1500
it('Call method with not a valid callback',()=>{
1501
1501
constconfig=createConfig();
1502
1502
1503
1503
expect(()=>{
1504
-
config.configureLoaderRule('eslint');
1504
+
config.configureLoaderRule('javascript');
1505
1505
}).to.throw('Argument 2 to configureLoaderRule() must be a callback function.');
1506
1506
1507
1507
expect(()=>{
1508
-
config.configureLoaderRule('eslint',{});
1508
+
config.configureLoaderRule('javascript',{});
1509
1509
}).to.throw('Argument 2 to configureLoaderRule() must be a callback function.');
0 commit comments