@aarongoldenthal/stylelint-config-standard 15.0.0 → 17.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.
Files changed (3) hide show
  1. package/LICENSE +1 -1
  2. package/index.js +18 -5
  3. package/package.json +24 -20
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2021 - 2023 Aaron Goldenthal
3
+ Copyright (c) 2021 - 2024 Aaron Goldenthal
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/index.js CHANGED
@@ -1,14 +1,16 @@
1
1
  /* eslint-disable unicorn/no-null -- null required to disable rules */
2
- 'use strict';
3
-
4
- module.exports = {
2
+ export default {
5
3
  overrides: [
6
4
  {
7
5
  customSyntax: 'postcss-html',
8
6
  files: ['**/*.html', '**/*.handlebars']
9
7
  }
10
8
  ],
11
- plugins: ['stylelint-order'],
9
+ plugins: [
10
+ 'stylelint-declaration-strict-value',
11
+ 'stylelint-order',
12
+ 'stylelint-use-logical-spec'
13
+ ],
12
14
  reportDescriptionlessDisables: true,
13
15
  reportInvalidScopeDisables: true,
14
16
  reportNeedlessDisables: true,
@@ -133,6 +135,7 @@ module.exports = {
133
135
  }
134
136
  ],
135
137
  'length-zero-no-unit': true,
138
+ 'lightness-notation': 'percentage',
136
139
  'max-nesting-depth': null,
137
140
  'media-feature-name-allowed-list': null,
138
141
  'media-feature-name-disallowed-list': null,
@@ -241,6 +244,16 @@ module.exports = {
241
244
  }
242
245
  ],
243
246
  // eslint-disable-next-line sort-keys -- keep plugin rules separate
244
- 'order/properties-alphabetical-order': true
247
+ 'order/properties-alphabetical-order': true,
248
+ // eslint-disable-next-line sort-keys -- keep plugin rules separate
249
+ 'liberty/use-logical-spec': 'always',
250
+ 'scale-unlimited/declaration-strict-value': [
251
+ '/color$/',
252
+ {
253
+ expandShorthand: true,
254
+ ignoreValues: ['inherit', 'transparent', 'currentColor'],
255
+ recurseLonghand: true
256
+ }
257
+ ]
245
258
  }
246
259
  };
package/package.json CHANGED
@@ -1,17 +1,19 @@
1
1
  {
2
2
  "name": "@aarongoldenthal/stylelint-config-standard",
3
- "version": "15.0.0",
3
+ "version": "17.0.0",
4
4
  "description": "Standard StyleLint configuration settings",
5
- "main": "index.js",
5
+ "exports": "./index.js",
6
+ "type": "module",
6
7
  "scripts": {
7
- "hooks-pre-commit": "npm run lint && npm run prettier-check",
8
- "hooks-pre-push": "npm audit --audit-level=high && npm test",
9
- "lint": "npm run lint-js && npm run lint-md",
10
- "lint-js": "eslint .",
11
- "lint-md": "markdownlint-cli2 \"**/*.md\" \"#node_modules\"",
12
- "prettier-check": "prettier --check .",
13
- "prettier-fix": "prettier --write .",
14
- "test": "jest --ci --config jest.config.json"
8
+ "hooks:pre-commit": "npm run lint && npm run prettier:check",
9
+ "hooks:pre-push": "npm audit --audit-level=high && npm test",
10
+ "lint": "npm run lint:js && npm run lint:md",
11
+ "lint:js": "eslint .",
12
+ "lint:md": "markdownlint-cli2 \"**/*.md\" \"#node_modules\"",
13
+ "prettier:check": "prettier --check .",
14
+ "prettier:fix": "prettier --write .",
15
+ "test": "vitest run --coverage",
16
+ "test:no-coverage": "vitest run"
15
17
  },
16
18
  "repository": {
17
19
  "type": "git",
@@ -23,7 +25,7 @@
23
25
  "author": "Aaron Goldenthal <npm@aarongoldenthal.com>",
24
26
  "license": "MIT",
25
27
  "engines": {
26
- "node": "^16.13.0 || ^18.12.0 || >=20.0.0"
28
+ "node": "^18.12.0 || >=20.0.0"
27
29
  },
28
30
  "files": [
29
31
  "index.js"
@@ -34,18 +36,20 @@
34
36
  "homepage": "https://gitlab.com/gitlab-ci-utils/node/stylelint-config-standard",
35
37
  "dependencies": {
36
38
  "postcss-html": "1.5.0",
37
- "stylelint-order": "6.0.3"
39
+ "stylelint-declaration-strict-value": "1.10.4",
40
+ "stylelint-order": "6.0.4",
41
+ "stylelint-use-logical-spec": "5.0.1"
38
42
  },
39
43
  "devDependencies": {
40
- "@aarongoldenthal/eslint-config-standard": "23.0.0",
41
- "eslint": "8.45.0",
42
- "jest": "29.6.1",
43
- "jest-junit": "16.0.0",
44
- "markdownlint-cli2": "0.8.1",
45
- "prettier": "3.0.0",
46
- "stylelint": "15.10.2"
44
+ "@aarongoldenthal/eslint-config-standard": "25.0.0",
45
+ "@vitest/coverage-v8": "1.1.3",
46
+ "eslint": "8.56.0",
47
+ "markdownlint-cli2": "0.11.0",
48
+ "prettier": "3.1.1",
49
+ "stylelint": "16.1.0",
50
+ "vitest": "1.1.3"
47
51
  },
48
52
  "peerDependencies": {
49
- "stylelint": "^15.8.0"
53
+ "stylelint": "^16.1.0"
50
54
  }
51
55
  }