@deot/dev-stylelint 2.8.0 → 2.8.2

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/dist/index.cjs ADDED
@@ -0,0 +1,220 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
4
+
5
+ const configure = async () => {
6
+ return {
7
+ plugins: ["stylelint-order", "stylelint-codeguide"],
8
+ extends: ["stylelint-config-standard-scss"],
9
+ rules: {
10
+ "selector-pseudo-class-no-unknown": [
11
+ true,
12
+ {
13
+ ignorePseudoClasses: ["global"]
14
+ }
15
+ ],
16
+ "at-rule-no-unknown": [
17
+ true,
18
+ {
19
+ ignoreAtRules: [
20
+ "use",
21
+ "for",
22
+ "function",
23
+ "if",
24
+ "each",
25
+ "include",
26
+ "mixin",
27
+ "at-root",
28
+ "else",
29
+ "extend",
30
+ "return",
31
+ "debug",
32
+ "while"
33
+ ]
34
+ }
35
+ ],
36
+ "no-empty-source": null,
37
+ "named-grid-areas-no-invalid": null,
38
+ "no-descending-specificity": null,
39
+ "font-family-no-missing-generic-family-keyword": null,
40
+ "rule-empty-line-before": [
41
+ "always",
42
+ {
43
+ ignore: ["after-comment", "first-nested"]
44
+ }
45
+ ],
46
+ "function-no-unknown": null,
47
+ "unit-no-unknown": [true, { ignoreUnits: ["rpx"] }],
48
+ // stylistic
49
+ "codeguide/indentation": "tab",
50
+ "codeguide/declaration-colon-space-after": "always-single-line",
51
+ "codeguide/declaration-colon-space-before": "never",
52
+ "codeguide/declaration-block-trailing-semicolon": "always",
53
+ // Specify the alphabetical order of the attributes in the declaration block
54
+ "order/properties-order": [
55
+ "position",
56
+ "top",
57
+ "right",
58
+ "bottom",
59
+ "left",
60
+ "z-index",
61
+ "display",
62
+ "float",
63
+ "width",
64
+ "height",
65
+ "max-width",
66
+ "max-height",
67
+ "min-width",
68
+ "min-height",
69
+ "padding",
70
+ "padding-top",
71
+ "padding-right",
72
+ "padding-bottom",
73
+ "padding-left",
74
+ "margin",
75
+ "margin-top",
76
+ "margin-right",
77
+ "margin-bottom",
78
+ "margin-left",
79
+ "margin-collapse",
80
+ "margin-top-collapse",
81
+ "margin-right-collapse",
82
+ "margin-bottom-collapse",
83
+ "margin-left-collapse",
84
+ "overflow",
85
+ "overflow-x",
86
+ "overflow-y",
87
+ "clip",
88
+ "clear",
89
+ "font",
90
+ "font-family",
91
+ "font-size",
92
+ "font-smoothing",
93
+ "osx-font-smoothing",
94
+ "font-style",
95
+ "font-weight",
96
+ "hyphens",
97
+ "src",
98
+ "line-height",
99
+ "letter-spacing",
100
+ "word-spacing",
101
+ "color",
102
+ "text-align",
103
+ "text-decoration",
104
+ "text-indent",
105
+ "text-overflow",
106
+ "text-rendering",
107
+ "text-size-adjust",
108
+ "text-shadow",
109
+ "text-transform",
110
+ "word-break",
111
+ "word-wrap",
112
+ "white-space",
113
+ "vertical-align",
114
+ "list-style",
115
+ "list-style-type",
116
+ "list-style-position",
117
+ "list-style-image",
118
+ "pointer-events",
119
+ "cursor",
120
+ "background",
121
+ "background-attachment",
122
+ "background-color",
123
+ "background-image",
124
+ "background-position",
125
+ "background-repeat",
126
+ "background-size",
127
+ "border",
128
+ "border-collapse",
129
+ "border-top",
130
+ "border-right",
131
+ "border-bottom",
132
+ "border-left",
133
+ "border-color",
134
+ "border-image",
135
+ "border-top-color",
136
+ "border-right-color",
137
+ "border-bottom-color",
138
+ "border-left-color",
139
+ "border-spacing",
140
+ "border-style",
141
+ "border-top-style",
142
+ "border-right-style",
143
+ "border-bottom-style",
144
+ "border-left-style",
145
+ "border-width",
146
+ "border-top-width",
147
+ "border-right-width",
148
+ "border-bottom-width",
149
+ "border-left-width",
150
+ "border-radius",
151
+ "border-top-right-radius",
152
+ "border-bottom-right-radius",
153
+ "border-bottom-left-radius",
154
+ "border-top-left-radius",
155
+ "border-radius-topright",
156
+ "border-radius-bottomright",
157
+ "border-radius-bottomleft",
158
+ "border-radius-topleft",
159
+ "content",
160
+ "quotes",
161
+ "outline",
162
+ "outline-offset",
163
+ "opacity",
164
+ "filter",
165
+ "visibility",
166
+ "size",
167
+ "zoom",
168
+ "transform",
169
+ "box-align",
170
+ "box-flex",
171
+ "box-orient",
172
+ "box-pack",
173
+ "box-shadow",
174
+ "box-sizing",
175
+ "table-layout",
176
+ "animation",
177
+ "animation-delay",
178
+ "animation-duration",
179
+ "animation-iteration-count",
180
+ "animation-name",
181
+ "animation-play-state",
182
+ "animation-timing-function",
183
+ "animation-fill-mode",
184
+ "transition",
185
+ "transition-delay",
186
+ "transition-duration",
187
+ "transition-property",
188
+ "transition-timing-function",
189
+ "background-clip",
190
+ "backface-visibility",
191
+ "resize",
192
+ "appearance",
193
+ "user-select",
194
+ "interpolation-mode",
195
+ "direction",
196
+ "marks",
197
+ "page",
198
+ "set-link-source",
199
+ "unicode-bidi",
200
+ "speak"
201
+ ]
202
+ },
203
+ ignoreFiles: [
204
+ "**/node_modules/**",
205
+ "**/dist/**",
206
+ "**/temp/**",
207
+ "**/tmp/**",
208
+ "**/coverage/**",
209
+ "**/*.js",
210
+ "**/*.ts",
211
+ "**/*.tsx",
212
+ "**/*.jsx"
213
+ ]
214
+ };
215
+ };
216
+
217
+ const index = configure();
218
+
219
+ exports.configure = configure;
220
+ exports.default = index;
@@ -0,0 +1,62 @@
1
+ export declare const configure: () => Promise<{
2
+ plugins: string[];
3
+ extends: string[];
4
+ rules: {
5
+ 'selector-pseudo-class-no-unknown': (boolean | {
6
+ ignorePseudoClasses: string[];
7
+ })[];
8
+ 'at-rule-no-unknown': (boolean | {
9
+ ignoreAtRules: string[];
10
+ })[];
11
+ 'no-empty-source': null;
12
+ 'named-grid-areas-no-invalid': null;
13
+ 'no-descending-specificity': null;
14
+ 'font-family-no-missing-generic-family-keyword': null;
15
+ 'rule-empty-line-before': (string | {
16
+ ignore: string[];
17
+ })[];
18
+ 'function-no-unknown': null;
19
+ 'unit-no-unknown': (boolean | {
20
+ ignoreUnits: string[];
21
+ })[];
22
+ 'codeguide/indentation': string;
23
+ 'codeguide/declaration-colon-space-after': string;
24
+ 'codeguide/declaration-colon-space-before': string;
25
+ 'codeguide/declaration-block-trailing-semicolon': string;
26
+ 'order/properties-order': string[];
27
+ };
28
+ ignoreFiles: string[];
29
+ }>;
30
+
31
+ declare const _default: Promise<{
32
+ plugins: string[];
33
+ extends: string[];
34
+ rules: {
35
+ 'selector-pseudo-class-no-unknown': (boolean | {
36
+ ignorePseudoClasses: string[];
37
+ })[];
38
+ 'at-rule-no-unknown': (boolean | {
39
+ ignoreAtRules: string[];
40
+ })[];
41
+ 'no-empty-source': null;
42
+ 'named-grid-areas-no-invalid': null;
43
+ 'no-descending-specificity': null;
44
+ 'font-family-no-missing-generic-family-keyword': null;
45
+ 'rule-empty-line-before': (string | {
46
+ ignore: string[];
47
+ })[];
48
+ 'function-no-unknown': null;
49
+ 'unit-no-unknown': (boolean | {
50
+ ignoreUnits: string[];
51
+ })[];
52
+ 'codeguide/indentation': string;
53
+ 'codeguide/declaration-colon-space-after': string;
54
+ 'codeguide/declaration-colon-space-before': string;
55
+ 'codeguide/declaration-block-trailing-semicolon': string;
56
+ 'order/properties-order': string[];
57
+ };
58
+ ignoreFiles: string[];
59
+ }>;
60
+ export default _default;
61
+
62
+ export { }
package/dist/index.js ADDED
@@ -0,0 +1,215 @@
1
+ const configure = async () => {
2
+ return {
3
+ plugins: ["stylelint-order", "stylelint-codeguide"],
4
+ extends: ["stylelint-config-standard-scss"],
5
+ rules: {
6
+ "selector-pseudo-class-no-unknown": [
7
+ true,
8
+ {
9
+ ignorePseudoClasses: ["global"]
10
+ }
11
+ ],
12
+ "at-rule-no-unknown": [
13
+ true,
14
+ {
15
+ ignoreAtRules: [
16
+ "use",
17
+ "for",
18
+ "function",
19
+ "if",
20
+ "each",
21
+ "include",
22
+ "mixin",
23
+ "at-root",
24
+ "else",
25
+ "extend",
26
+ "return",
27
+ "debug",
28
+ "while"
29
+ ]
30
+ }
31
+ ],
32
+ "no-empty-source": null,
33
+ "named-grid-areas-no-invalid": null,
34
+ "no-descending-specificity": null,
35
+ "font-family-no-missing-generic-family-keyword": null,
36
+ "rule-empty-line-before": [
37
+ "always",
38
+ {
39
+ ignore: ["after-comment", "first-nested"]
40
+ }
41
+ ],
42
+ "function-no-unknown": null,
43
+ "unit-no-unknown": [true, { ignoreUnits: ["rpx"] }],
44
+ // stylistic
45
+ "codeguide/indentation": "tab",
46
+ "codeguide/declaration-colon-space-after": "always-single-line",
47
+ "codeguide/declaration-colon-space-before": "never",
48
+ "codeguide/declaration-block-trailing-semicolon": "always",
49
+ // Specify the alphabetical order of the attributes in the declaration block
50
+ "order/properties-order": [
51
+ "position",
52
+ "top",
53
+ "right",
54
+ "bottom",
55
+ "left",
56
+ "z-index",
57
+ "display",
58
+ "float",
59
+ "width",
60
+ "height",
61
+ "max-width",
62
+ "max-height",
63
+ "min-width",
64
+ "min-height",
65
+ "padding",
66
+ "padding-top",
67
+ "padding-right",
68
+ "padding-bottom",
69
+ "padding-left",
70
+ "margin",
71
+ "margin-top",
72
+ "margin-right",
73
+ "margin-bottom",
74
+ "margin-left",
75
+ "margin-collapse",
76
+ "margin-top-collapse",
77
+ "margin-right-collapse",
78
+ "margin-bottom-collapse",
79
+ "margin-left-collapse",
80
+ "overflow",
81
+ "overflow-x",
82
+ "overflow-y",
83
+ "clip",
84
+ "clear",
85
+ "font",
86
+ "font-family",
87
+ "font-size",
88
+ "font-smoothing",
89
+ "osx-font-smoothing",
90
+ "font-style",
91
+ "font-weight",
92
+ "hyphens",
93
+ "src",
94
+ "line-height",
95
+ "letter-spacing",
96
+ "word-spacing",
97
+ "color",
98
+ "text-align",
99
+ "text-decoration",
100
+ "text-indent",
101
+ "text-overflow",
102
+ "text-rendering",
103
+ "text-size-adjust",
104
+ "text-shadow",
105
+ "text-transform",
106
+ "word-break",
107
+ "word-wrap",
108
+ "white-space",
109
+ "vertical-align",
110
+ "list-style",
111
+ "list-style-type",
112
+ "list-style-position",
113
+ "list-style-image",
114
+ "pointer-events",
115
+ "cursor",
116
+ "background",
117
+ "background-attachment",
118
+ "background-color",
119
+ "background-image",
120
+ "background-position",
121
+ "background-repeat",
122
+ "background-size",
123
+ "border",
124
+ "border-collapse",
125
+ "border-top",
126
+ "border-right",
127
+ "border-bottom",
128
+ "border-left",
129
+ "border-color",
130
+ "border-image",
131
+ "border-top-color",
132
+ "border-right-color",
133
+ "border-bottom-color",
134
+ "border-left-color",
135
+ "border-spacing",
136
+ "border-style",
137
+ "border-top-style",
138
+ "border-right-style",
139
+ "border-bottom-style",
140
+ "border-left-style",
141
+ "border-width",
142
+ "border-top-width",
143
+ "border-right-width",
144
+ "border-bottom-width",
145
+ "border-left-width",
146
+ "border-radius",
147
+ "border-top-right-radius",
148
+ "border-bottom-right-radius",
149
+ "border-bottom-left-radius",
150
+ "border-top-left-radius",
151
+ "border-radius-topright",
152
+ "border-radius-bottomright",
153
+ "border-radius-bottomleft",
154
+ "border-radius-topleft",
155
+ "content",
156
+ "quotes",
157
+ "outline",
158
+ "outline-offset",
159
+ "opacity",
160
+ "filter",
161
+ "visibility",
162
+ "size",
163
+ "zoom",
164
+ "transform",
165
+ "box-align",
166
+ "box-flex",
167
+ "box-orient",
168
+ "box-pack",
169
+ "box-shadow",
170
+ "box-sizing",
171
+ "table-layout",
172
+ "animation",
173
+ "animation-delay",
174
+ "animation-duration",
175
+ "animation-iteration-count",
176
+ "animation-name",
177
+ "animation-play-state",
178
+ "animation-timing-function",
179
+ "animation-fill-mode",
180
+ "transition",
181
+ "transition-delay",
182
+ "transition-duration",
183
+ "transition-property",
184
+ "transition-timing-function",
185
+ "background-clip",
186
+ "backface-visibility",
187
+ "resize",
188
+ "appearance",
189
+ "user-select",
190
+ "interpolation-mode",
191
+ "direction",
192
+ "marks",
193
+ "page",
194
+ "set-link-source",
195
+ "unicode-bidi",
196
+ "speak"
197
+ ]
198
+ },
199
+ ignoreFiles: [
200
+ "**/node_modules/**",
201
+ "**/dist/**",
202
+ "**/temp/**",
203
+ "**/tmp/**",
204
+ "**/coverage/**",
205
+ "**/*.js",
206
+ "**/*.ts",
207
+ "**/*.tsx",
208
+ "**/*.jsx"
209
+ ]
210
+ };
211
+ };
212
+
213
+ const index = configure();
214
+
215
+ export { configure, index as default };
package/package.json CHANGED
@@ -1,9 +1,18 @@
1
1
  {
2
2
  "name": "@deot/dev-stylelint",
3
- "version": "2.8.0",
4
- "main": "index.js",
3
+ "version": "2.8.2",
4
+ "main": "dist/index.js",
5
+ "type": "module",
6
+ "types": "dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./dist/index.js",
10
+ "require": "./dist/index.cjs",
11
+ "types": "./dist/index.d.ts"
12
+ }
13
+ },
5
14
  "files": [
6
- "index.js"
15
+ "dist"
7
16
  ],
