cfpb / development

A repository for the discussion and publication of the CFPB development team standards.
Creative Commons Zero v1.0 Universal
63 stars 32 forks source link

Linting CSS #13

Open ascott1 opened 9 years ago

ascott1 commented 9 years ago

Moving this discussion from issue #9.

From @anselmbradford

Along the lines of what @mistergone is saying, what about a jshint model that hints at what should be updated, but doesn't update the files directly? I'm not sure on requiring git hooks, but having an easy to turn them on would be nice.

and @jimmynotjim

Looks like grunt-recess and grunt-lesslint are the main linters people are using (going by NPM downloads). Recess also seems to have a SublimeLinter plugin for doing auto-linting.

Scotchester commented 9 years ago

This website has lots of CSS testing resources, which I have yet to thoroughly investigate: http://csste.st/

anselmbradford commented 9 years ago

Has anyone looked at https://github.com/postcss/postcss, it looks very powerful for doing post-processing, linting, etc.

ascott1 commented 9 years ago

Is this something we should be doing? Are any projects doing this now? If so, what tools are you using?

Scotchester commented 9 years ago

I definitely think we should be. I don't know of any projects actually doing it yet.

ascott1 commented 9 years ago

Discussed 07/17 in front-end meeting. Closing issue.

ascott1 commented 9 years ago

JK LOL re-opening and putting in our backlog

ascott1 commented 9 years ago

https://github.com/csscomb/csscomb.js

cfarm commented 8 years ago

Didn't folks try out CSS Comb? How did y'all like it?

jimmynotjim commented 6 years ago

We do this now with Stylelint, can we close this?

Scotchester commented 6 years ago

We do? I know we experimented, but it's not in daily use anywhere yet, is it?

jimmynotjim commented 6 years ago

It is in Capital Framework https://github.com/cfpb/capital-framework/blob/canary/scripts/gulp/lint.js#L56

anselmbradford commented 3 years ago

Stylelint used in the wild in the design system https://github.com/cfpb/design-system/blob/main/stylelint.config.js

Could be added to consumerfinance.gov repo