Skip to content

Commit

Permalink
Disable arrow-body-style eslint rule in test/
Browse files Browse the repository at this point in the history
So that the test bodies (which are passed as functions to `it()`) share
a consistent style, which I find more readable than the non-braced
alternative.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
  • Loading branch information
kevinoid committed Jan 3, 2022
1 parent 019c18b commit be2dec1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
},

"rules": {
// Allow, but don't require, braces around function body
// Braces around body of it() function is more consistent/readable
"arrow-body-style": "off",

// Allow null use in tests
"unicorn/no-null": "off"
}
Expand Down

0 comments on commit be2dec1

Please sign in to comment.