@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
37 lines (35 loc) • 1.77 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.LintModule = void 0;
const tslib_1 = require("tslib");
const gulp_1 = require("gulp");
const gulp_eslint_new_1 = tslib_1.__importDefault(require("gulp-eslint-new"));
const gulp_typescript_1 = tslib_1.__importDefault(require("gulp-typescript"));
var LintModule;
(function (LintModule) {
function lintApp() {
return (0, gulp_1.src)(['src/**/*.ts', '!src/generated/**/*.*'])
.pipe((0, gulp_eslint_new_1.default)())
.pipe(gulp_eslint_new_1.default.format())
.pipe(gulp_eslint_new_1.default.failAfterError());
}
LintModule.lintApp = lintApp;
function lintUiTestAutomation() {
const tsProject = gulp_typescript_1.default.createProject('uta/tsconfig.json');
return tsProject.src()
.pipe((0, gulp_eslint_new_1.default)())
.pipe(gulp_eslint_new_1.default.format())
.pipe(gulp_eslint_new_1.default.failAfterError());
}
LintModule.lintUiTestAutomation = lintUiTestAutomation;
function lintUiTestAutomation_legacy() {
return (0, gulp_1.src)(['ui-test-automation/**/*.ts', '!ui-test-automation/node_modules/**/*.*'])
.pipe((0, gulp_eslint_new_1.default)())
.pipe(gulp_eslint_new_1.default.format())
.pipe(gulp_eslint_new_1.default.failAfterError());
}
LintModule.lintUiTestAutomation_legacy = lintUiTestAutomation_legacy;
// for the backward compatibility with repositories that have not been onboarded to the latest ui automation framework.
LintModule.lint = (0, gulp_1.series)(lintApp, lintUiTestAutomation_legacy);
})(LintModule = exports.LintModule || (exports.LintModule = {}));
//# sourceMappingURL=lint.js.map