Comments (3)
These feel very "not trivial" to me, not in the complexity sense but in the readability sense, especially the comparison operators like >
, >=
, <
, and <=
, given how visually similar those are to the =>
arrow designator.
from eslint-plugin-proper-arrows.
Added a comment under #28 that mostly covers this, but I think it'd be fair to include these in the trivial category because I don't think it's reasonable to have to apply a name or more-complicated parameter name to functions that are just doing comparisons.
from eslint-plugin-proper-arrows.
I replied in the other thread to explain my thinking around "trivial". The more I think about it the more x => x <= y
is absolutely not "trivial" IMO, for the reasons stated there.
from eslint-plugin-proper-arrows.
Related Issues (20)
- Create a wizard for picking rules config
- Add "location" rule to forbid use of arrow functions in certain places HOT 1
- Add ternary `? :` to the list forbidden of concise return expressions
- Prevent arrow functions that implicitly return arrow functions HOT 1
- Allowing no name for class property functions? HOT 10
- Elision of destructured function parameters causes crash HOT 1
- add config preset(s) HOT 5
- treat `void ..` expression as "trivial" arrow body
- is @getify/proper-arrows/params needed? HOT 2
- @getify/proper-arrows/names should follow func-names schema HOT 2
- Add `id` to the default allowed list of short params HOT 5
- False positive on object destructuring in arrow function parameters HOT 4
- Errors when disabling the rules in Create React App HOT 4
- some "where" rules do not notify warning/error on text editors HOT 8
- Include delegations under trivial functions HOT 5
- Bug (?): Not identifying module-level arrow functions HOT 4
- `where` rule global option detects passing arrow as callback on module level as violation HOT 3
- Add setting to disallow "arrow function declarations" at the global/top level HOT 18
- Ignoring React components defined as an arrow function HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eslint-plugin-proper-arrows.