diff --git a/.stylelintrc b/.stylelintrc index 450374b..0316f6c 100644 --- a/.stylelintrc +++ b/.stylelintrc @@ -38,7 +38,7 @@ "rem-over-px/rem-over-px": [ true, { - "fontSize": 10, + "fontSize": 16, "ignore": [ "-4px", "-3px", @@ -91,8 +91,7 @@ "no-duplicate-selectors": true, "length-zero-no-unit": true, "font-weight-notation": "numeric", - "number-leading-zero": "never", - "number-max-precision": 3, + "number-max-precision": 4, "selector-class-pattern": null, "selector-max-class": 4, "selector-max-combinators": 3, @@ -207,4 +206,4 @@ "background" ] } -} \ No newline at end of file +} diff --git a/CHANGELOG.md b/CHANGELOG.md index 41fb78a..c46afea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +### 2.6.0: 2024-11-25 + +* Remove postcss plugins postcss-minify-font-values and postcss-discard-unused +* Update stylelintrc rules to match air-light 9.4.6-dev + ### 2.5.9: 2024-10-25 * Remove declaration-property-unit-allowed-list diff --git a/gulp/tasks/devstyles.js b/gulp/tasks/devstyles.js index f41b5d7..c7adc9a 100644 --- a/gulp/tasks/devstyles.js +++ b/gulp/tasks/devstyles.js @@ -11,10 +11,8 @@ const autoprefixer = require('autoprefixer'); const calcFunction = require('postcss-calc'); const colormin = require('postcss-colormin'); const discardEmpty = require('postcss-discard-empty'); -const discardUnused = require('postcss-discard-unused'); const mergeLonghand = require('postcss-merge-longhand'); const mergeAdjacentRules = require('postcss-merge-rules'); -const minifyFontValues = require('postcss-minify-font-values'); const minifyGradients = require('postcss-minify-gradients'); const normalizePositions = require('postcss-normalize-positions'); const normalizeUrl = require('postcss-normalize-url'); @@ -40,10 +38,8 @@ function devstyles() { colormin(), calcFunction(), discardEmpty(), - discardUnused(), mergeLonghand(), mergeAdjacentRules(), - minifyFontValues(), minifyGradients(), normalizePositions(), normalizeUrl(), diff --git a/gulp/tasks/prodstyles.js b/gulp/tasks/prodstyles.js index 1ac2ebb..bc85fd6 100644 --- a/gulp/tasks/prodstyles.js +++ b/gulp/tasks/prodstyles.js @@ -10,10 +10,8 @@ const cssnano = require('cssnano'); const calcFunction = require('postcss-calc'); const colormin = require('postcss-colormin'); const discardEmpty = require('postcss-discard-empty'); -const discardUnused = require('postcss-discard-unused'); const mergeLonghand = require('postcss-merge-longhand'); const mergeAdjacentRules = require('postcss-merge-rules'); -const minifyFontValues = require('postcss-minify-font-values'); const minifyGradients = require('postcss-minify-gradients'); const normalizePositions = require('postcss-normalize-positions'); const normalizeUrl = require('postcss-normalize-url'); @@ -34,10 +32,8 @@ function prodstyles() { colormin(), calcFunction(), discardEmpty(), - discardUnused(), mergeLonghand(), mergeAdjacentRules(), - minifyFontValues(), minifyGradients(), normalizePositions(), normalizeUrl(), diff --git a/package.json b/package.json index 19a60fb..ce9bca9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "PROJECTNAME", - "version": "2.5.9", + "version": "2.6.0", "description": "PROJECTNAME powered by dudestack + devpackages", "author": "Digitoimisto Dude Oy (moro@dude.fi)", "devDependencies": { @@ -42,10 +42,8 @@ "postcss-calc": "^8.2.4", "postcss-colormin": "^5.3.0", "postcss-discard-empty": "^5.1.1", - "postcss-discard-unused": "^5.1.0", "postcss-merge-longhand": "^5.1.7", "postcss-merge-rules": "^5.1.3", - "postcss-minify-font-values": "^5.1.0", "postcss-minify-gradients": "^5.1.1", "postcss-normalize-positions": "^5.1.1", "postcss-normalize-url": "^5.1.0", @@ -53,17 +51,17 @@ "postcss-unique-selectors": "^5.1.1", "postcss-zindex": "^5.1.0", "sass": "^1.58.1", - "stylelint": "^15.1.0", + "stylelint": "^15.6.2", "stylelint-config-recommended": "^10.0.1", "stylelint-config-recommended-scss": "^9.0.1", "stylelint-config-standard": "^30.0.1", "stylelint-config-standard-scss": "^7.0.1", "stylelint-order": "^6.0.2", - "stylelint-rem-over-px": "^1.0.0", + "stylelint-rem-over-px": "^1.0.2", "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" } -} \ No newline at end of file +}