-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.js
121 lines (120 loc) · 4.84 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
'use strict';
// See https://stylelint.io/user-guide/rules/.
module.exports = {
extends: ['stylelint-config-standard-scss'],
plugins: ['stylelint-order', 'stylelint-declaration-strict-value'],
rules: {
'color-named': 'never',
'declaration-block-no-shorthand-property-overrides': true,
'declaration-no-important': true,
'selector-max-id': 0,
'selector-max-type': [
2,
{ ignore: ['child', 'compounded', 'next-sibling'] },
],
'selector-class-pattern': [
// Loose pattern for hyphenated BEM. This also allows simple words to be used as class names, .e.g. `.active`, `.button`.
// Based on:
// - https://github.com/postcss/postcss-bem-linter/issues/89#issuecomment-255482072
// - https://gist.github.com/Potherca/f2a65491e63338659c3a0d2b07eee382
// See also: https://github.com/simonsmith/stylelint-selector-bem-pattern.
// Proceed with caution if reviewing this – and use https://regexper.com.
/^[a-z]+(-[a-z0-9]+)*(__[a-z0-9]+(-[a-z0-9]+)*)?(--[a-z0-9]+(-[a-z0-9]+)*)?$/,
{ resolveNestedSelectors: true },
],
'keyframes-name-pattern': null,
'custom-media-pattern': null,
'custom-property-pattern': null,
'selector-id-pattern': null,
'alpha-value-notation': null,
'color-function-notation': null,
'max-nesting-depth': 4,
'selector-max-specificity': '0,4,0',
// Normally: `complex`. Disabled due to backwards-compatibility concerns.
'selector-not-notation': null,
'value-no-vendor-prefix': true,
'property-no-vendor-prefix': true,
'selector-no-vendor-prefix': true,
'media-feature-name-no-vendor-prefix': true,
// Normally: `context`. Disabled due to backwards-compatibility concerns.
'media-feature-range-notation': null,
// Normally: `true`. Disabled due to backwards-compatibility concerns.
'scss/no-global-function-names': null,
'declaration-empty-line-before': null,
'no-descending-specificity': null,
'at-rule-no-vendor-prefix': true,
'at-rule-no-unknown': null,
'declaration-block-no-redundant-longhand-properties': null,
'shorthand-property-no-redundant-values': null,
'at-rule-empty-line-before': null,
// Replaces previously-used `a11y/no-text-align-justify`.
'declaration-property-value-disallowed-list': {
'text-align': ['justify'],
},
'scss/at-rule-no-unknown': [
true,
{
ignoreAtRules: [
'tailwind',
'apply',
'variants',
'responsive',
'screen',
'layer',
],
},
],
'scss/declaration-nested-properties': 'never',
'scss/double-slash-comment-empty-line-before': null,
'scss/dollar-variable-empty-line-before': null,
'scss/selector-no-redundant-nesting-selector': true,
'scss/dollar-variable-pattern': null,
'scss/at-function-pattern': null,
'scss/percent-placeholder-pattern': '^do-not-use-placeholders$',
'scss/at-extend-no-missing-placeholder': null,
'scss/dollar-variable-no-missing-interpolation': true,
'scss/at-mixin-argumentless-call-parentheses': 'always',
'scss/at-mixin-pattern': /^[a-z0-9-]+$/,
'order/order': [
'dollar-variables',
'custom-properties',
// @-rules that have no nesting.
{ type: 'at-rule', hasBlock: false },
'declarations',
],
'scale-unlimited/declaration-strict-value': [
['color', 'fill', 'stroke', '/-color/'],
{
ignoreKeywords: [
'currentColor',
'inherit',
'transparent',
'initial',
'none',
'unset',
// System colors for forced-colors styling.
// See https://drafts.csswg.org/css-color-4/#css-system-colors.
'Canvas',
'CanvasText',
'LinkText',
'VisitedText',
'ActiveText',
'ButtonFace',
'ButtonText',
'ButtonBorder',
'Field',
'FieldText',
'Highlight',
'HighlightText',
'SelectedItem',
'SelectedItemText',
'Mark',
'MarkText',
'GrayText',
'AccentColor',
'AccentColorText',
],
},
],
},
};