@alfalab/stylelint-core-vars 2.1.1 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # stylelint-core-vars
2
2
 
3
+ ## 3.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#120](https://github.com/core-ds/arui-presets-lint/pull/120) [`b6cbb1a`](https://github.com/core-ds/arui-presets-lint/commit/b6cbb1a87847682cecd1c7a73809020f17f7fb55) Thanks [@kiskv](https://github.com/kiskv)! - Обновление stylelint до 17 версии, минимальная версия node теперь - 20.19.0
8
+
3
9
  ## 2.1.1
4
10
 
5
11
  ### Patch Changes
package/dist/lib/index.js CHANGED
@@ -60,7 +60,7 @@ const checkVars = (decl, result, context, ruleName, matcher, shouldReport, optio
60
60
  }
61
61
  const originalValueIndex = previousValues.reduce((acc, sub) => (acc > sub.index + sub.diff ? acc - sub.diff : acc), substitution.index);
62
62
  if (shouldReport(substitution.fixable, fixed)) {
63
- const index = originalValueIndex + prop.length + (raws.between?.length ?? 0) + substitution.index;
63
+ const index = originalValueIndex + prop.length + (raws.between?.length ?? 0);
64
64
  const endIndex = index + substitution.value.length;
65
65
  const messageFn = messages[ruleName].expected;
66
66
  stylelint.utils.report({
package/dist/lib/utils.js CHANGED
@@ -245,8 +245,7 @@ function getVarsGroup(varsSet) {
245
245
  return Object.keys(vars).find((group) => vars[group] === varsSet);
246
246
  }
247
247
  function sortVarsByUsage(arr, sortingArr) {
248
- // eslint-disable-next-line unicorn/no-array-sort -- toSorted требует es2023, проект на es2022
249
- return arr.slice().sort((a, b) => {
248
+ return arr.toSorted((a, b) => {
250
249
  const aUsage = a.slice(2).split('-')[2];
251
250
  const bUsage = b.slice(2).split('-')[2];
252
251
  const aIndex = sortingArr.indexOf(aUsage);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/stylelint-core-vars",
3
- "version": "2.1.1",
3
+ "version": "3.0.0",
4
4
  "description": "core-components css linter",
5
5
  "license": "MIT",
6
6
  "author": "core-ds contributors",
@@ -33,14 +33,14 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@manypkg/get-packages": "^3.1.0",
36
- "postcss": "^8.5.6"
36
+ "postcss": "^8.5.13"
37
37
  },
38
38
  "devDependencies": {},
39
39
  "peerDependencies": {
40
- "stylelint": "^16.0.0"
40
+ "stylelint": "^17.0.0"
41
41
  },
42
42
  "engines": {
43
- "node": ">=18.12.0"
43
+ "node": ">=20.19.0"
44
44
  },
45
45
  "publishConfig": {
46
46
  "access": "public"