@pengzhanbo/stylelint-config 0.2.8 → 0.2.10
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 +70 -0
- package/dist/index.d.ts +68 -0
- package/dist/index.mjs +68 -0
- package/package.json +31 -4
- package/index.js +0 -66
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = {
|
|
4
|
+
extends: [
|
|
5
|
+
"stylelint-config-standard",
|
|
6
|
+
"stylelint-config-recess-order",
|
|
7
|
+
"stylelint-config-prettier"
|
|
8
|
+
],
|
|
9
|
+
ignoreFiles: [
|
|
10
|
+
"dist",
|
|
11
|
+
"*.d.ts",
|
|
12
|
+
"*.js",
|
|
13
|
+
"*.ts",
|
|
14
|
+
"*.min.*",
|
|
15
|
+
"LICENSE*",
|
|
16
|
+
"public",
|
|
17
|
+
"temp",
|
|
18
|
+
"package-lock.json",
|
|
19
|
+
"pnpm-lock.yaml",
|
|
20
|
+
"yarn.lock",
|
|
21
|
+
"__snapshots__"
|
|
22
|
+
],
|
|
23
|
+
overrides: [
|
|
24
|
+
{
|
|
25
|
+
files: ["*.scss", "**/*.scss"],
|
|
26
|
+
customSyntax: "postcss-scss",
|
|
27
|
+
extends: ["stylelint-config-standard-scss"]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
files: ["*.vue", "**/*.vue"],
|
|
31
|
+
customSyntax: "postcss-html",
|
|
32
|
+
extends: ["stylelint-config-recommended-vue"]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
files: ["*.html", "**/*.html", "*.htm", "**/*.htm"],
|
|
36
|
+
customSyntax: "postcss-html"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
rules: {
|
|
40
|
+
"at-rule-no-unknown": [
|
|
41
|
+
true,
|
|
42
|
+
{
|
|
43
|
+
ignoreAtRules: [
|
|
44
|
+
"tailwind",
|
|
45
|
+
"apply",
|
|
46
|
+
"variants",
|
|
47
|
+
"responsive",
|
|
48
|
+
"screen",
|
|
49
|
+
"function",
|
|
50
|
+
"if",
|
|
51
|
+
"each",
|
|
52
|
+
"include",
|
|
53
|
+
"mixin"
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"unit-no-unknown": [true, { ignoreUnits: ["rpx"] }],
|
|
58
|
+
"color-function-notation": "legacy",
|
|
59
|
+
"alpha-value-notation": "number",
|
|
60
|
+
"selector-class-pattern": null,
|
|
61
|
+
"selector-pseudo-class-no-unknown": [
|
|
62
|
+
true,
|
|
63
|
+
{
|
|
64
|
+
ignorePseudoClasses: ["deep", "global"]
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
module.exports = index;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
var index = {
|
|
2
|
+
extends: [
|
|
3
|
+
"stylelint-config-standard",
|
|
4
|
+
"stylelint-config-recess-order",
|
|
5
|
+
"stylelint-config-prettier"
|
|
6
|
+
],
|
|
7
|
+
ignoreFiles: [
|
|
8
|
+
"dist",
|
|
9
|
+
"*.d.ts",
|
|
10
|
+
"*.js",
|
|
11
|
+
"*.ts",
|
|
12
|
+
"*.min.*",
|
|
13
|
+
"LICENSE*",
|
|
14
|
+
"public",
|
|
15
|
+
"temp",
|
|
16
|
+
"package-lock.json",
|
|
17
|
+
"pnpm-lock.yaml",
|
|
18
|
+
"yarn.lock",
|
|
19
|
+
"__snapshots__"
|
|
20
|
+
],
|
|
21
|
+
overrides: [
|
|
22
|
+
{
|
|
23
|
+
files: ["*.scss", "**/*.scss"],
|
|
24
|
+
customSyntax: "postcss-scss",
|
|
25
|
+
extends: ["stylelint-config-standard-scss"]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
files: ["*.vue", "**/*.vue"],
|
|
29
|
+
customSyntax: "postcss-html",
|
|
30
|
+
extends: ["stylelint-config-recommended-vue"]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
files: ["*.html", "**/*.html", "*.htm", "**/*.htm"],
|
|
34
|
+
customSyntax: "postcss-html"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
rules: {
|
|
38
|
+
"at-rule-no-unknown": [
|
|
39
|
+
true,
|
|
40
|
+
{
|
|
41
|
+
ignoreAtRules: [
|
|
42
|
+
"tailwind",
|
|
43
|
+
"apply",
|
|
44
|
+
"variants",
|
|
45
|
+
"responsive",
|
|
46
|
+
"screen",
|
|
47
|
+
"function",
|
|
48
|
+
"if",
|
|
49
|
+
"each",
|
|
50
|
+
"include",
|
|
51
|
+
"mixin"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"unit-no-unknown": [true, { ignoreUnits: ["rpx"] }],
|
|
56
|
+
"color-function-notation": "legacy",
|
|
57
|
+
"alpha-value-notation": "number",
|
|
58
|
+
"selector-class-pattern": null,
|
|
59
|
+
"selector-pseudo-class-no-unknown": [
|
|
60
|
+
true,
|
|
61
|
+
{
|
|
62
|
+
ignorePseudoClasses: ["deep", "global"]
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export { index as default };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
const index = {
|
|
2
|
+
extends: [
|
|
3
|
+
"stylelint-config-standard",
|
|
4
|
+
"stylelint-config-recess-order",
|
|
5
|
+
"stylelint-config-prettier"
|
|
6
|
+
],
|
|
7
|
+
ignoreFiles: [
|
|
8
|
+
"dist",
|
|
9
|
+
"*.d.ts",
|
|
10
|
+
"*.js",
|
|
11
|
+
"*.ts",
|
|
12
|
+
"*.min.*",
|
|
13
|
+
"LICENSE*",
|
|
14
|
+
"public",
|
|
15
|
+
"temp",
|
|
16
|
+
"package-lock.json",
|
|
17
|
+
"pnpm-lock.yaml",
|
|
18
|
+
"yarn.lock",
|
|
19
|
+
"__snapshots__"
|
|
20
|
+
],
|
|
21
|
+
overrides: [
|
|
22
|
+
{
|
|
23
|
+
files: ["*.scss", "**/*.scss"],
|
|
24
|
+
customSyntax: "postcss-scss",
|
|
25
|
+
extends: ["stylelint-config-standard-scss"]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
files: ["*.vue", "**/*.vue"],
|
|
29
|
+
customSyntax: "postcss-html",
|
|
30
|
+
extends: ["stylelint-config-recommended-vue"]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
files: ["*.html", "**/*.html", "*.htm", "**/*.htm"],
|
|
34
|
+
customSyntax: "postcss-html"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
rules: {
|
|
38
|
+
"at-rule-no-unknown": [
|
|
39
|
+
true,
|
|
40
|
+
{
|
|
41
|
+
ignoreAtRules: [
|
|
42
|
+
"tailwind",
|
|
43
|
+
"apply",
|
|
44
|
+
"variants",
|
|
45
|
+
"responsive",
|
|
46
|
+
"screen",
|
|
47
|
+
"function",
|
|
48
|
+
"if",
|
|
49
|
+
"each",
|
|
50
|
+
"include",
|
|
51
|
+
"mixin"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"unit-no-unknown": [true, { ignoreUnits: ["rpx"] }],
|
|
56
|
+
"color-function-notation": "legacy",
|
|
57
|
+
"alpha-value-notation": "number",
|
|
58
|
+
"selector-class-pattern": null,
|
|
59
|
+
"selector-pseudo-class-no-unknown": [
|
|
60
|
+
true,
|
|
61
|
+
{
|
|
62
|
+
ignorePseudoClasses: ["deep", "global"]
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export { index as default };
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pengzhanbo/stylelint-config",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"author": "pengzhanbo <q942450674@outlook.com> (https://github/pengzhanbo/)",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"homepage": "https://github.com/pengzhanbo/configs",
|
|
6
|
+
"homepage": "https://github.com/pengzhanbo/configs#readme",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git@github.com:pengzhanbo/configs.git",
|
|
@@ -12,10 +12,30 @@
|
|
|
12
12
|
"keywords": [
|
|
13
13
|
"stylelint-config"
|
|
14
14
|
],
|
|
15
|
-
"
|
|
15
|
+
"type": "module",
|
|
16
|
+
"main": "dist/index.cjs",
|
|
17
|
+
"module": "dist/index.mjs",
|
|
18
|
+
"types": "dist/index.d.ts",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"require": "./dist/index.cjs",
|
|
22
|
+
"import": "./dist/index.mjs"
|
|
23
|
+
},
|
|
24
|
+
"./package.json": "./package.json"
|
|
25
|
+
},
|
|
16
26
|
"files": [
|
|
17
|
-
"
|
|
27
|
+
"dist"
|
|
18
28
|
],
|
|
29
|
+
"unbuild": {
|
|
30
|
+
"entries": [
|
|
31
|
+
"./src/index"
|
|
32
|
+
],
|
|
33
|
+
"declaration": true,
|
|
34
|
+
"clean": true,
|
|
35
|
+
"rollup": {
|
|
36
|
+
"emitCJS": true
|
|
37
|
+
}
|
|
38
|
+
},
|
|
19
39
|
"dependencies": {
|
|
20
40
|
"postcss": "^8.4.18",
|
|
21
41
|
"postcss-html": "^1.5.0",
|
|
@@ -29,5 +49,12 @@
|
|
|
29
49
|
},
|
|
30
50
|
"peerDependencies": {
|
|
31
51
|
"stylelint": ">=14.10.0"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"unbuild": "^0.8.11"
|
|
55
|
+
},
|
|
56
|
+
"scripts": {
|
|
57
|
+
"build": "unbuild",
|
|
58
|
+
"stub": "unbuild --stub"
|
|
32
59
|
}
|
|
33
60
|
}
|
package/index.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
extends: [
|
|
3
|
-
'stylelint-config-standard',
|
|
4
|
-
'stylelint-config-recess-order',
|
|
5
|
-
'stylelint-config-prettier',
|
|
6
|
-
],
|
|
7
|
-
ignoreFiles: [
|
|
8
|
-
'dist',
|
|
9
|
-
'*.d.ts',
|
|
10
|
-
'*.js',
|
|
11
|
-
'*.ts',
|
|
12
|
-
'*.min.*',
|
|
13
|
-
'LICENSE*',
|
|
14
|
-
'public',
|
|
15
|
-
'temp',
|
|
16
|
-
'package-lock.json',
|
|
17
|
-
'pnpm-lock.yaml',
|
|
18
|
-
'yarn.lock',
|
|
19
|
-
'__snapshots__',
|
|
20
|
-
],
|
|
21
|
-
overrides: [
|
|
22
|
-
{
|
|
23
|
-
files: ['*.scss', '**/*.scss'],
|
|
24
|
-
customSyntax: 'postcss-scss',
|
|
25
|
-
extends: ['stylelint-config-standard-scss'],
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
files: ['*.vue', '**/*.vue'],
|
|
29
|
-
customSyntax: 'postcss-html',
|
|
30
|
-
extends: ['stylelint-config-recommended-vue'],
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
files: ['*.html', '**/*.html', '*.htm', '**/*.htm'],
|
|
34
|
-
customSyntax: 'postcss-html',
|
|
35
|
-
},
|
|
36
|
-
],
|
|
37
|
-
rules: {
|
|
38
|
-
'at-rule-no-unknown': [
|
|
39
|
-
true,
|
|
40
|
-
{
|
|
41
|
-
ignoreAtRules: [
|
|
42
|
-
'tailwind',
|
|
43
|
-
'apply',
|
|
44
|
-
'variants',
|
|
45
|
-
'responsive',
|
|
46
|
-
'screen',
|
|
47
|
-
'function',
|
|
48
|
-
'if',
|
|
49
|
-
'each',
|
|
50
|
-
'include',
|
|
51
|
-
'mixin',
|
|
52
|
-
],
|
|
53
|
-
},
|
|
54
|
-
],
|
|
55
|
-
'unit-no-unknown': [true, { ignoreUnits: ['rpx'] }],
|
|
56
|
-
'color-function-notation': 'legacy',
|
|
57
|
-
'alpha-value-notation': 'number',
|
|
58
|
-
'selector-class-pattern': null,
|
|
59
|
-
'selector-pseudo-class-no-unknown': [
|
|
60
|
-
true,
|
|
61
|
-
{
|
|
62
|
-
ignorePseudoClasses: ['deep', 'global'],
|
|
63
|
-
},
|
|
64
|
-
],
|
|
65
|
-
},
|
|
66
|
-
}
|