-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc
128 lines (127 loc) · 5.28 KB
/
.stylelintrc
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
122
123
124
125
126
127
128
{
"rules": {
"at-rule-empty-line-before": ["always", {
except: ["blockless-after-same-name-blockless", "first-nested"],
ignore: ["after-comment"],
message: "Deja un espacio despues de una propiedad"
}],
"at-rule-name-case": ["lower", {
message: "Las propiedades siempre en minúsculas"
}],
"at-rule-name-space-after": "always-single-line",
"at-rule-semicolon-newline-after": ["always", {
message: "Punto y coma = return"
}],
"block-closing-brace-newline-after": ["always", {
message: "Llave = return"
}],
"block-closing-brace-newline-before": ["always", {
message: "La llave de cierre siempre va sola "
}],
"block-no-empty": [true, {
message: "Propiedad vacía, golpe de remo por gañan."
}],
"block-opening-brace-newline-after": ["always", {
message: "Llave de apertura siempre va sola"
}],
"block-opening-brace-space-before": ["always", {
message: "Propiedad y llave siempre separadas por un espacio"
}],
"color-hex-length": ["short", {
message: "¿Te gusta escribir más?"
}],
"color-no-invalid-hex": [true, {
message: "En la vida eso será un color"
}],
"comment-whitespace-inside": "always",
"declaration-bang-space-before": ["always", {
message: "Que menos que dar un poco de separación a ese !important del averno"
}],
"declaration-block-no-duplicate-properties": [true, {
message: "Propiedades repetidas. Seguro que has copiado y pegado de algún sitio."
}],
"declaration-block-no-shorthand-property-overrides": [true, {
message: "El shorthand en primer lugar. Ejemplo .foo { margin: 10px; margin-right: 5px; }"
}],
"declaration-block-semicolon-space-before": ["never", {
message: "Espacio antes del ; lo próximo será usar Bootstrap ¿no?"
}],
"declaration-block-single-line-max-declarations": [1, {
message: "Declaración por línea. La legibilidad es innegociable!!"
}],
"declaration-block-trailing-semicolon": ["always", {
message: "Te has dejado un ; nada más que decir ¿no?"
}],
"declaration-colon-space-after": ["always", {
message: "Después de : siempre se deja espacio"
}],
"declaration-colon-space-before": ["never", {
message: "Antes de los : jamás se deja espacio"
}],
"function-calc-no-unspaced-operator": [true, {
message: "Los operadores matematicos siempre van acompañados de un espacio, antes y después. Siempre"
}],
"function-comma-space-after": "always",
"function-linear-gradient-no-nonstandard-direction": true,
"function-max-empty-lines": 0,
"function-name-case": ["lower", {
message: "Minúsculas"
}],
"function-whitespace-after": ["always", {
message: "spacebar"
}],
"keyframe-declaration-no-important": [true, {
message: "quita ese important"
}],
"max-empty-lines": 1,
"max-nesting-depth": [2, {
message: "No, no y no. Deja de abusar del nesting"
}],
"media-feature-colon-space-after": "always",
"media-feature-colon-space-before": "never",
"media-feature-range-operator-space-after": "always",
"media-feature-range-operator-space-before": "always",
"media-query-list-comma-newline-after": "always-multi-line",
"media-query-list-comma-space-after": "always-single-line",
"media-query-list-comma-space-before": "never",
"no-eol-whitespace": [true, {
message: "A borrar los espacios"
}],
"no-extra-semicolons": [true, {
message: "Te sobra un ;"
}],
"no-duplicate-selectors": true,
"number-leading-zero": ["never", {
message: "Escribiendo ceros de más"
}],
"number-no-trailing-zeros": [true, {
message: "Sobran ceros"
}],
"property-case": ["lower", {
message: "En minúsculas"
}],
"selector-attribute-brackets-space-inside": "never",
"selector-attribute-operator-space-after": "never",
"selector-attribute-operator-space-before": "never",
"selector-combinator-space-after": ["always", {
message: "Espacio entre selectores"
}],
"selector-combinator-space-before": ["always", {
message: "Espacio entre selectores"
}],
"selector-list-comma-newline-after": "always",
"selector-list-comma-space-before": "never",
"selector-max-empty-lines": 0,
"selector-pseudo-class-no-unknown": true,
"selector-pseudo-class-parentheses-space-inside": "never",
"selector-pseudo-element-colon-notation": ["single", {
message: "Doble para IE8. Estamos en 2018."
}],
"selector-pseudo-element-no-unknown": true,
"selector-type-no-unknown": true,
"shorthand-property-no-redundant-values": true,
"string-no-newline": true,
"unit-case": "lower",
"unit-no-unknown": true
},
}