

Enable ESLint rule no-loss-of-precision
source link: https://bugzilla.mozilla.org/show_bug.cgi?id=1730126
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Enable ESLint rule no-loss-of-precision
Categories
(Firefox Build System :: Lint and Formatting, task, P3)
Tracking
(firefox95 fixed)
95 Branch
People
(Reporter: standard8, Assigned: riasangwan1999, Mentored)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug, Whiteboard: [lang=js])
no-loss-of-precision is enabled by default in ESLint v8. I think we can enable this ahead of time.
The current failures are test-only, so there is no adverse effects on the product. However, it feels like we should be aware of possible issues when running tests, so enabling it would be good.
I'm happy to mentor this.
The rule no-loss-of-precision
needs adding to recommended.js as an error.
Once the rule has been added you can run ./mach eslint
to find all the instances it fails, and then fix those up. You can also run ./mach eslint path/to/file
to run ESLint on a specific file or directory.
You can also install an editor integration to make it easier when editing files.
For instructions on how to get your local build of Firefox up and running and submit your patch, see https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Note this bug will be auto-assigned when the first patch is attached.
Sure, as far I as know no-one else is working on it. Note it'll be assigned when the first patch is attached.
What will be the further process with this issue? I am not sure what is the issue with the failing test case. Please guide me.
Thanks!
Recommend
-
18
Details When we upgraded to ESLint 6, we disabled the no-async-promise-executor rule for various files as it wasn't a quick enable. This bug is for dom/ and the final file in netwerk/
-
9
Closed Bug 1684905 Opened 26 days ago Closed 25 days ago...
-
10
Closed Bug 1687235 Opened 1 month ago Closed 25 days ago...
-
7
Tutorial How To Enable Linting on Save with Visual Studio Code and ESLint JavaScript Intro...
-
8
Closed Bug 1729460 Opened 1 month ago Closed 1 month ago...
-
12
Closed Bug 1727591 Opened 2 months ago Closed 2 months ago ...
-
12
Closed Bug 1460100 Opened 4 years ago Closed 17 days ago...
-
6
Closed Bug 1656282 Opened 1 year ago Closed 15 days ago
-
6
The most important ESLint rule: max-params ...
-
7
Closed Bug 1843797...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK