Open Bug 1542636 Opened 5 years ago Updated 3 years ago

[META]Set up ESLint for SeaMonkey and fix up the source using it

Categories

(SeaMonkey :: General, task)

task
Not set
normal

Tracking

(seamonkey2.53? affected)

Tracking Status
seamonkey2.53 ? affected

People

(Reporter: frg, Assigned: frg)

References

(Depends on 1 open bug, )

Details

(Keywords: meta)

User Story

For comm-central

setup lint:
mach eslint --setup

List potential issues (run in comm):
../mach lint -l eslint suite

Autofix all (run in comm):
../mach lint -l eslint suite --fix
Takes care of about 10000 but produces an unreviewable big patch. Needs to be broken down.

Attachments

(2 files)

Formating in suite is inconsistent and there is currently no way to check new patches for conformity or simple errors. Given the fact that we more or less trail TB and Fx today we should use the same formating as the other products for easier porting and potential problem discovery.

TB has set up lint and code cleanup in mail and mailnews is still ongoing.
ESLint is currently disabled for suite. We should set it up in the long term.
Even with a broken c-c build the code is still mostly the same for esr60 which is not done yet so cleaning up c-c and backporting should be easy.

Attached file lint.zip

With lint enabled around 19139 issues are reported. This need to be filtered and exceptions set up but most formatting issues are valid and easy to fix.

Attached patch enablelint.patchSplinter Review

quick and dirty patch to enable lint in local repos.

Assignee: nobody → frgrahl
User Story: (updated)
Depends on: 1542641
Depends on: 1723376
Summary: Set up ESLint for SeaMonkey → Set up ESLint for SeaMonkey and fix up the source using it
Summary: Set up ESLint for SeaMonkey and fix up the source using it → [META]Set up ESLint for SeaMonkey and fix up the source using it
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: