forked from monkeytypegame/monkeytype
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstylelint.config.mjs
More file actions
76 lines (65 loc) · 3.35 KB
/
stylelint.config.mjs
File metadata and controls
76 lines (65 loc) · 3.35 KB
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
/** @type {import('stylelint').Config} */
export default {
extends: ["stylelint-config-standard"],
rules: {
"font-family-no-missing-generic-family-keyword": [
true,
{
ignoreFontFamilies: [
"Font Awesome",
"Font Awesome Brands",
"Gallaudet",
],
},
], //default: true
"at-rule-no-unknown": [
true,
{ ignoreAtRules: ["theme", "utility", "tailwind", "apply", "source"] },
], // source for lightningCss and the rest for tailwind //default: true
"selector-type-no-unknown": [
true,
{ ignore: ["custom-elements"], ignoreTypes: ["letter", "hint"] },
], // default: [true, {ignore: ['custom-elements'],},]
"length-zero-no-unit": null, // default: [true, {ignore: ['custom-properties'], ignorePreludeOfAtRules: ['function', 'mixin'],},]
"value-keyword-case": null, // default: lower
"at-rule-empty-line-before": null, // default: ['always', {except: ['blockless-after-same-name-blockless', 'first-nested'], ignore: ['after-comment'],},]
"comment-empty-line-before": null, // default: ['always', {except: ['first-nested'], ignore: ['stylelint-commands'],},]
"custom-property-empty-line-before": null, // default: 'custom-property-empty-line-before': ['always',{except: ['after-custom-property', 'first-nested'],ignore: ['after-comment', 'inside-single-line-block'],},]
"declaration-empty-line-before": null, // default: ['always', {except: ['after-declaration', 'first-nested'], ignore: ['after-comment', 'inside-single-line-block'],},]
"rule-empty-line-before": null, // default: ['always-multi-line', {except: ['first-nested'], ignore: ['after-comment'],},]
"alpha-value-notation": null, // default: ['percentage',{exceptProperties: ['opacity','fill-opacity','flood-opacity','stop-opacity','stroke-opacity',],},]
"color-function-alias-notation": null, // default: without-alpha
"color-function-notation": null, // default: modern
"color-hex-length": null, // default: short
"hue-degree-notation": null, // default: angle
"import-notation": null, // default: url
"media-feature-range-notation": null, // default: context
"selector-not-notation": null, // default: complex
// default pattern for these rules is a kebab case pattern
"custom-property-pattern": null,
"keyframes-name-pattern": null,
"selector-class-pattern": null,
"selector-id-pattern": null,
"declaration-block-no-redundant-longhand-properties": null,
"shorthand-property-no-redundant-values": null,
"comment-whitespace-inside": null, // default: always
},
overrides: [
{
files: ["**/*.scss"],
extends: ["stylelint-config-standard-scss"],
rules: {
"no-invalid-position-at-import-rule": null, // consider adding // default: [true, {ignoreAtRules: ['use', 'forward'],},]
"at-rule-no-unknown": null, // use "scss/at-rule-no-unknown" to override this
"scss/at-extend-no-missing-placeholder": null,
"scss/load-no-partial-leading-underscore": null,
"scss/load-partial-extension": null, // default: never,
"scss/no-global-function-names": null,
"scss/dollar-variable-pattern": null,
"scss/double-slash-comment-empty-line-before": null,
"scss/double-slash-comment-whitespace-inside": null,
},
},
],
ignoreFiles: ["**/dist/**", "**/coverage/**"],
};