File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -1063,7 +1063,7 @@ class Encore {
1063
1063
* Encore.enableEslintLoader(() => {}, {
1064
1064
* // set optional Encore-specific options, for instance:
1065
1065
*
1066
- * // lint `.vue` files
1066
+ * // lint `.vue` files, see below for more informatin about linting Vue files
1067
1067
* lintVue: true
1068
1068
* });
1069
1069
* ```
@@ -1072,6 +1072,18 @@ class Encore {
1072
1072
* * {boolean} lintVue (default=false)
1073
1073
* Configure the loader to lint `.vue` files
1074
1074
*
1075
+ * // Linting Vue files
1076
+ * Encore.enableEslintLoader((options) => {
1077
+ * // Deleting the hard-coded `parser` option prevent the error "Use the latest vue-eslint-parser", see:
1078
+ * // - https://eslint.vuejs.org/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error
1079
+ * // - https://github.com/symfony/webpack-encore/pull/574
1080
+ * // Note that it will not be mandatory anymore is some times.
1081
+ * delete options.parser;
1082
+ * }, {
1083
+ * lintVue: true
1084
+ * });
1085
+ * ```
1086
+ *
1075
1087
* @param {string|object|function } eslintLoaderOptionsOrCallback
1076
1088
* @param {object } encoreOptions
1077
1089
* @returns {Encore }
You can’t perform that action at this time.
0 commit comments