Skip to content

Commit

Permalink
Release 2.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ronilaukkarinen committed Feb 15, 2023
1 parent 94143cb commit 0b10221
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 60 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ insert_final_newline = true
[*.js]
quote_type = single

[*.scss]
quote_type = single

[*.md]
charset = unset
end_of_line = unset
Expand Down
59 changes: 7 additions & 52 deletions .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,26 @@
{
"fontSize": 10,
"ignore": [
"-4px",
"-3px",
"-2px",
"-1px",
"1px",
"2px",
"3px",
"4px"
],
"ignoreFunctions": [
"url"
"url",
"clamp-calc"
],
"ignoreAtRules": [
"media"
]
}
],
"plugin/file-max-lines": 200,
"declaration-property-value-no-unknown": true,
"declaration-property-value-no-unknown": null,
"scss/at-mixin-argumentless-call-parentheses": null,
"scss/double-slash-comment-empty-line-before": null,
"scss/at-rule-conditional-no-parentheses": null,
Expand All @@ -67,74 +71,26 @@
"alpha-value-notation": "number",
"declaration-block-no-redundant-longhand-properties": null,
"custom-property-empty-line-before": "never",
"block-closing-brace-empty-line-before": "never",
"property-case": "lower",
"color-no-invalid-hex": true,
"color-hex-case": "lower",
"color-hex-length": "short",
"selector-pseudo-element-case": "lower",
"selector-type-case": "lower",
"selector-pseudo-class-parentheses-space-inside": "never",
"function-parentheses-space-inside": "never",
"function-name-case": "lower",
"function-max-empty-lines": 0,
"max-empty-lines": 1,
"max-line-length": null,
"unit-case": "lower",
"selector-pseudo-class-case": "lower",
"selector-attribute-brackets-space-inside": "never",
"selector-attribute-quotes": "always",
"selector-combinator-space-after": "always",
"selector-combinator-space-before": "always",
"selector-descendant-combinator-no-non-space": true,
"comment-whitespace-inside": "always",
"indentation": 2,
"linebreaks": "unix",
"selector-max-specificity": "0,4,4",
"block-no-empty": true,
"declaration-empty-line-before": null,
"number-leading-zero": "never",
"number-no-trailing-zeros": true,
"value-list-comma-newline-after": "never-multi-line",
"selector-list-comma-newline-after": "always",
"declaration-colon-space-before": "never",
"declaration-block-trailing-semicolon": "always",
"no-eol-whitespace": true,
"no-empty-first-line": true,
"no-missing-end-of-source-newline": true,
"block-opening-brace-newline-after": "always",
"block-closing-brace-newline-after": [
"always-multi-line",
{
"ignoreAtRules": [
"if",
"else"
]
}
],
"string-quotes": null,
"media-feature-colon-space-after": "always",
"media-feature-colon-space-before": "never",
"media-feature-parentheses-space-inside": "never",
"media-feature-range-operator-space-after": "always",
"media-feature-range-operator-space-before": "always",
"media-query-list-comma-newline-after": "never-multi-line",
"media-feature-name-case": "lower",
"font-family-no-missing-generic-family-keyword": true,
"font-family-name-quotes": "always-where-required",
"at-rule-no-unknown": null,
"no-invalid-position-at-import-rule": null,
"declaration-no-important": true,
"comment-empty-line-before": null,
"at-rule-semicolon-space-before": "never",
"at-rule-name-space-after": "always",
"at-rule-name-case": "lower",
"scss/at-else-empty-line-before": "never",
"function-url-quotes": "always",
"unit-no-unknown": true,
"property-no-unknown": true,
"no-duplicate-selectors": true,
"no-extra-semicolons": true,
"length-zero-no-unit": true,
"font-weight-notation": "numeric",
"number-max-precision": 3,
Expand All @@ -149,7 +105,6 @@
"selector-no-qualifying-type": null,
"declaration-block-no-duplicate-properties": true,
"no-unknown-animations": true,
"selector-pseudo-element-colon-notation": "double",
"shorthand-property-no-redundant-values": true,
"declaration-block-single-line-max-declarations": 1,
"value-keyword-case": [
Expand Down Expand Up @@ -268,4 +223,4 @@
"background"
]
}
}
}
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
### [Unreleased]: 2023-02-15
### 2.5.3: 2023-02-15

* Update root font size for rem-over-px
* Ignore -1px in rem-over-px
* Add missing postcss-scss
* Remove deprecated rules
* Update .editorconfig
* Update stylelint-config-standard-scss
* Unit tests for stylelint packages

### 2.5.2: 2023-02-15

Expand Down
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,27 @@ If you'd like to contribute to this repository or test out the packages, please
2. Clone your fork
3. Get the [test data](https://files.servepics.com/content-1649685325.zip) and unpack it to your devpackages folder
4. Run `npm install` and `gulp`

## Unit tests for stylelint packages

```bash
cd path/to/repo
mkdir -p content
mkdir -p content/themes
content/themes/THEMENAME
content/themes/THEMENAME/sass
echo "@charset 'utf-8';
body {
background: #f00;
color: red !important;
font-size: 2rem;
@media (max-width: 600px) {
border: 2px solid red;
}
}
" > content/themes/THEMENAME/sass/global.scss
npm i
gulp stylelint
```
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "PROJECTNAME",
"version": "2.5.2",
"version": "2.5.3",
"description": "PROJECTNAME powered by dudestack + devpackages",
"author": "Digitoimisto Dude Oy (moro@dude.fi)",
"devDependencies": {
Expand All @@ -18,7 +18,7 @@
"babel-loader": "^9.1.2",
"babel-preset-airbnb": "^5.0.0",
"browser-sync": "^2.27.11",
"caniuse-lite": "^1.0.30001451",
"caniuse-lite": "^1.0.30001452",
"cssnano": "^5.1.14",
"cssnano-preset-advanced": "^5.3.9",
"eslint": "^8.34.0",
Expand Down Expand Up @@ -49,21 +49,22 @@
"postcss-minify-gradients": "^5.1.1",
"postcss-normalize-positions": "^5.1.1",
"postcss-normalize-url": "^5.1.0",
"postcss-scss": "^4.0.6",
"postcss-unique-selectors": "^5.1.1",
"postcss-zindex": "^5.1.0",
"sass": "^1.58.0",
"sass": "^1.58.1",
"stylelint": "^15.1.0",
"stylelint-config-recommended": "^10.0.1",
"stylelint-config-recommended-scss": "^9.0.0",
"stylelint-config-recommended-scss": "^9.0.1",
"stylelint-config-standard": "^30.0.1",
"stylelint-config-standard-scss": "^7.0.0",
"stylelint-config-standard-scss": "^7.0.1",
"stylelint-file-max-lines": "^1.0.0",
"stylelint-order": "^6.0.2",
"stylelint-rem-over-px": "^0.0.4",
"stylelint-rem-over-px": "^1.0.0",
"stylelint-scss": "^4.4.0",
"terser-webpack-plugin": "^5.3.6",
"vinyl-named": "^1.1.0",
"webpack": "^5.75.0",
"webpack-stream": "^7.0.0"
}
}
}

0 comments on commit 0b10221

Please sign in to comment.