Closed Bug 1332624 Opened 7 years ago Closed 7 years ago

[tracking] CSS linting errors

Categories

(www.mozilla.org :: Pages & Content, defect)

Production
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: agibson, Unassigned)

References

Details

We recently added Stylelint [1] to our CI on bedrock [2] to help us automatically pick out CSS errors and styling preferences in pull requests.

[1] http://stylelint.io/
[2] https://github.com/mozilla/bedrock/pull/4567

There are currently a lot of 'warning' class linting errors in the existing Less and Sass files that make up the pages on mozorg.

This is a tracking bug for fixing those linting errors. These dependent bugs will be classed as "good first bugs" for contributors to take on.
Depends on: 1332647
Depends on: 1332650
Depends on: 1332654
Depends on: 1332663
Depends on: 1332665
Depends on: 1332667
Depends on: 1332672
Depends on: 1332674
Depends on: 1332675
Depends on: 1332677
Depends on: 1332678
Depends on: 1336385
looking at the current css (as well as fixes to the linting errors), i've noticed that there's no standardisation of whether single or double quotes should be used. 

Should this be added to the stylelint? if yes,what would be the preference? single or double?
Flags: needinfo?(agibson)
(In reply to Rachel from comment #1)
> looking at the current css (as well as fixes to the linting errors), i've
> noticed that there's no standardisation of whether single or double quotes
> should be used. 
> 
> Should this be added to the stylelint? if yes,what would be the preference?
> single or double?

Good suggestion - feel free to open a pull request to add the rule! (you can also file a bug for it if you wish, blocking this tracking bug)
Flags: needinfo?(agibson)
Preference would be single quotes looking at what we use most often.
All dependent bugs have been resolved, thanks to everyone who contributed :)

We removed all warning-level Stylelint settings in https://github.com/mozilla/bedrock/pull/4669, so going forward builds will error if any rules are broken. We're going to see how much noise this creates, and can always re-evaluate if it becomes too troublesome .
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.