Update eslint config from upstream
Categories
(Thunderbird :: Testing Infrastructure, task)
Tracking
(thunderbird_esr102 unaffected)
Tracking | Status | |
---|---|---|
thunderbird_esr102 | --- | unaffected |
People
(Reporter: rjl, Assigned: rjl)
References
Details
Attachments
(3 files)
End goal is to get mach commlint -l eslint
to actually do the right thing.
However, there's some new items in m-c's .eslintrc.js
that should be brought into c-c's version.
Specifically, there's:
- configuration for .mjs files
- an "import" plugin to support linting of ES2015+ (ES6+) import/export syntax
- a couple of minor file-matching patterns to update
It would also be nice if *.xhtml files could be linted.
Assignee | ||
Comment 1•2 years ago
|
||
mach commlint -l eslint was never set up properly. EsLint is kind of thick
when it comes to how it finds and loads its configuration files. The approach
that seems to work the best is to chdir into $topsrcdir/comm and run eslint
from there. This is now automatically handled by mach commlint, making it
easier to run from a subdirectory deep in the source.
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
Include "eslint-plugin-import" and copy some rules from upstream. This plugin
lints ES6+ import/export statements.
Depends on D158724
Assignee | ||
Comment 3•2 years ago
|
||
Depends on D158725
Assignee | ||
Updated•2 years ago
|
Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/a2b929e56f66
Update mach commlint to handle eslint better. r=freaktechnik,#thunderbird-reviewers
https://hg.mozilla.org/comm-central/rev/26e987487a0f
Update ESLint config with upstream ESMify changes. r=freaktechnik,#thunderbird-reviewers
https://hg.mozilla.org/comm-central/rev/0835a02a9bbf
Run eslint --fix on tree after updating .eslintrc.r=freaktechnik,#thunderbird-reviewers
Updated•2 years ago
|
Description
•