8
17
  "license": "MIT",
9
18
  "publishConfig": {
package/index.js DELETED
@@ -1,201 +0,0 @@
1
- export default {
2
- plugins: ['stylelint-order', 'stylelint-codeguide'],
3
- extends: ['stylelint-config-standard-scss'],
4
- rules: {
5
- 'selector-pseudo-class-no-unknown': [
6
- true,
7
- {
8
- ignorePseudoClasses: ['global'],
9
- }
10
- ],
11
- 'at-rule-no-unknown': [
12
- true,
13
- {
14
- ignoreAtRules: [
15
- 'use',
16
- 'for',
17
- 'function',
18
- 'if',
19
- 'each',
20
- 'include',
21
- 'mixin',
22
- 'at-root',
23
- 'else',
24
- 'extend',
25
- 'return',
26
- 'debug',
27
- 'while'
28
- ],
29
- }
30
- ],
31
- 'no-empty-source': null,
32
- 'named-grid-areas-no-invalid': null,
33
- 'no-descending-specificity': null,
34
- 'font-family-no-missing-generic-family-keyword': null,
35
- 'rule-empty-line-before': [
36
- 'always',
37
- {
38
- ignore: ['after-comment', 'first-nested'],
39
- }
40
- ],
41
- 'function-no-unknown': null,
42
- 'unit-no-unknown': [true, { ignoreUnits: ['rpx'] }],
43
-
44
- // stylistic
45
- 'codeguide/indentation': 'tab',
46
- 'codeguide/declaration-colon-space-after': 'always-single-line',
47
- 'codeguide/declaration-colon-space-before': 'never',
48
- 'codeguide/declaration-block-trailing-semicolon': 'always',
49
-
50
- // Specify the alphabetical order of the attributes in the declaration block
51
- 'order/properties-order': [
52
- 'position',
53
- 'top',
54
- 'right',
55
- 'bottom',
56
- 'left',
57
- 'z-index',
58
- 'display',
59
- 'float',
60
- 'width',
61
- 'height',
62
- 'max-width',
63
- 'max-height',
64
- 'min-width',
65
- 'min-height',
66
- 'padding',
67
- 'padding-top',
68
- 'padding-right',
69
- 'padding-bottom',
70
- 'padding-left',
71
- 'margin',
72
- 'margin-top',
73
- 'margin-right',
74
- 'margin-bottom',
75
- 'margin-left',
76
- 'margin-collapse',
77
- 'margin-top-collapse',
78
- 'margin-right-collapse',
79
- 'margin-bottom-collapse',
80
- 'margin-left-collapse',
81
- 'overflow',
82
- 'overflow-x',
83
- 'overflow-y',
84
- 'clip',
85
- 'clear',
86
- 'font',
87
- 'font-family',
88
- 'font-size',
89
- 'font-smoothing',
90
- 'osx-font-smoothing',
91
- 'font-style',
92
- 'font-weight',
93
- 'hyphens',
94
- 'src',
95
- 'line-height',
96
- 'letter-spacing',
97
- 'word-spacing',
98
- 'color',
99
- 'text-align',
100
- 'text-decoration',
101
- 'text-indent',
102
- 'text-overflow',
103
- 'text-rendering',
104
- 'text-size-adjust',
105
- 'text-shadow',
106
- 'text-transform',
107
- 'word-break',
108
- 'word-wrap',
109
- 'white-space',
110
- 'vertical-align',
111
- 'list-style',
112
- 'list-style-type',
113
- 'list-style-position',
114
- 'list-style-image',
115
- 'pointer-events',
116
- 'cursor',
117
- 'background',
118
- 'background-attachment',
119
- 'background-color',
120
- 'background-image',
121
- 'background-position',
122
- 'background-repeat',
123
- 'background-size',
124
- 'border',
125
- 'border-collapse',
126
- 'border-top',
127
- 'border-right',
128
- 'border-bottom',
129
- 'border-left',
130
- 'border-color',
131
- 'border-image',
132
- 'border-top-color',
133
- 'border-right-color',
134
- 'border-bottom-color',
135
- 'border-left-color',
136
- 'border-spacing',
137
- 'border-style',
138
- 'border-top-style',
139
- 'border-right-style',
140
- 'border-bottom-style',
141
- 'border-left-style',
142
- 'border-width',
143
- 'border-top-width',
144
- 'border-right-width',
145
- 'border-bottom-width',
146
- 'border-left-width',
147
- 'border-radius',
148
- 'border-top-right-radius',
149
- 'border-bottom-right-radius',
150
- 'border-bottom-left-radius',
151
- 'border-top-left-radius',
152
- 'border-radius-topright',
153
- 'border-radius-bottomright',
154
- 'border-radius-bottomleft',
155
- 'border-radius-topleft',
156
- 'content',
157
- 'quotes',
158
- 'outline',
159
- 'outline-offset',
160
- 'opacity',
161
- 'filter',
162
- 'visibility',
163
- 'size',
164
- 'zoom',
165
- 'transform',
166
- 'box-align',
167
- 'box-flex',
168
- 'box-orient',
169
- 'box-pack',
170
- 'box-shadow',
171
- 'box-sizing',
172
- 'table-layout',
173
- 'animation',
174
- 'animation-delay',
175
- 'animation-duration',
176
- 'animation-iteration-count',
177
- 'animation-name',
178
- 'animation-play-state',
179
- 'animation-timing-function',
180
- 'animation-fill-mode',
181
- 'transition',
182
- 'transition-delay',
183
- 'transition-duration',
184
- 'transition-property',
185
- 'transition-timing-function',
186
- 'background-clip',
187
- 'backface-visibility',
188
- 'resize',
189
- 'appearance',
190
- 'user-select',
191
- 'interpolation-mode',
192
- 'direction',
193
- 'marks',
194
- 'page',
195
- 'set-link-source',
196
- 'unicode-bidi',
197
- 'speak'
198
- ],
199
- },
200
- ignoreFiles: ['**/*.js', '**/*.jsx'],
201
- };