Skip to content

Commit

Permalink
feat: Add detection for root files (e.g. ui5.yaml)
Browse files Browse the repository at this point in the history
- Add js-yaml npm library for YAML-parsing (https://www.npmjs.com/package/js-yaml)
  • Loading branch information
maxreichmann authored and flovogt committed Apr 12, 2024
1 parent c52b53f commit 3599d48
Show file tree
Hide file tree
Showing 17 changed files with 392 additions and 98 deletions.
199 changes: 103 additions & 96 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@
"@ui5/logger": "^3.0.0",
"@ui5/project": "^3.9.1",
"chalk": "^5.3.0",
"data-with-position": "^0.5.0",
"figures": "^6.1.0",
"he": "^1.2.0",
"js-yaml": "^4.1.0",
"json-source-map": "^0.6.1",
"sax-wasm": "^2.2.4",
"typescript": "5.3.x",
Expand All @@ -82,6 +84,7 @@
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@stylistic/eslint-plugin": "^1.7.0",
"@types/he": "^1.2.3",
"@types/js-yaml": "^4.0.9",
"@types/node": "^20.12.5",
"@types/sinon": "^17.0.3",
"@types/update-notifier": "^6.0.8",
Expand Down
2 changes: 2 additions & 0 deletions src/linter/lintWorkspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {AbstractAdapter} from "@ui5/fs";
import lintXml from "./xmlTemplate/linter.js";
import lintJson from "./manifestJson/linter.js";
import lintHtml from "./html/linter.js";
import lintUI5Yaml from "./yaml/linter.js";
import {taskStart} from "../util/perf.js";
import TypeLinter from "./ui5Types/TypeLinter.js";
import LinterContext, {LintResult, LinterParameters, LinterOptions} from "./LinterContext.js";
Expand All @@ -20,6 +21,7 @@ export default async function lintWorkspace(
lintXml(params),
lintJson(params),
lintHtml(params),
lintUI5Yaml(params),
]);

const typeLinter = new TypeLinter(params);
Expand Down
Loading

0 comments on commit 3599d48

Please sign in to comment.