proposal-numeric-separator
A proposal to add numeric literal separators in JavaScript. (by tc39)
eslint-plugin-unicorn
More than 100 powerful ESLint rules (by sindresorhus)
proposal-numeric-separator | eslint-plugin-unicorn | |
---|---|---|
12 | 39 | |
318 | 3,877 | |
- | - | |
0.0 | 8.6 | |
almost 3 years ago | 11 days ago | |
HTML | JavaScript | |
- | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
proposal-numeric-separator
Posts with mentions or reviews of proposal-numeric-separator.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-31.
- Twitter open sourced the recommendation engine
- A proposal to add numeric literal separators in JavaScript
-
Backdoors can be hidden in JS code using "invisible" variables. Code looks completely harmless.
Numeric Separators: https://github.com/tc39/proposal-numeric-separator
-
Numeric separators
GitHub - tc39/proposal-numeric-separator: A proposal to add numeric literal separators in JavaScript.
- New features in ES2021
-
ES2021 Features! 🔥
Numeric Separators
-
New ES2021 JavaScript features (now available)
📙 Proposal
-
Upcoming JavaScript Features in 2021
More info: TC39 proposal, ageek, V8
-
ES2021 new features
For more information, you can visit this link.
-
To improve readability for numbers, you can use underscore as a separator!
See https://github.com/tc39/proposal-numeric-separator for a list of examples in C++ and other languages.
eslint-plugin-unicorn
Posts with mentions or reviews of eslint-plugin-unicorn.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-02-22.
-
Anyone using the data types Map and Set IRL?
I recently scanned out codebase with https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-set-has.md and found many instances of potential "accidentally quadratic" uses of array.includes instead. gas a nice autofix to convert to set. there are some fun and sometimes useful lint rules out there...
-
this has broken my code 3 times
There’s an ESLint rule for that (albeit in a plugin)
-
Array.reduce() feels like a cheat code/superpower if you know how to use it.
Many popular eslint configs have even introduce rules to warn on its usage for these very reasons.
-
Why are functions declared inside a component instead of directly in the file.
eslint-plugin-unicorn
- es-lint rule to force arrow functions as callbacks
- 100+ ESLint rules
-
TIL about the Nullish Coalescing Operator in Javascript (??)
I find eslint-plugin-unicorn package pretty useful for updating old code. With IE11 dead and NodeJS v12 LTS sunsetting soon, it's a brave new world.
- JS Array.foreach vs for-loops, pros and cons, which do you use and why
-
Code Review chronicles: destructuring, linting and one valid reason for Typescript
Default parameters should not be passed to a function through an object literal. The foo = {a: false} parameter works fine if only used with one option. As soon as additional options are added, you risk replacing the whole foo = {a: false, b: true} object when passing only one option: {a: true}. For this reason, object destructuring should be used instead. Linter rule
What are some alternatives?
When comparing proposal-numeric-separator and eslint-plugin-unicorn you can also consider the following projects:
babel-sublime - Syntax definitions for ES6 JavaScript with React JSX extensions.
eslint-config-xo - ESLint shareable config for XO