fix some (future) linting issues

This commit is contained in:
Johannes Rieken 2019-12-31 09:53:57 +01:00
parent 79052bb8eb
commit f01f7ebe93
5 changed files with 9 additions and 4 deletions

View file

@ -19,7 +19,7 @@ module.exports = withDefaults({
output: {
filename: 'main.js',
path: path.join(__dirname, 'dist'),
libraryTarget: "commonjs",
libraryTarget: 'commonjs',
},
resolve: {
mainFields: ['module', 'main'],

View file

@ -1,4 +1,6 @@
// @ts-check
// todo@jackson
/* eslint code-no-unexternalized-strings: 0 */
const mappings = [
['bat', 'source.batchfile'],

View file

@ -49,7 +49,7 @@ module.exports = function withDefaults(/**@type WebpackConfig*/extConfig) {
loader: 'ts-loader',
options: {
compilerOptions: {
"sourceMap": true,
'sourceMap': true,
}
}
}]
@ -63,7 +63,7 @@ module.exports = function withDefaults(/**@type WebpackConfig*/extConfig) {
// packaging depends on that and this must always be like it
filename: '[name].js',
path: path.join(extConfig.context, 'dist'),
libraryTarget: "commonjs",
libraryTarget: 'commonjs',
},
// yes, really source maps
devtool: 'source-map',

View file

@ -3,6 +3,9 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
// todo@matt
/* eslint code-no-unexternalized-strings: 0 */
import * as assert from 'assert';
import 'mocha';
import * as vscode from 'vscode';

View file

@ -100,7 +100,7 @@ if (typeof global === 'object') {
if (typeof define === 'function') {
// amd
define([], function () { return _factory(sharedObj); });
} else if (typeof module === "object" && typeof module.exports === "object") {
} else if (typeof module === 'object' && typeof module.exports === 'object') {
// commonjs
module.exports = _factory(sharedObj);
} else {