mirror of
https://github.com/Microsoft/vscode
synced 2024-10-05 19:02:54 +00:00
fix some (future) linting issues
This commit is contained in:
parent
79052bb8eb
commit
f01f7ebe93
|
@ -19,7 +19,7 @@ module.exports = withDefaults({
|
|||
output: {
|
||||
filename: 'main.js',
|
||||
path: path.join(__dirname, 'dist'),
|
||||
libraryTarget: "commonjs",
|
||||
libraryTarget: 'commonjs',
|
||||
},
|
||||
resolve: {
|
||||
mainFields: ['module', 'main'],
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// @ts-check
|
||||
// todo@jackson
|
||||
/* eslint code-no-unexternalized-strings: 0 */
|
||||
|
||||
const mappings = [
|
||||
['bat', 'source.batchfile'],
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue