-
Notifications
You must be signed in to change notification settings - Fork 511
Fix #1908: Issue 1908 grunt-lesslint update #1941
Fix #1908: Issue 1908 grunt-lesslint update #1941
Conversation
|
Now would be the perfect time to fix the associated linting issues, too. |
|
@Pomax does that mean I need to fix all these files to meet with the new update? |
|
@badrmodoukh in each of this separate PRs, fix whatever fall out you find from changing things. This is the value of doing them all as separate PRs vs. one giant change, since you can easily deal with things one problem at a time. Also, later on we can |
|
@Pomax @humphd I tried to order alphabetically for the css and less files but I kept getting warnings for the files Also for the known-properties warning the file Therefore as a result, I decided to turn these rules off in the Gruntfile. |
|
Assigning @flukeout to see what he wants to do here. |
gideonthomas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I vote to just set order-alphabetical to be false because I think alphabetically ordering classes is overkill (what do you think @flukeout?).
However, I think we should keep known-properties since it is useful in catching typos in the less file.
Gruntfile.js
Outdated
| "font-sizes": false, | ||
| "ids": false, | ||
| "important": false, | ||
| "known-properties": false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's remove this and fix the less errors (it seems like they are mostly all filter: alpha(opacity); which we can safely change to opacity: ##). Note that when you change filter to opacity, you will need to divide the filter value by 100, so for e.g. 45 will become 0.45.
There is one error generated by normalize.less. We should probably not lint that file since they lint it already (we probably want to switch to npm installing this at some point). You just need to add an entry to src above with "!./public/editor/stylesheets/normalize.less"
|
@gideonthomas I modified Gruntfile.js so that we can use the known-properties rule. I also added |
8422993 to
a151302
Compare
… to src to not get checked
…oukh/thimble.mozilla.org into issue-1908-grunt-lesslint-update
|
I'm good with this change, nice work @badrmodoukh! @flukeout wanna do a quick review? |
|
We would do this with webpack since that's what we're switching to. Feel free to contribute to that change. Closing in favor of that. |
@Pomax @humphd I have updated the grunt-lesslint dependency
I tested using "npm install" and all seems to work fine from my end
However when I ran "npm test" I got many warnings from the less and css files
This is what it showed




The warnings are from the rules
known-propertiesandorder-alphabeticalI'm guessing all of these files need to be modified to meet with the new update
However, I am not sure if I should change these files or ignore these rules for now by modifying the Gruntfile.js file or return to the previous version