Skip to content

eslint/rules/formatting ​

Formatting: Prettier formats the code (eslint-plugin-prettier reports unformatted code, eslint-config-prettier turns off the layout rules that would conflict), plus the few layout rules outside Prettier. Spread it first: the blocks after it set the rules they need again.

6 rules, 3 on. Source: lint/eslint/rules/formatting.mjs.

RuleSettingFilesWhat it checksWhy
prettier/prettiererrorJS + TS——
no-irregular-whitespaceerrorJS + TSDisallow irregular whitespace—
no-unexpected-multilineerrorJS + TSDisallow confusing multiline expressions—
sonarjs/no-unenclosed-multiline-blockoffJS + TSMultiline blocks should be enclosed in curly bracesOff: duplicate of curly.
sonarjs/no-redundant-parenthesesoffJS + TSRedundant pairs of parentheses should be removedOff: not in the Sonar way profile of SonarQube.
sonarjs/no-taboffJS + TSTabulation characters should not be usedOff: not in the Sonar way profile of SonarQube.

Generated from the JSDoc of the sources.