Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

no-irregular-whitespace

- Disallow irregular whitespace outside of strings and comments

Recommended

This rule is aimed at catching invalid whitespace that is not a normal tab and space. Some of these characters may cause issues in modern browsers and others will be a debugging issue to spot.

What ESLint should do when it catches the rule break

Show a warning

Options

skipComments

Allows any whitespace characters in comments.

skipStrings

Allows any whitespace characters in string literals.

skipTemplates

Allows any whitespace characters in template literals.

skipRegExps

Allows any whitespace characters in regular expression literals.

Rule examples

You can check them out here.