Skip to content

eslint/rules/browser-apis ​

Browser: DOM, events, CSS-in-JS, web APIs and the console. Rules of ESLint, typescript-eslint and SonarJS (the Sonar way profile of SonarQube) on this subject, every rule listed; the TypeScript rules apply to TypeScript files only.

6 rules, 6 on. Source: lint/eslint/rules/browser-apis.mjs.

RuleSettingFilesWhat it checksWhy
no-alertwarnJS + TSDisallow the use of alert, confirm, and prompt—
no-consolewarnJS + TSDisallow the use of consoleWarn: scripts and command-line tools report on the console.
sonarjs/no-table-as-layoutwarnJS + TSHTML "<table>" should not be used for layout purposes—
sonarjs/object-alt-contentwarnJS + TS"<object>" tags should provide an alternative content—
sonarjs/table-headererrorJS + TSTables should have headers—
sonarjs/table-header-referenceerrorJS + TSTable cells should reference their headers—

Generated from the JSDoc of the sources.