Search
Search
lint
lint
Run linting on the code file content.
const diagnostics = await codeFile.lint({
"forbid-browser-apis": "error"
});
Parameters
rules: LintConfig
— Linting rules configuration.
Whereby LintConfig
can be
interface LintConfig {
"forbid-browser-apis"?: "error" | "warning"
}
Returns
Promise<LintDiagnostic[]>
— An array of LintDiagnostic