Skip to content

Commit

Permalink
[new] add rule documentations
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Mollweide committed Jun 27, 2016
1 parent 6735871 commit ae4f965
Show file tree
Hide file tree
Showing 8 changed files with 2,554 additions and 0 deletions.
333 changes: 333 additions & 0 deletions documentation/errors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,333 @@

## Errors


### [Comma dangle](http://eslint.org/docs/rules/comma-dangle)

> require trailing commas in multiline object literals

✖ Disabled

<br />



### [No cond assign](http://eslint.org/docs/rules/no-cond-assign)

> disallow assignment in conditional expressions

&#10003; Enabled (error)

<br />



### [No console](http://eslint.org/docs/rules/no-console)

> disallow use of console

&#10003; Enabled (warning)

<br />



### [No constant condition](http://eslint.org/docs/rules/no-constant-condition)

> disallow use of constant expressions in conditions

&#10003; Enabled (warning)

<br />



### [No control regex](http://eslint.org/docs/rules/no-control-regex)

> disallow control characters in regular expressions

&#10003; Enabled (error)

<br />



### [No debugger](http://eslint.org/docs/rules/no-debugger)

> disallow use of debugger

&#10003; Enabled (error)

<br />



### [No dupe args](http://eslint.org/docs/rules/no-dupe-args)

> disallow duplicate arguments in functions

&#10003; Enabled (error)

<br />



### [No dupe keys](http://eslint.org/docs/rules/no-dupe-keys)

> disallow duplicate keys when creating object literals

&#10003; Enabled (error)

<br />



### [No duplicate case](http://eslint.org/docs/rules/no-duplicate-case)

> disallow a duplicate case label.

&#10003; Enabled (error)

<br />



### [No empty character class](http://eslint.org/docs/rules/no-empty-character-class)

> disallow the use of empty character classes in regular expressions

&#10003; Enabled (error)

<br />



### [No empty](http://eslint.org/docs/rules/no-empty)

> disallow empty statements

&#10003; Enabled (error)

<br />



### [No ex assign](http://eslint.org/docs/rules/no-ex-assign)

> disallow assigning to the exception in a catch block

&#10003; Enabled (error)

<br />



### [No extra boolean cast](http://eslint.org/docs/rules/no-extra-boolean-cast)

> disallow double-negation boolean casts in a boolean context

&#10006; Disabled

<br />



### [No extra parens](http://eslint.org/docs/rules/no-extra-parens)

> disallow unnecessary parentheses

&#10006; Disabled

<br />



### [No extra semi](http://eslint.org/docs/rules/no-extra-semi)

> disallow unnecessary semicolons

&#10003; Enabled (error)

<br />



### [No func assign](http://eslint.org/docs/rules/no-func-assign)

> disallow overwriting functions written as function declarations

&#10003; Enabled (error)

<br />



### [No inner declarations](http://eslint.org/docs/rules/no-inner-declarations)

> disallow function or variable declarations in nested blocks

&#10003; Enabled (error)

<br />



### [No invalid regexp](http://eslint.org/docs/rules/no-invalid-regexp)

> disallow invalid regular expression strings in the RegExp constructor

&#10003; Enabled (error)

<br />



### [No irregular whitespace](http://eslint.org/docs/rules/no-irregular-whitespace)

> disallow irregular whitespace outside of strings and comments

&#10003; Enabled (error)

<br />



### [No negated in lhs](http://eslint.org/docs/rules/no-negated-in-lhs)

> disallow negation of the left operand of an in expression

&#10003; Enabled (error)

<br />



### [No obj calls](http://eslint.org/docs/rules/no-obj-calls)

> disallow the use of object properties of the global object (Math and JSON) as functions

&#10003; Enabled (error)

<br />



### [No prototype builtins](http://eslint.org/docs/rules/no-prototype-builtins)

> disallow use of Object.prototypes builtins directly

&#10003; Enabled (error)

<br />



### [No regex spaces](http://eslint.org/docs/rules/no-regex-spaces)

> disallow multiple spaces in a regular expression literal

&#10003; Enabled (error)

<br />



### [No sparse arrays](http://eslint.org/docs/rules/no-sparse-arrays)

> disallow sparse arrays

&#10003; Enabled (error)

<br />



### [No unexpected multiline](http://eslint.org/docs/rules/no-unexpected-multiline)

> Avoid code that looks like two expressions but is actually one

&#10006; Disabled

<br />



### [No unreachable](http://eslint.org/docs/rules/no-unreachable)

> disallow unreachable statements after a return, throw, continue, or break statement

&#10003; Enabled (error)

<br />



### [No unsafe finally](http://eslint.org/docs/rules/no-unsafe-finally)

> disallow return/throw/break/continue inside finally blocks

&#10003; Enabled (error)

<br />



### [Use isnan](http://eslint.org/docs/rules/use-isnan)

> disallow comparisons with the value NaN

&#10003; Enabled (error)

<br />



### [Valid jsdoc](http://eslint.org/docs/rules/valid-jsdoc)

> ensure JSDoc comments are valid

&#10003; Enabled (warning)

<br />



### [Valid typeof](http://eslint.org/docs/rules/valid-typeof)

> ensure that the results of typeof are compared against a valid string

&#10003; Enabled (error)

<br />


Loading

0 comments on commit ae4f965

Please sign in to comment.