Skip to content

Add arrow function rules to eslint

Rodrigo Muino Tomonari requested to merge github/fork/cjihrig/parens into master

This PR enforces the following linting rules:

  • arrow-parens - requires parens around arrow function arguments
  • arrow-spacing - ensures a space on each side of the =>
  • no-arrow-condition - prevents accidental use of => in cases where the user really intends to use <=

The only code that violated these rules existed in the test directory. R= @rvagg

Merge request reports

Loading