@dvukovic/style-guide 0.2.0 → 0.3.1

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.
@@ -1,63 +1,68 @@
1
1
  /** @type {import("stylelint").Config} */
2
2
  const stylelint = {
3
3
  rules: {
4
- "no-descending-specificity": true,
5
- "declaration-block-no-duplicate-properties": true,
6
- "font-family-no-duplicate-names": true,
7
- "keyframe-block-no-duplicate-selectors": true,
8
- "no-duplicate-at-import-rules": true,
9
- "no-duplicate-selectors": true,
4
+ "alpha-value-notation": "percentage",
5
+ "annotation-no-unknown": true,
6
+ "at-rule-empty-line-before": [
7
+ "always",
8
+ { ignore: ["first-nested", "after-comment"] },
9
+ ],
10
+ "at-rule-no-unknown": true,
11
+ "at-rule-no-vendor-prefix": true,
10
12
  "block-no-empty": true,
11
- "comment-no-empty": true,
12
- "no-empty-source": true,
13
+ "color-function-notation": "modern",
14
+ "color-hex-alpha": "never",
15
+ "color-hex-length": "long",
16
+ "color-named": "never",
13
17
  "color-no-invalid-hex": true,
18
+ "comment-empty-line-before": ["always", { except: ["first-nested"] }],
19
+ "comment-no-empty": true,
20
+ "custom-property-empty-line-before": "never",
21
+ "custom-property-no-missing-var-function": true,
22
+ "declaration-block-no-duplicate-properties": true,
23
+ "declaration-block-no-redundant-longhand-properties": [
24
+ true,
25
+ { ignoreShorthands: "grid-template" },
26
+ ],
27
+ "declaration-block-no-shorthand-property-overrides": true,
28
+ "declaration-no-important": true,
29
+ "declaration-property-value-no-unknown": true,
30
+ "font-family-name-quotes": "always-where-required",
31
+ "font-family-no-duplicate-names": true,
32
+ "font-family-no-missing-generic-family-keyword": true,
33
+ "font-weight-notation": "numeric",
14
34
  "function-calc-no-unspaced-operator": true,
35
+ "function-linear-gradient-no-nonstandard-direction": true,
36
+ "function-name-case": "lower",
37
+ "function-no-unknown": true,
38
+ "function-url-no-scheme-relative": true,
39
+ "function-url-quotes": "always",
40
+ "hue-degree-notation": "angle",
41
+ "import-notation": "string",
42
+ "keyframe-block-no-duplicate-selectors": true,
15
43
  "keyframe-declaration-no-important": true,
44
+ "keyframe-selector-notation": "percentage",
45
+ "length-zero-no-unit": true,
46
+ "lightness-notation": "percentage",
47
+ "media-feature-name-no-unknown": true,
48
+ "media-feature-name-no-vendor-prefix": true,
49
+ "media-feature-name-value-no-unknown": true,
50
+ "media-feature-range-notation": "prefix",
16
51
  "media-query-no-invalid": true,
17
52
  "named-grid-areas-no-invalid": true,
53
+ "no-descending-specificity": true,
54
+ "no-duplicate-at-import-rules": true,
55
+ "no-duplicate-selectors": true,
56
+ "no-empty-source": true,
18
57
  "no-invalid-double-slash-comments": true,
19
58
  "no-invalid-position-at-import-rule": true,
20
- "string-no-newline": true,
21
59
  "no-irregular-whitespace": true,
22
- "custom-property-no-missing-var-function": true,
23
- "font-family-no-missing-generic-family-keyword": true,
24
- "function-linear-gradient-no-nonstandard-direction": true,
25
- "declaration-block-no-shorthand-property-overrides": true,
26
- "selector-anb-no-unmatchable": true,
27
- "annotation-no-unknown": true,
28
- "at-rule-no-unknown": true,
29
- "declaration-property-value-no-unknown": true,
30
- "function-no-unknown": true,
31
- "media-feature-name-no-unknown": true,
32
- "media-feature-name-value-no-unknown": true,
33
60
  "no-unknown-animations": true,
34
61
  "no-unknown-custom-media": true,
35
62
  "no-unknown-custom-properties": true,
63
+ "number-max-precision": 3,
36
64
  "property-no-unknown": true,
37
- "selector-pseudo-class-no-unknown": true,
38
- "selector-pseudo-element-no-unknown": true,
39
- "selector-type-no-unknown": true,
40
- "unit-no-unknown": true,
41
- "at-rule-no-vendor-prefix": true,
42
- "color-hex-alpha": "never",
43
- "color-named": "never",
44
- "declaration-no-important": true,
45
- "function-url-no-scheme-relative": true,
46
- "length-zero-no-unit": true,
47
- "media-feature-name-no-vendor-prefix": true,
48
65
  "property-no-vendor-prefix": true,
49
- "selector-no-vendor-prefix": true,
50
- "unit-allowed-list": ["px", "rem", "%"],
51
- "value-no-vendor-prefix": true,
52
- "function-name-case": "lower",
53
- "selector-type-case": "lower",
54
- "value-keyword-case": "lower",
55
- "at-rule-empty-line-before": [
56
- "always",
57
- { ignore: ["first-nested", "after-comment"] },
58
- ],
59
- "comment-empty-line-before": ["always", { except: ["first-nested"] }],
60
- "custom-property-empty-line-before": "never",
61
66
  "rule-empty-line-before": [
62
67
  "always",
63
68
  {
@@ -65,26 +70,21 @@ const stylelint = {
65
70
  ignore: ["first-nested", "after-comment"],
66
71
  },
67
72
  ],
68
- "number-max-precision": 3,
69
- "alpha-value-notation": "percentage",
70
- "color-function-notation": "modern",
71
- "color-hex-length": "long",
72
- "font-weight-notation": "numeric",
73
- "hue-degree-notation": "angle",
74
- "import-notation": "string",
75
- "keyframe-selector-notation": "percentage",
76
- "lightness-notation": "percentage",
77
- "media-feature-range-notation": "prefix",
73
+ "selector-anb-no-unmatchable": true,
74
+ "selector-attribute-quotes": "always",
75
+ "selector-no-vendor-prefix": true,
78
76
  "selector-not-notation": "complex",
77
+ "selector-pseudo-class-no-unknown": true,
79
78
  "selector-pseudo-element-colon-notation": "single",
80
- "font-family-name-quotes": "always-where-required",
81
- "function-url-quotes": "always",
82
- "selector-attribute-quotes": "always",
79
+ "selector-pseudo-element-no-unknown": true,
80
+ "selector-type-case": "lower",
81
+ "selector-type-no-unknown": true,
83
82
  "shorthand-property-no-redundant-values": true,
84
- "declaration-block-no-redundant-longhand-properties": [
85
- true,
86
- { ignoreShorthands: "grid-template" },
87
- ],
83
+ "string-no-newline": true,
84
+ "unit-allowed-list": ["px", "rem", "%"],
85
+ "unit-no-unknown": true,
86
+ "value-keyword-case": "lower",
87
+ "value-no-vendor-prefix": true,
88
88
  },
89
89
  }
90
90