Conflict with Airbnb guide in "arrow-parens" rule
See original GitHub issueairbnb-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:
- Created 4 years ago
- Reactions:5
- Comments:9 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
Thank you @apust @jabacchetta @JPeer264 @deskoh - it’s awesome to see this issue thoroughly researched, tested, and fixed entirely by the community! 👏 👏 👏