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 @@ -1106,13 +1106,26 @@ class Encore {
1106
1106
* options.extends = 'airbnb';
1107
1107
* options.emitWarning = false;
1108
1108
* });
1109
+ *
1110
+ * // configure Encore-specific options
1111
+ * Encore.enableEslintLoader(() => {}, {
1112
+ * // set optional Encore-specific options, for instance:
1113
+ *
1114
+ * // lint `.vue` files
1115
+ * lintVue: true
1116
+ * });
1109
1117
* ```
1110
1118
*
1119
+ * Supported options:
1120
+ * * {boolean} lintVue (default=false)
1121
+ * Configure the loader to lint `.vue` files
1122
+ *
1111
1123
* @param {string|object|function } eslintLoaderOptionsOrCallback
1124
+ * @param {object } encoreOptions
1112
1125
* @returns {Encore }
1113
1126
*/
1114
- enableEslintLoader ( eslintLoaderOptionsOrCallback = ( ) => { } ) {
1115
- webpackConfig . enableEslintLoader ( eslintLoaderOptionsOrCallback ) ;
1127
+ enableEslintLoader ( eslintLoaderOptionsOrCallback = ( ) => { } , encoreOptions = { } ) {
1128
+ webpackConfig . enableEslintLoader ( eslintLoaderOptionsOrCallback , encoreOptions ) ;
1116
1129
1117
1130
return this ;
1118
1131
}
You can’t perform that action at this time.
0 commit comments