Closed Bug 1921095 Opened 2 years ago Closed 1 year ago

Set up tests for custom Stylelint rules

Categories

(Developer Infrastructure :: Lint and Formatting, task)

task

Tracking

(firefox137 fixed)

RESOLVED FIXED
137 Branch
Tracking Status
firefox137 --- fixed

People

(Reporter: hjones, Assigned: hjones)

References

(Blocks 1 open bug)

Details

(Whiteboard: [recomp])

Attachments

(1 file)

We're setting up Mozilla-specific Stylelint rules/plugins in Bug 1838298. Ideally we would have tests for any custom rules we add, similar to what we do for our ESLint plugin. Stylelint has instructions for how to setup testing for custom plugins. I expect we'll want to use stylelint-test-rule-node.

Blocks: 1948141

This patch sets up basic tests for our custom stylelint plugin. Additional work to get these running on automation will be done in bug 1948141 if we're alright with this approach.

Assignee: nobody → hjones
Status: NEW → ASSIGNED
Whiteboard: [recomp]
Pushed by hjones@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/20d49e8b1f9c set up tests for stylelint-plugin-mozilla r=frontend-codestyle-reviewers,Standard8
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: