style: fix linting issues in webpack plugin
This commit is contained in:
parent
bfb50bf608
commit
3b9fafc53e
|
@ -48,7 +48,7 @@ module.exports = class FilerWebpackPlugin {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
resolveFsProvider(resolveData) {
|
resolveFsProvider(resolveData) {
|
||||||
|
@ -67,9 +67,9 @@ module.exports = class FilerWebpackPlugin {
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new Error([
|
throw new Error([
|
||||||
`Invalid option for fsProvider.`,
|
'Invalid option for fsProvider.',
|
||||||
`fsProvider must be one of 'default', 'indexeddb', 'memory' or 'custom'.`,
|
'fsProvider must be one of \'default\', \'indexeddb\', \'memory\' or \'custom\'.',
|
||||||
`If using a custom fsProvider, you must also provide the fsProviderDir option.`
|
'If using a custom fsProvider, you must also provide the fsProviderDir option.'
|
||||||
].join(' '));
|
].join(' '));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -85,4 +85,4 @@ module.exports = class FilerWebpackPlugin {
|
||||||
applyBufferShim(resolveData) {
|
applyBufferShim(resolveData) {
|
||||||
resolveData.request = path.join(this.options.shimsDir, 'buffer.js');
|
resolveData.request = path.join(this.options.shimsDir, 'buffer.js');
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
Loading…
Reference in New Issue