Skip to content

Latest commit

 

History

History
76 lines (47 loc) · 1.17 KB

english-operators.md

File metadata and controls

76 lines (47 loc) · 1.17 KB

coffee/english-operators

This rule enforces or disallows the use of "English" operators

Options

This rule has a string option:

"coffee/english-operators": ["error", "always"]
  • "always" (default) requires use of English operators
  • "never" disallows use of English operators

👎 Examples of incorrect code for this rule with the default "always" option:

###eslint coffee/english-operators: ["error", "always"]###

a && b

a || b

a == b

a != b

!a

👍 Examples of correct code for this rule with the default "always" option:

###eslint coffee/english-operators: ["error", "always"]###

a and b

a or b

a is b

a isnt b

not a

!!a

👎 Examples of incorrect code for this rule with the "never" option:

###eslint coffee/english-operators: ["error", "never"]###

a and b

a or b

a is b

a isnt b

not a

👍 Examples of correct code for this rule with the "never" option:

###eslint coffee/english-operators: ["error", "never"]###

a && b

a || b

a == b

a != b

!a

!!a