@firefoxic/stylelint-config 4.0.0 → 6.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/README.md CHANGED
@@ -39,4 +39,4 @@ export default {
39
39
  [npm-image]: https://badge.fury.io/js/@firefoxic%2Fstylelint-config.svg
40
40
 
41
41
  [test-url]: https://github.com/firefoxic/stylelint-config/actions
42
- [test-image]: https://github.com/firefoxic/stylelint-config/actions/workflows/test.yml/badge.svg?branch=main
42
+ [test-image]: https://github.com/firefoxic/stylelint-config/actions/workflows/test.yaml/badge.svg?branch=main
package/package.json CHANGED
@@ -1,58 +1,52 @@
1
1
  {
2
- "name": "@firefoxic/stylelint-config",
3
- "description": "Shared config for stylelint by firefoxic.",
4
- "version": "4.0.0",
5
- "license": "MIT",
6
- "author": {
7
- "name": "Sergey Artemov",
8
- "email": "firefoxic.dev@gmail.com"
9
- },
10
- "homepage": "https://github.com/firefoxic/stylelint-config#readme",
11
- "bugs": {
12
- "url": "https://github.com/firefoxic/stylelint-config/issues"
13
- },
14
- "repository": {
15
- "type": "git",
16
- "url": "git+https://github.com/firefoxic/stylelint-config.git"
17
- },
18
- "type": "module",
19
- "exports": "./stylelint.config.js",
20
- "files": [
21
- "./stylelint.config.js"
22
- ],
23
- "engines": {
24
- "node": "^18.12 || >=20.9"
25
- },
26
- "peerDependencies": {
27
- "stylelint": "^16.8.1"
28
- },
29
- "dependencies": {
30
- "@stylistic/stylelint-plugin": "^3.0.0",
31
- "stylelint-gamut": "^1.3.4",
32
- "stylelint-plugin-logical-css": "^1.2.1"
33
- },
34
- "devDependencies": {
35
- "@firefoxic/eslint-config": "^2.1.0",
36
- "@firefoxic/update-changelog": "^0.2.0",
37
- "eslint": "^9.9.0",
38
- "husky": "^9.1.4",
39
- "stylelint": "^16.8.1"
40
- },
41
- "keywords": [
42
- "config",
43
- "css",
44
- "lint",
45
- "linter",
46
- "linting",
47
- "style",
48
- "stylelint"
49
- ],
50
- "scripts": {
51
- "lint": "eslint",
52
- "pretest": "pnpm lint",
53
- "test": "node --test",
54
- "preversion": "pnpm test",
55
- "version": "update-changelog",
56
- "postversion": "pnpm publish --provenance --access public --no-git-checks"
57
- }
58
- }
2
+ "name": "@firefoxic/stylelint-config",
3
+ "description": "Shared config for stylelint by firefoxic.",
4
+ "version": "6.0.0",
5
+ "license": "MIT",
6
+ "author": {
7
+ "name": "Sergey Artemov",
8
+ "email": "firefoxic.dev@gmail.com"
9
+ },
10
+ "homepage": "https://github.com/firefoxic/stylelint-config#readme",
11
+ "bugs": {
12
+ "url": "https://github.com/firefoxic/stylelint-config/issues"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/firefoxic/stylelint-config.git"
17
+ },
18
+ "type": "module",
19
+ "exports": "./stylelint.config.js",
20
+ "files": [
21
+ "./stylelint.config.js"
22
+ ],
23
+ "engines": {
24
+ "node": ">=20.19"
25
+ },
26
+ "peerDependencies": {
27
+ "stylelint": "^17.1.0"
28
+ },
29
+ "dependencies": {
30
+ "@stylistic/stylelint-plugin": "^5.0.1",
31
+ "stylelint-gamut": "^1.3.4",
32
+ "stylelint-plugin-logical-css": "^1.2.3"
33
+ },
34
+ "scripts": {
35
+ "help": "make help",
36
+ "eslint": "eslint"
37
+ },
38
+ "devDependencies": {
39
+ "@firefoxic/eslint-config": "^6.0.1",
40
+ "eslint": "^9.39.2",
41
+ "stylelint": "^17.1.0"
42
+ },
43
+ "keywords": [
44
+ "config",
45
+ "css",
46
+ "lint",
47
+ "linter",
48
+ "linting",
49
+ "style",
50
+ "stylelint"
51
+ ]
52
+ }
@@ -11,25 +11,19 @@ export default {
11
11
  `always`,
12
12
  {
13
13
  except: [
14
- `first-nested`,
15
14
  `blockless-after-same-name-blockless`,
15
+ `first-nested`,
16
16
  ],
17
17
  ignore: [`after-comment`],
18
18
  },
19
19
  ],
20
20
  "at-rule-no-unknown": true,
21
21
  "at-rule-no-vendor-prefix": true,
22
- "block-no-empty": [
23
- true,
24
- {
25
- ignore: [`comments`],
26
- },
27
- ],
22
+ "block-no-empty": true,
23
+ "color-function-alias-notation": `without-alpha`,
28
24
  "color-function-notation": `modern`,
29
- "color-hex-alpha": `never`,
30
- "color-hex-length": `long`,
31
25
  "color-named": `never`,
32
- "color-no-invalid-hex": true,
26
+ "color-no-hex": true,
33
27
  "comment-no-empty": true,
34
28
  "custom-property-no-missing-var-function": true,
35
29
  "declaration-block-no-duplicate-custom-properties": true,
@@ -37,30 +31,8 @@ export default {
37
31
  "declaration-block-no-shorthand-property-overrides": true,
38
32
  "declaration-block-single-line-max-declarations": 0,
39
33
  "declaration-no-important": true,
40
- "declaration-property-value-disallowed-list": {
41
- display: [
42
- `inline-block`,
43
- `inline-table`,
44
- `inline-flex`,
45
- `inline-grid`,
46
- `inline`,
47
- `block`,
48
- `flex`,
49
- `grid`,
50
- `table`,
51
- `list-item`,
52
- `flow-root`,
53
- ],
54
- },
55
- "declaration-property-value-no-unknown": [
56
- true,
57
- // See: https://github.com/stylelint/stylelint/issues/7241
58
- {
59
- typesSyntax: {
60
- color: `| oklch( [ <percentage> | <number> | none] [ <percentage> | <number> | none] [ <hue> | none] [ / [<alpha-value> | none] ]? )`,
61
- },
62
- },
63
- ],
34
+ "declaration-property-value-no-unknown": true,
35
+ "display-notation": `full`,
64
36
  "font-family-name-quotes": `always-where-required`,
65
37
  "font-family-no-duplicate-names": [
66
38
  true,
@@ -150,7 +122,6 @@ export default {
150
122
  "@stylistic/block-opening-brace-newline-after": `always`,
151
123
  "@stylistic/block-opening-brace-space-after": `always-single-line`,
152
124
  "@stylistic/block-opening-brace-space-before": `always`,
153
- "@stylistic/color-hex-case": `lower`,
154
125
  "@stylistic/declaration-bang-space-after": `never`,
155
126
  "@stylistic/declaration-bang-space-before": `always`,
156
127
  "@stylistic/declaration-block-semicolon-newline-after": `always`,