Skip to content

Conversation

@achichen
Copy link
Contributor

@achichen achichen commented Jul 30, 2016

  1. Allow confusing arrow function with parenthesis
    this syntax would violate no-confusing-arrow rule before this version:
// eslint will reject
const toDoOrNotToDo = (condition, todo) => condition ? todo : null

now it can be avoided by surrounding parenthesis:

// this is good
const toDoOrNotToDo = (condition, todo) => (condition ? todo : null)
  1. No newline is required before return
  2. Allow mixed operator, e.g. 3 + 4 * 5

2. No newline is required before return
3. Allow mixed operator, e.g. 3 + 4 * 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants