question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Conflict with Airbnb guide in "arrow-parens" rule

See original GitHub issue

airbnb-typescript uses as-needed option for arrow-parens rule instead of always suggested by Airbnb style guide.

This is expected to be correct, but gets an error:

const myFunc = (singleArg) => singleArg * 2;

This is expected to be incorrect, but gets no error:

const myFunc = singleArg => singleArg * 2;

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
deskohcommented, Sep 29, 2019

@JPeer264 Verified that it’s working with latest libs. See PR sergesemashko/airbnb-typescript-eslint-test#1. @apust Rule should be removed in this project since it requires no overrides.

0reactions
iamturnscommented, Oct 23, 2019

Thank you @apust @jabacchetta @JPeer264 @deskoh - it’s awesome to see this issue thoroughly researched, tested, and fixed entirely by the community! 👏 👏 👏

Read more comments on GitHub >

github_iconTop Results From Across the Web

arrow-parens - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
Harmonize prettier and eslint configs (#52233) · Issues - GitLab
I propose we: Throw out all of the AirBnB rules effecting spacing, indentation, and other aesthetic rules ( indent , padded-blocks , arrow-...
Read more >
Setting up efficient workflows with ESLint, Prettier and ...
In this article I would like to start very easily and go into more depth from topic to topic. In the first step...
Read more >
visual studio code - Eslint & Prettier conflicts - Stack Overflow
prettierrc.json file. i saw error.I order to not have conflicts between them, i installed the eslint-config-prettier. But i still get errors ...
Read more >
The How and Why of the AirBnB Style Guide - Drupal Camp PA
is conflict: ... The AirBnB style guide has most of its standards as eslint rules, ... rules: prefer-arrow-callback, arrow-spacing, arrow-parens,.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found