@deot/dev-stylelint 2.8.1 → 2.8.3

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