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 @@ -1111,7 +1111,7 @@ class Encore {
1111
1111
* Encore.enableEslintLoader(() => {}, {
1112
1112
* // set optional Encore-specific options, for instance:
1113
1113
*
1114
- * // lint `.vue` files
1114
+ * // lint `.vue` files, see below for more informatin about linting Vue files
1115
1115
* lintVue: true
1116
1116
* });
1117
1117
* ```
@@ -1120,6 +1120,18 @@ class Encore {
1120
1120
* * {boolean} lintVue (default=false)
1121
1121
* Configure the loader to lint `.vue` files
1122
1122
*
1123
+ * // Linting Vue files
1124
+ * Encore.enableEslintLoader((options) => {
1125
+ * // Deleting the hard-coded `parser` option prevent the error "Use the latest vue-eslint-parser", see:
1126
+ * // - https://eslint.vuejs.org/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error
1127
+ * // - https://github.com/symfony/webpack-encore/pull/574
1128
+ * // Note that it will not be mandatory anymore is some times.
1129
+ * delete options.parser;
1130
+ * }, {
1131
+ * lintVue: true
1132
+ * });
1133
+ * ```
1134
+ *
1123
1135
* @param {string|object|function } eslintLoaderOptionsOrCallback
1124
1136
* @param {object } encoreOptions
1125
1137
* @returns {Encore }
You can’t perform that action at this time.
0 commit comments