File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -1058,13 +1058,26 @@ class Encore {
1058
1058
* options.extends = 'airbnb';
1059
1059
* options.emitWarning = false;
1060
1060
* });
1061
+ *
1062
+ * // configure Encore-specific options
1063
+ * Encore.enableEslintLoader(() => {}, {
1064
+ * // set optional Encore-specific options, for instance:
1065
+ *
1066
+ * // lint `.vue` files
1067
+ * lintVue: true
1068
+ * });
1061
1069
* ```
1062
1070
*
1071
+ * Supported options:
1072
+ * * {boolean} lintVue (default=false)
1073
+ * Configure the loader to lint `.vue` files
1074
+ *
1063
1075
* @param {string|object|function } eslintLoaderOptionsOrCallback
1076
+ * @param {object } encoreOptions
1064
1077
* @returns {Encore }
1065
1078
*/
1066
- enableEslintLoader ( eslintLoaderOptionsOrCallback = ( ) => { } ) {
1067
- webpackConfig . enableEslintLoader ( eslintLoaderOptionsOrCallback ) ;
1079
+ enableEslintLoader ( eslintLoaderOptionsOrCallback = ( ) => { } , encoreOptions = { } ) {
1080
+ webpackConfig . enableEslintLoader ( eslintLoaderOptionsOrCallback , encoreOptions ) ;
1068
1081
1069
1082
return this ;
1070
1083
}
You can’t perform that action at this time.
0 commit comments