@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
1 lines • 1.67 kB
Source Map (JSON)
{"version":3,"sources":["../../../packages/tools/code-formatter/lint.ts"],"names":[],"mappings":";;AAKA,sBAAc,UAAU,CAAC;IACrB,SAAgB,OAAO,2BAUtB;IAED,SAAgB,oBAAoB,2BAOnC;IAED,SAAgB,2BAA2B,2BAK1C;IAGM,MAAM,IAAI,mCAA+C,CAAC;CACpE","file":"lint.d.ts","sourcesContent":["import { dest, series, src } from 'gulp';\r\nimport eslint from 'gulp-eslint-new';\r\nimport ts from 'gulp-typescript';\r\nimport { Utilities } from './utilities';\r\n\r\nexport module LintModule {\r\n export function lintApp() {\r\n const argv = Utilities.gulpArgv();\r\n return src(['src/**/*.ts', '!src/generated/**/*.*'])\r\n .pipe(eslint({\r\n overrideConfigFile: `./.eslintrc.json`,\r\n fix: argv['fix'] as boolean\r\n }))\r\n .pipe(eslint.format())\r\n .pipe(dest('src'))\r\n .pipe(eslint.failAfterError());\r\n }\r\n\r\n export function lintUiTestAutomation() {\r\n const tsProject = ts.createProject('uta/tsconfig.json');\r\n\r\n return tsProject.src()\r\n .pipe(eslint())\r\n .pipe(eslint.format())\r\n .pipe(eslint.failAfterError());\r\n }\r\n\r\n export function lintUiTestAutomation_legacy() {\r\n return src(['ui-test-automation/**/*.ts', '!ui-test-automation/node_modules/**/*.*'])\r\n .pipe(eslint())\r\n .pipe(eslint.format())\r\n .pipe(eslint.failAfterError());\r\n }\r\n\r\n // for the backward compatibility with repositories that have not been onboarded to the latest ui automation framework.\r\n export const lint = series(lintApp, lintUiTestAutomation_legacy);\r\n}\r\n"]}