@firefoxic/stylelint-config 1.0.0 → 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/README.md +9 -9
- package/package.json +8 -6
- package/stylelint.config.js +33 -12
package/README.md
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# @firefoxic/stylelint-config
|
|
2
2
|
|
|
3
|
-
[![Test Status][test-image]][test-url]
|
|
4
3
|
[![License: MIT][license-image]][license-url]
|
|
4
|
+
[![Changelog][changelog-image]][changelog-url]
|
|
5
5
|
[![NPM version][npm-image]][npm-url]
|
|
6
|
+
[![Test Status][test-image]][test-url]
|
|
6
7
|
|
|
7
8
|
Shared config for stylelint by [firefoxic](https://firefoxic.dev).
|
|
8
9
|
|
|
@@ -28,15 +29,14 @@ export default {
|
|
|
28
29
|
}
|
|
29
30
|
```
|
|
30
31
|
|
|
31
|
-
|
|
32
|
+
[license-url]: https://github.com/firefoxic/stylelint-config/blob/main/LICENSE.md
|
|
33
|
+
[license-image]: https://img.shields.io/badge/License-MIT-limegreen.svg
|
|
32
34
|
|
|
33
|
-
-
|
|
35
|
+
[changelog-url]: https://github.com/firefoxic/stylelint-config/blob/main/CHANGELOG.md
|
|
36
|
+
[changelog-image]: https://img.shields.io/badge/CHANGELOG-md-limegreen
|
|
34
37
|
|
|
35
|
-
[
|
|
36
|
-
[test-image]: https://github.com/firefoxic/stylelint-config/actions/workflows/test.yml/badge.svg?branch=main
|
|
37
|
-
|
|
38
|
-
[npm-url]: https://npmjs.org/package/firefoxic/stylelint-config
|
|
38
|
+
[npm-url]: https://npmjs.org/package/@firefoxic/stylelint-config
|
|
39
39
|
[npm-image]: https://badge.fury.io/js/@firefoxic%2Fstylelint-config.svg
|
|
40
40
|
|
|
41
|
-
[
|
|
42
|
-
[
|
|
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
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firefoxic/stylelint-config",
|
|
3
3
|
"description": "Shared config for stylelint by firefoxic.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.0.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Sergey Artemov",
|
|
@@ -27,14 +27,16 @@
|
|
|
27
27
|
"stylelint": "^16.5.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@stylistic/stylelint-plugin": "^2.1.2"
|
|
30
|
+
"@stylistic/stylelint-plugin": "^2.1.2",
|
|
31
|
+
"stylelint-gamut": "^1.3.4",
|
|
32
|
+
"stylelint-plugin-logical-css": "^1.2.1"
|
|
31
33
|
},
|
|
32
34
|
"devDependencies": {
|
|
33
|
-
"@firefoxic/eslint-config": "^
|
|
34
|
-
"@firefoxic/
|
|
35
|
-
"eslint": "^9.
|
|
35
|
+
"@firefoxic/eslint-config": "^2.0.0",
|
|
36
|
+
"@firefoxic/update-changelog": "^0.1.0",
|
|
37
|
+
"eslint": "^9.4.0",
|
|
36
38
|
"husky": "^9.0.11",
|
|
37
|
-
"stylelint": "^16.
|
|
39
|
+
"stylelint": "^16.6.1"
|
|
38
40
|
},
|
|
39
41
|
"keywords": [
|
|
40
42
|
"config",
|
package/stylelint.config.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/** @type {import('stylelint').Config} */
|
|
2
2
|
export default {
|
|
3
|
-
plugins: [
|
|
3
|
+
plugins: [
|
|
4
|
+
`@stylistic/stylelint-plugin`,
|
|
5
|
+
`stylelint-plugin-logical-css`,
|
|
6
|
+
`stylelint-gamut`,
|
|
7
|
+
],
|
|
4
8
|
rules: {
|
|
5
9
|
"annotation-no-unknown": true,
|
|
6
10
|
"at-rule-empty-line-before": [
|
|
@@ -33,6 +37,21 @@ export default {
|
|
|
33
37
|
"declaration-block-no-shorthand-property-overrides": true,
|
|
34
38
|
"declaration-block-single-line-max-declarations": 0,
|
|
35
39
|
"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
|
+
},
|
|
36
55
|
"declaration-property-value-no-unknown": true,
|
|
37
56
|
"font-family-name-quotes": `always-where-required`,
|
|
38
57
|
"font-family-no-duplicate-names": [
|
|
@@ -51,17 +70,6 @@ export default {
|
|
|
51
70
|
"keyframe-block-no-duplicate-selectors": true,
|
|
52
71
|
"keyframe-declaration-no-important": true,
|
|
53
72
|
"keyframe-selector-notation": `percentage-unless-within-keyword-only-block`,
|
|
54
|
-
"length-zero-no-unit": [
|
|
55
|
-
true,
|
|
56
|
-
{
|
|
57
|
-
ignore: [`custom-properties`],
|
|
58
|
-
ignoreFunctions: [
|
|
59
|
-
`calc`,
|
|
60
|
-
`var`,
|
|
61
|
-
`/^--/`,
|
|
62
|
-
],
|
|
63
|
-
},
|
|
64
|
-
],
|
|
65
73
|
"max-nesting-depth": [
|
|
66
74
|
2,
|
|
67
75
|
{
|
|
@@ -82,6 +90,7 @@ export default {
|
|
|
82
90
|
"no-invalid-double-slash-comments": true,
|
|
83
91
|
"no-invalid-position-at-import-rule": true,
|
|
84
92
|
"no-irregular-whitespace": true,
|
|
93
|
+
"no-unknown-custom-media": true,
|
|
85
94
|
"number-max-precision": [
|
|
86
95
|
3,
|
|
87
96
|
{
|
|
@@ -125,6 +134,11 @@ export default {
|
|
|
125
134
|
"value-keyword-case": `lower`,
|
|
126
135
|
"value-no-vendor-prefix": true,
|
|
127
136
|
|
|
137
|
+
"plugin/use-logical-properties-and-values": true,
|
|
138
|
+
"plugin/use-logical-units": true,
|
|
139
|
+
|
|
140
|
+
"gamut/color-no-out-gamut-range": true,
|
|
141
|
+
|
|
128
142
|
"@stylistic/at-rule-name-case": `lower`,
|
|
129
143
|
"@stylistic/at-rule-name-space-after": `always`,
|
|
130
144
|
"@stylistic/at-rule-semicolon-newline-after": `always`,
|
|
@@ -166,6 +180,13 @@ export default {
|
|
|
166
180
|
"@stylistic/media-query-list-comma-newline-before": `never-multi-line`,
|
|
167
181
|
"@stylistic/media-query-list-comma-space-after": `always-single-line`,
|
|
168
182
|
"@stylistic/media-query-list-comma-space-before": `never-single-line`,
|
|
183
|
+
"@stylistic/named-grid-areas-alignment": [
|
|
184
|
+
true,
|
|
185
|
+
{
|
|
186
|
+
gap: 2,
|
|
187
|
+
alignQuotes: true,
|
|
188
|
+
},
|
|
189
|
+
],
|
|
169
190
|
"@stylistic/no-eol-whitespace": true,
|
|
170
191
|
"@stylistic/no-extra-semicolons": true,
|
|
171
192
|
"@stylistic/no-missing-end-of-source-newline": true,
|