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
feature #574 Proposal to replace #504 (ESLint/Vue) (Kocal)
This PR was squashed before being merged into the master branch.
Discussion
----------
Proposal to replace #504 (ESLint/Vue)
This PR add a second argument to `Encore.enableEslintLoader()` that is used to let the ESLint loader lint `.vue` files:
```js
Encore.enableEslintLoader(() => {}, {
lintVue: true
});
```
Using `lintVue` won't add any ESLint configuration, that the job of the final user (see #504 (comment)).
**EDIT:**
While #657 is being discussed, you can use the following code to:
- let ESLint process your `.vue` files
- prevent the error `Use the latest vue-eslint-parser.`, see #656
```js
Encore.enableEslintLoader((options) => {
delete options.parser;
}, {
lintVue: true
});
```
**EDIT 2:**
PR #687 has been merged and issue #657 is now resolved. It means that you can use the following code to let eslint-loader handle `.vue` files:
```js
Encore.enableEslintLoader(() => {}, {
lintVue: true
});
```
Commits
-------
13b0750 chore: remove comment for vue files linting since #687 has been merged
2f1e85b chore: add comment for making .vue files lint working
12b3f77 eslint/vue: add 2nd parameter to Encore#enableEslintLoader
eb85b24 eslint/vue: tweak config-generator
aa782df eslint/vue: implement `getTest()` on ESlint loader helper
bc444ff eslint/vue: tweak `WebpackConfig#enableEslintLoader()`
logger.deprecation('enableEslintLoader: Extending from a configuration is deprecated, please use a configuration file instead. See https://eslint.org/docs/user-guide/configuring for more information.');
0 commit comments