Skip to content

Commit

Permalink
Merge pull request #2239 from WPO-Foundation/stylelint
Browse files Browse the repository at this point in the history
Hello Stylelint
  • Loading branch information
tkadlec committed Aug 5, 2022
2 parents c802654 + 59e8b55 commit 640a7a3
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
www/chrome
www/css/vendor
44 changes: 44 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"rules": {
"at-rule-no-unknown": true,
"block-no-empty": true,
"color-no-invalid-hex": true,
"comment-no-empty": true,
"custom-property-no-missing-var-function": true,
"declaration-block-no-duplicate-custom-properties": true,
"declaration-block-no-duplicate-properties": [
true,
{
"ignore": ["consecutive-duplicates-with-different-values"]
}
],
"declaration-block-no-shorthand-property-overrides": true,
"font-family-no-duplicate-names": true,
"font-family-no-missing-generic-family-keyword": true,
"function-calc-no-unspaced-operator": true,
"function-linear-gradient-no-nonstandard-direction": true,
"function-no-unknown": true,
"keyframe-block-no-duplicate-selectors": true,
"keyframe-declaration-no-important": true,
"media-feature-name-no-unknown": true,
"named-grid-areas-no-invalid": true,
"no-duplicate-at-import-rules": true,
"no-duplicate-selectors": true,
"no-empty-source": true,
"no-extra-semicolons": true,
"no-invalid-double-slash-comments": true,
"no-invalid-position-at-import-rule": true,
"no-irregular-whitespace": true,
"property-no-unknown": true,
"selector-pseudo-class-no-unknown": true,
"selector-pseudo-element-no-unknown": true,
"selector-type-no-unknown": [
true,
{
"ignore": ["custom-elements"]
}
],
"string-no-newline": true,
"unit-no-unknown": true
}
}
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"format:php": "phpcbf --extensions=php,inc --standard=PSR12 --ignore=www/lib/,www/ec2/,www/resources/compiled www/ tests/ bulktest/",
"format:prettier": "npx prettier@2.7.1 --write 'www/**/*.css' 'www/**/*.js'",
"format": "composer format:php && composer format:prettier",
"lint:css": "npx stylelint@14.9.1 'www/**/*.css'",
"lint": "phpcs --standard=PSR12 www/src www/cpauth www/common",
"pre-autoload-dump": "Google\\Task\\Composer::cleanup",
"test": "phpunit --configuration tests/phpunit.xml"
Expand Down
1 change: 0 additions & 1 deletion www/pagestyle2.css
Original file line number Diff line number Diff line change
Expand Up @@ -6399,7 +6399,6 @@ th.header {
font-weight: bold;
}

*/
/* visual comparison page */

#visual_comparison .industry {
Expand Down

0 comments on commit 640a7a3

Please sign in to comment.