Initial commit

This commit is contained in:
2025-03-07 19:22:02 +01:00
commit 4a98255d83
55743 changed files with 5280367 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
#!/usr/bin/env node
export {};
Generated Vendored Executable
+76
View File
@@ -0,0 +1,76 @@
#!/usr/bin/env node
"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
const commander_1 = require("commander");
const office_addin_usage_data_1 = require("office-addin-usage-data");
const commands = __importStar(require("./commands"));
const defaults = __importStar(require("./defaults"));
/* global process */
const commander = new commander_1.Command();
commander.name("office-addin-lint");
commander.version(process.env.npm_package_version || "(version not available)");
commander
.command("check")
.option("--files <files>", `Specifies the source files to check. Default: ${defaults.lintFiles}`)
.option("--test", "Use the test lint configuration")
.description(`Check source files against lint rules.`)
.action(commands.lint);
commander
.command("fix")
.option("--files <files>", `Specifies the source files to fix. Default: ${defaults.lintFiles}`)
.option("--test", "Use the test lint configuration")
.description(`Apply fixes to source based on lint rules.`)
.action(commands.lintFix);
commander
.command("prettier")
.option("--files <files>", `Specifies which files to use. Default: ${defaults.lintFiles}`)
.description(`Make the source prettier.`)
.action(commands.prettier);
// if the command is not known, display an error
commander.on("command:*", function () {
(0, office_addin_usage_data_1.logErrorMessage)(`The command syntax is not valid.\n`);
process.exitCode = 1;
commander.help();
});
if (process.argv.length > 2) {
commander.parse(process.argv);
}
else {
commander.help();
}
//# sourceMappingURL=cli.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;AAEA,4DAA4D;AAC5D,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElC,yCAAoC;AACpC,qEAA0D;AAC1D,qDAAuC;AACvC,qDAAuC;AAEvC,oBAAoB;AAEpB,MAAM,SAAS,GAAG,IAAI,mBAAO,EAAE,CAAC;AAEhC,SAAS,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;AACpC,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,IAAI,yBAAyB,CAAC,CAAC;AAEhF,SAAS;KACN,OAAO,CAAC,OAAO,CAAC;KAChB,MAAM,CAAC,iBAAiB,EAAE,iDAAiD,QAAQ,CAAC,SAAS,EAAE,CAAC;KAChG,MAAM,CAAC,QAAQ,EAAE,iCAAiC,CAAC;KACnD,WAAW,CAAC,wCAAwC,CAAC;KACrD,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAEzB,SAAS;KACN,OAAO,CAAC,KAAK,CAAC;KACd,MAAM,CAAC,iBAAiB,EAAE,+CAA+C,QAAQ,CAAC,SAAS,EAAE,CAAC;KAC9F,MAAM,CAAC,QAAQ,EAAE,iCAAiC,CAAC;KACnD,WAAW,CAAC,4CAA4C,CAAC;KACzD,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AAE5B,SAAS;KACN,OAAO,CAAC,UAAU,CAAC;KACnB,MAAM,CAAC,iBAAiB,EAAE,0CAA0C,QAAQ,CAAC,SAAS,EAAE,CAAC;KACzF,WAAW,CAAC,2BAA2B,CAAC;KACxC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAE7B,gDAAgD;AAChD,SAAS,CAAC,EAAE,CAAC,WAAW,EAAE;IACxB,IAAA,yCAAe,EAAC,oCAAoC,CAAC,CAAC;IACtD,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;IACrB,SAAS,CAAC,IAAI,EAAE,CAAC;AACnB,CAAC,CAAC,CAAC;AAEH,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;IAC5B,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;KAAM,CAAC;IACN,SAAS,CAAC,IAAI,EAAE,CAAC;AACnB,CAAC"}
+4
View File
@@ -0,0 +1,4 @@
import { OptionValues } from "commander";
export declare function lint(options: OptionValues): Promise<void>;
export declare function lintFix(options: OptionValues): Promise<void>;
export declare function prettier(options: OptionValues): Promise<void>;
+127
View File
@@ -0,0 +1,127 @@
"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.lint = lint;
exports.lintFix = lintFix;
exports.prettier = prettier;
const office_addin_usage_data_1 = require("office-addin-usage-data");
const defaults = __importStar(require("./defaults"));
const lint_1 = require("./lint");
const defaults_1 = require("./defaults");
/* global process */
/**
* Determines path to files to run lint against. Priority order follows:
* 1 --files option passed through cli
* 2 lint_files config property in package.json
* 3 default location
* @param command command options which can contain files
*/
function getPathToFiles(options) {
const pathToFiles = options.files
? options.files
: process.env.npm_package_config_lint_files;
return pathToFiles ? pathToFiles : defaults.lintFiles;
}
function lint(options) {
return __awaiter(this, void 0, void 0, function* () {
try {
const pathToFiles = getPathToFiles(options);
const useTestConfig = options.test;
yield (0, lint_1.performLintCheck)(pathToFiles, useTestConfig);
defaults_1.usageDataObject.reportSuccess("lint");
}
catch (err) {
if (typeof err.status == "number") {
process.exitCode = err.status;
}
else {
process.exitCode = defaults.ESLintExitCode.CommandFailed;
defaults_1.usageDataObject.reportException("lint", err);
(0, office_addin_usage_data_1.logErrorMessage)(err);
}
}
});
}
function lintFix(options) {
return __awaiter(this, void 0, void 0, function* () {
try {
const pathToFiles = getPathToFiles(options);
const useTestConfig = options.test;
yield (0, lint_1.performLintFix)(pathToFiles, useTestConfig);
defaults_1.usageDataObject.reportSuccess("lintFix");
}
catch (err) {
if (typeof err.status == "number") {
process.exitCode = err.status;
}
else {
process.exitCode = defaults.ESLintExitCode.CommandFailed;
defaults_1.usageDataObject.reportException("lintFix", err);
(0, office_addin_usage_data_1.logErrorMessage)(err);
}
}
});
}
function prettier(options) {
return __awaiter(this, void 0, void 0, function* () {
try {
const pathToFiles = getPathToFiles(options);
yield (0, lint_1.makeFilesPrettier)(pathToFiles);
defaults_1.usageDataObject.reportSuccess("prettier");
}
catch (err) {
if (typeof err.status == "number") {
process.exitCode = err.status;
}
else {
process.exitCode = defaults.PrettierExitCode.CommandFailed;
defaults_1.usageDataObject.reportException("prettier", err);
(0, office_addin_usage_data_1.logErrorMessage)(err);
}
}
});
}
//# sourceMappingURL=commands.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../src/commands.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBlC,oBAeC;AAED,0BAeC;AAED,4BAcC;AArED,qEAA0D;AAC1D,qDAAuC;AACvC,iCAA6E;AAC7E,yCAA6C;AAE7C,oBAAoB;AAEpB;;;;;;GAMG;AACH,SAAS,cAAc,CAAC,OAAqB;IAC3C,MAAM,WAAW,GAAQ,OAAO,CAAC,KAAK;QACpC,CAAC,CAAC,OAAO,CAAC,KAAK;QACf,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC;IAC9C,OAAO,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC;AACxD,CAAC;AAED,SAAsB,IAAI,CAAC,OAAqB;;QAC9C,IAAI,CAAC;YACH,MAAM,WAAW,GA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AAC;QACH,CAAC;IACH,CAAC;CAAA;AAED,SAAsB,QAAQ,CAAC,OAAqB;;QAClD,IAAI,CAAC;YACH,MAAM,WAAW,GAAW,cAAc,CAAC,OAAO,CAAC,CAAC;YACpD,MAAM,IAAA,wBAAiB,EAAC,WAAW,CAAC,CAAC;YACrC,0BAAe,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;QAC5C,CAAC;QAAC,OAAO,GAAQ,EAAE,CAAC;YAClB,IAAI,OAAO,GAAG,CAAC,MAAM,IAAI,QAAQ,EAAE,CAAC;gBAClC,OAAO,CAAC,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC;YAChC,CAAC;iBAAM,CAAC;gBACN,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC,gBAAgB,CAAC,aAAa,CAAC;gBAC3D,0BAAe,CAAC,eAAe,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;gBACjD,IAAA,yCAAe,EAAC,GAAG,CAAC,CAAC;YACvB,CAAC;QACH,CAAC;IACH,CAAC;CAAA"}
+13
View File
@@ -0,0 +1,13 @@
import { OfficeAddinUsageData } from "office-addin-usage-data";
export declare const lintFiles = "src/**/*.{ts,tsx,js,jsx}";
export declare enum ESLintExitCode {
NoLintErrors = 0,
HasLintError = 1,
CommandFailed = 2
}
export declare enum PrettierExitCode {
NoFormattingProblems = 0,
HasFormattingProblem = 1,
CommandFailed = 2
}
export declare const usageDataObject: OfficeAddinUsageData;
+26
View File
@@ -0,0 +1,26 @@
"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
exports.usageDataObject = exports.PrettierExitCode = exports.ESLintExitCode = exports.lintFiles = void 0;
const office_addin_usage_data_1 = require("office-addin-usage-data");
exports.lintFiles = "src/**/*.{ts,tsx,js,jsx}";
var ESLintExitCode;
(function (ESLintExitCode) {
ESLintExitCode[ESLintExitCode["NoLintErrors"] = 0] = "NoLintErrors";
ESLintExitCode[ESLintExitCode["HasLintError"] = 1] = "HasLintError";
ESLintExitCode[ESLintExitCode["CommandFailed"] = 2] = "CommandFailed";
})(ESLintExitCode || (exports.ESLintExitCode = ESLintExitCode = {}));
var PrettierExitCode;
(function (PrettierExitCode) {
PrettierExitCode[PrettierExitCode["NoFormattingProblems"] = 0] = "NoFormattingProblems";
PrettierExitCode[PrettierExitCode["HasFormattingProblem"] = 1] = "HasFormattingProblem";
PrettierExitCode[PrettierExitCode["CommandFailed"] = 2] = "CommandFailed";
})(PrettierExitCode || (exports.PrettierExitCode = PrettierExitCode = {}));
// Usage data defaults
exports.usageDataObject = new office_addin_usage_data_1.OfficeAddinUsageData({
projectName: "office-addin-lint",
instrumentationKey: office_addin_usage_data_1.instrumentationKeyForOfficeAddinCLITools,
raisePrompt: false,
});
//# sourceMappingURL=defaults.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../src/defaults.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,kCAAkC;;;AAElC,qEAGiC;AAEpB,QAAA,SAAS,GAAG,0BAA0B,CAAC;AAEpD,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,mEAAgB,CAAA;IAChB,mEAAgB,CAAA;IAChB,qEAAiB,CAAA;AACnB,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,uFAAwB,CAAA;IACxB,uFAAwB,CAAA;IACxB,yEAAiB,CAAA;AACnB,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B;AAED,sBAAsB;AACT,QAAA,eAAe,GAAyB,IAAI,8CAAoB,CAAC;IAC5E,WAAW,EAAE,mBAAmB;IAChC,kBAAkB,EAAE,kEAAwC;IAC5D,WAAW,EAAE,KAAK;CACnB,CAAC,CAAC"}
+6
View File
@@ -0,0 +1,6 @@
export declare function getLintCheckCommand(files: string, useTestConfig?: boolean): string;
export declare function performLintCheck(files: string, useTestConfig?: boolean): void;
export declare function getLintFixCommand(files: string, useTestConfig?: boolean): string;
export declare function performLintFix(files: string, useTestConfig?: boolean): void;
export declare function getPrettierCommand(files: string): string;
export declare function makeFilesPrettier(files: string): void;
+107
View File
@@ -0,0 +1,107 @@
"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getLintCheckCommand = getLintCheckCommand;
exports.performLintCheck = performLintCheck;
exports.getLintFixCommand = getLintFixCommand;
exports.performLintFix = performLintFix;
exports.getPrettierCommand = getPrettierCommand;
exports.makeFilesPrettier = makeFilesPrettier;
const fs_1 = __importDefault(require("fs"));
const path_1 = __importDefault(require("path"));
const defaults_1 = require("./defaults");
/* global process require __dirname */
const eslintPath = require.resolve("eslint");
const prettierPath = require.resolve("prettier");
const eslintDir = path_1.default.parse(eslintPath).dir;
const eslintFilePath = path_1.default.resolve(eslintDir, "../bin/eslint.js");
const prettierFilePath = path_1.default.resolve(prettierPath, "../bin/prettier.cjs");
const eslintConfigPath = path_1.default.resolve(__dirname, "../config/eslint.config.mjs");
const eslintTestConfigPath = path_1.default.resolve(__dirname, "../config/eslint.config.test.mjs");
function execCommand(command) {
const execSync = require("child_process").execSync;
execSync(command, { stdio: "inherit" });
}
function normalizeFilePath(filePath) {
return filePath.replace(/ /g, "\\ "); // Converting space to '\\'
}
function getEsLintBaseCommand(useTestConfig = false) {
const projLintConfig = path_1.default.resolve(process.cwd(), "eslint.config.mjs");
const prodConfig = fs_1.default.existsSync(projLintConfig) ? projLintConfig : eslintConfigPath;
const configFilePath = useTestConfig ? eslintTestConfigPath : prodConfig;
const eslintBaseCommand = `node "${eslintFilePath}" -c "${configFilePath}"`;
return eslintBaseCommand;
}
function getLintCheckCommand(files, useTestConfig = false) {
const eslintCommand = `${getEsLintBaseCommand(useTestConfig)} "${normalizeFilePath(files)}"`;
return eslintCommand;
}
function performLintCheck(files, useTestConfig = false) {
try {
const command = getLintCheckCommand(files, useTestConfig);
execCommand(command);
defaults_1.usageDataObject.reportSuccess("performLintCheck()", { exitCode: defaults_1.ESLintExitCode.NoLintErrors });
}
catch (err) {
if (err.status && err.status == defaults_1.ESLintExitCode.HasLintError) {
defaults_1.usageDataObject.reportExpectedException("performLintCheck()", err, {
exitCode: defaults_1.ESLintExitCode.HasLintError,
});
}
else {
defaults_1.usageDataObject.reportException("performLintCheck()", err);
}
throw err;
}
}
function getLintFixCommand(files, useTestConfig = false) {
const eslintCommand = `${getEsLintBaseCommand(useTestConfig)} --fix ${normalizeFilePath(files)}`;
return eslintCommand;
}
function performLintFix(files, useTestConfig = false) {
try {
const command = getLintFixCommand(files, useTestConfig);
execCommand(command);
defaults_1.usageDataObject.reportSuccess("performLintFix()", { exitCode: defaults_1.ESLintExitCode.NoLintErrors });
}
catch (err) {
if (err.status && err.status == defaults_1.ESLintExitCode.HasLintError) {
defaults_1.usageDataObject.reportExpectedException("performLintFix()", err, {
exitCode: defaults_1.ESLintExitCode.HasLintError,
});
}
else {
defaults_1.usageDataObject.reportException("performLintFix()", err);
}
throw err;
}
}
function getPrettierCommand(files) {
const prettierFixCommand = `node ${prettierFilePath} --parser typescript --write ${normalizeFilePath(files)}`;
return prettierFixCommand;
}
function makeFilesPrettier(files) {
try {
const command = getPrettierCommand(files);
execCommand(command);
defaults_1.usageDataObject.reportSuccess("makeFilesPrettier()", {
exitCode: defaults_1.PrettierExitCode.NoFormattingProblems,
});
}
catch (err) {
if (err.status && err.status == defaults_1.PrettierExitCode.HasFormattingProblem) {
defaults_1.usageDataObject.reportExpectedException("makeFilesPrettier()", err, {
exitCode: defaults_1.PrettierExitCode.HasFormattingProblem,
});
}
else {
defaults_1.usageDataObject.reportException("makeFilesPrettier()", err);
}
throw err;
}
}
//# sourceMappingURL=lint.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"lint.js","sourceRoot":"","sources":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B,IAAI,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,MAAM,IAAI,2BAAgB,CAAC,oBAAoB,EAAE,CAAC;YACtE,0BAAe,CAAC,uBAAuB,CAAC,qBAAqB,EAAE,GAAG,EAAE;gBAClE,QAAQ,EAAE,2BAAgB,CAAC,oBAAoB;aAChD,CAAC,CAAC;QACL,CAAC;aAAM,CAAC;YACN,0BAAe,CAAC,eAAe,CAAC,qBAAqB,EAAE,GAAG,CAAC,CAAC;QAC9D,CAAC;QACD,MAAM,GAAG,CAAC;IACZ,CAAC;AACH,CAAC"}
+2
View File
@@ -0,0 +1,2 @@
export * from "./defaults";
export * from "./lint";
+21
View File
@@ -0,0 +1,21 @@
"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./defaults"), exports);
__exportStar(require("./lint"), exports);
//# sourceMappingURL=main.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,kCAAkC;;;;;;;;;;;;;;;;AAElC,6CAA2B;AAC3B,yCAAuB"}