Skip to content

Commit

Permalink
MDL-56423 stylelint: ignore custom.css files
Browse files Browse the repository at this point in the history
The files have non-standard css syntax and with stylelint 7.4.1
it can no longer cope with it.
  • Loading branch information
danpoltawski committed Oct 13, 2016
1 parent 5c8445b commit 36650f1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Generated by "grunt ignorefiles"
theme/bootstrapbase/style/
theme/clean/style/custom.css
theme/more/style/custom.css
node_modules/
vendor/
auth/cas/CAS/
Expand Down
7 changes: 6 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,12 @@ module.exports = function(grunt) {
var eslintIgnores = ['# Generated by "grunt ignorefiles"', '*/**/yui/src/*/meta/', '*/**/build/'].concat(thirdPartyPaths);
grunt.file.write('.eslintignore', eslintIgnores.join('\n'));
// Generate .stylelintignore.
var stylelintIgnores = ['# Generated by "grunt ignorefiles"', 'theme/bootstrapbase/style/'].concat(thirdPartyPaths);
var stylelintIgnores = [
'# Generated by "grunt ignorefiles"',
'theme/bootstrapbase/style/',
'theme/clean/style/custom.css',
'theme/more/style/custom.css'
].concat(thirdPartyPaths);
grunt.file.write('.stylelintignore', stylelintIgnores.join('\n'));
};

Expand Down
2 changes: 1 addition & 1 deletion theme/clean/style/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ img.small-logo {

/* Custom CSS Settings
-------------------------*/
[[setting:customcss]] /* stylelint-disable-line */
[[setting:customcss]]
2 changes: 1 addition & 1 deletion theme/more/style/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ img.small-logo {

/* Custom CSS Settings
-------------------------*/
[[setting:customcss]] /* stylelint-disable-line */
[[setting:customcss]]

0 comments on commit 36650f1

Please sign in to comment.