Skip to content

Commit

Permalink
chore(eslint-loader): add deprecation log
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Alliaume committed Sep 3, 2021
1 parent 8c520ea commit 6f0ea94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/WebpackConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,8 @@ class WebpackConfig {
}

enableEslintLoader(eslintLoaderOptionsOrCallback = () => {}, eslintOptions = {}) {
logger.deprecation('Encore.enableEslintLoader() is deprecated, please use Encore.enableEslintPlugin() instead.');

if (this.useEslintPlugin) {
throw new Error('Encore.enableEslintLoader() can not be called when Encore.enableEslintPlugin() has been called.');
}
Expand Down

0 comments on commit 6f0ea94

Please sign in to comment.