@tomjs/stylelint 3.0.0 → 4.0.0

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.
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+
3
+ //#region src/globs.ts
4
+ const GLOB_EXCLUDE = [
5
+ "**/node_modules",
6
+ "**/dist",
7
+ "**/package-lock.json",
8
+ "**/yarn.lock",
9
+ "**/pnpm-lock.yaml",
10
+ "**/bun.lockb",
11
+ "**/output",
12
+ "**/coverage",
13
+ "**/temp",
14
+ "**/.temp",
15
+ "**/tmp",
16
+ "**/.tmp",
17
+ "**/.history",
18
+ "**/.vitepress/cache",
19
+ "**/.nuxt",
20
+ "**/.next",
21
+ "**/.svelte-kit",
22
+ "**/.vercel",
23
+ "**/.changeset",
24
+ "**/.idea",
25
+ "**/.cache",
26
+ "**/.output",
27
+ "**/.vite-inspect",
28
+ "**/.yarn",
29
+ "**/vite.config.*.timestamp-*",
30
+ "**/CHANGELOG*.md",
31
+ "**/*.min.*",
32
+ "**/LICENSE*",
33
+ "**/__snapshots__",
34
+ "**/auto-import?(s).d.ts",
35
+ "**/components.d.ts"
36
+ ];
37
+
38
+ //#endregion
39
+ //#region src/config.ts
40
+ const config = {
41
+ extends: [
42
+ "stylelint-config-recommended",
43
+ "stylelint-config-recommended-scss",
44
+ "stylelint-config-recommended-vue/scss",
45
+ "stylelint-config-html/vue",
46
+ "stylelint-config-recess-order"
47
+ ],
48
+ overrides: [{
49
+ files: ["**/*.{vue,html}"],
50
+ customSyntax: "postcss-html"
51
+ }, {
52
+ files: ["**/*.{css,scss}"],
53
+ customSyntax: "postcss-scss"
54
+ }],
55
+ rules: {
56
+ "alpha-value-notation": "number",
57
+ "color-function-notation": null,
58
+ "font-family-no-missing-generic-family-keyword": null,
59
+ "import-notation": null,
60
+ "media-feature-range-notation": "prefix",
61
+ "named-grid-areas-no-invalid": null,
62
+ "no-descending-specificity": null,
63
+ "no-duplicate-selectors": null,
64
+ "no-empty-source": null,
65
+ "rule-empty-line-before": ["always", { ignore: ["after-comment", "first-nested"] }],
66
+ "selector-class-pattern": null,
67
+ "selector-not-notation": null,
68
+ "selector-pseudo-class-no-unknown": [true, { ignorePseudoClasses: ["global", "deep"] }]
69
+ },
70
+ ignoreFiles: [
71
+ ...GLOB_EXCLUDE,
72
+ "**/*.js",
73
+ "**/*.jsx",
74
+ "**/*.tsx",
75
+ "**/*.ts"
76
+ ]
77
+ };
78
+ var config_default = config;
79
+
80
+ //#endregion
81
+ module.exports = config_default;
@@ -0,0 +1,80 @@
1
+
2
+ //#region src/globs.ts
3
+ const GLOB_EXCLUDE = [
4
+ "**/node_modules",
5
+ "**/dist",
6
+ "**/package-lock.json",
7
+ "**/yarn.lock",
8
+ "**/pnpm-lock.yaml",
9
+ "**/bun.lockb",
10
+ "**/output",
11
+ "**/coverage",
12
+ "**/temp",
13
+ "**/.temp",
14
+ "**/tmp",
15
+ "**/.tmp",
16
+ "**/.history",
17
+ "**/.vitepress/cache",
18
+ "**/.nuxt",
19
+ "**/.next",
20
+ "**/.svelte-kit",
21
+ "**/.vercel",
22
+ "**/.changeset",
23
+ "**/.idea",
24
+ "**/.cache",
25
+ "**/.output",
26
+ "**/.vite-inspect",
27
+ "**/.yarn",
28
+ "**/vite.config.*.timestamp-*",
29
+ "**/CHANGELOG*.md",
30
+ "**/*.min.*",
31
+ "**/LICENSE*",
32
+ "**/__snapshots__",
33
+ "**/auto-import?(s).d.ts",
34
+ "**/components.d.ts"
35
+ ];
36
+
37
+ //#endregion
38
+ //#region src/config.ts
39
+ const config = {
40
+ extends: [
41
+ "stylelint-config-recommended",
42
+ "stylelint-config-recommended-scss",
43
+ "stylelint-config-recommended-vue/scss",
44
+ "stylelint-config-html/vue",
45
+ "stylelint-config-recess-order"
46
+ ],
47
+ overrides: [{
48
+ files: ["**/*.{vue,html}"],
49
+ customSyntax: "postcss-html"
50
+ }, {
51
+ files: ["**/*.{css,scss}"],
52
+ customSyntax: "postcss-scss"
53
+ }],
54
+ rules: {
55
+ "alpha-value-notation": "number",
56
+ "color-function-notation": null,
57
+ "font-family-no-missing-generic-family-keyword": null,
58
+ "import-notation": null,
59
+ "media-feature-range-notation": "prefix",
60
+ "named-grid-areas-no-invalid": null,
61
+ "no-descending-specificity": null,
62
+ "no-duplicate-selectors": null,
63
+ "no-empty-source": null,
64
+ "rule-empty-line-before": ["always", { ignore: ["after-comment", "first-nested"] }],
65
+ "selector-class-pattern": null,
66
+ "selector-not-notation": null,
67
+ "selector-pseudo-class-no-unknown": [true, { ignorePseudoClasses: ["global", "deep"] }]
68
+ },
69
+ ignoreFiles: [
70
+ ...GLOB_EXCLUDE,
71
+ "**/*.js",
72
+ "**/*.jsx",
73
+ "**/*.tsx",
74
+ "**/*.ts"
75
+ ]
76
+ };
77
+ var config_default = config;
78
+
79
+ //#endregion
80
+ export { config_default as default };
package/dist/index.cjs ADDED
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ //#region src/index.ts
4
+ const config = {
5
+ extends: ["@tomjs/stylelint/config"],
6
+ plugins: ["stylelint-prettier"]
7
+ };
8
+ var src_default = config;
9
+
10
+ //#endregion
11
+ module.exports = src_default;
package/dist/index.mjs ADDED
@@ -0,0 +1,10 @@
1
+
2
+ //#region src/index.ts
3
+ const config = {
4
+ extends: ["@tomjs/stylelint/config"],
5
+ plugins: ["stylelint-prettier"]
6
+ };
7
+ var src_default = config;
8
+
9
+ //#endregion
10
+ export { src_default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomjs/stylelint",
3
- "version": "3.0.0",
3
+ "version": "4.0.0",
4
4
  "description": "stylelint config for tomjs",
5
5
  "keywords": [
6
6
  "stylelint",
@@ -24,35 +24,34 @@
24
24
  },
25
25
  "homepage": "https://github.com/tomjs/config/tree/main/packages/stylelint#readme",
26
26
  "files": [
27
- "es",
28
- "lib"
27
+ "dist"
29
28
  ],
30
- "main": "./lib/index.js",
31
- "module": "./es/index.js",
29
+ "main": "./dist/index.cjs",
30
+ "module": "./dist/index.mjs",
32
31
  "exports": {
33
32
  ".": {
34
- "require": "./lib/index.js",
35
- "import": "./es/index.js"
33
+ "require": "./dist/index.cjs",
34
+ "import": "./dist/index.mjs"
36
35
  },
37
36
  "./config": {
38
- "require": "./lib/config.js",
39
- "import": "./es/config.js"
37
+ "require": "./dist/config.cjs",
38
+ "import": "./dist/config.mjs"
40
39
  }
41
40
  },
42
41
  "dependencies": {
43
42
  "postcss": "^8.5.3",
44
43
  "postcss-html": "^1.8.0",
45
44
  "postcss-scss": "^4.0.9",
45
+ "stylelint-config-html": "^1.1.0",
46
46
  "stylelint-config-recess-order": "^6.0.0",
47
- "stylelint-config-recommended": "^15.0.0",
47
+ "stylelint-config-recommended": "^14.0.1",
48
+ "stylelint-config-recommended-scss": "^14.1.0",
48
49
  "stylelint-config-recommended-vue": "^1.6.0",
49
- "stylelint-config-standard": "^37.0.0",
50
- "stylelint-config-standard-scss": "^14.0.0",
51
50
  "stylelint-prettier": "^5.0.3"
52
51
  },
53
52
  "peerDependencies": {
54
53
  "prettier": "^3.0.0",
55
- "stylelint": "^16.13.0"
54
+ "stylelint": "^16.8.2"
56
55
  },
57
56
  "peerDependenciesMeta": {
58
57
  "prettier": {
@@ -63,7 +62,7 @@
63
62
  "node": ">=18.12.0"
64
63
  },
65
64
  "scripts": {
66
- "build": "npm run clean && vite build",
67
- "clean": "rimraf ./es ./lib"
65
+ "build": "npm run clean && rolldown -c",
66
+ "clean": "rimraf ./dist"
68
67
  }
69
68
  }
package/es/config.js DELETED
@@ -1,60 +0,0 @@
1
- const config = {
2
- extends: [
3
- "stylelint-config-standard",
4
- "stylelint-config-standard-scss",
5
- "stylelint-config-recommended-vue/scss",
6
- "stylelint-config-recess-order"
7
- ],
8
- overrides: [
9
- {
10
- files: ["**/*.{vue,html}"],
11
- customSyntax: "postcss-html"
12
- },
13
- {
14
- files: ["**/*.scss"],
15
- customSyntax: "postcss-scss"
16
- }
17
- ],
18
- rules: {
19
- "alpha-value-notation": "number",
20
- "color-function-notation": null,
21
- "font-family-no-missing-generic-family-keyword": null,
22
- "function-no-unknown": null,
23
- "import-notation": null,
24
- "media-feature-range-notation": "prefix",
25
- "named-grid-areas-no-invalid": null,
26
- "no-descending-specificity": null,
27
- "no-duplicate-selectors": null,
28
- "no-empty-source": null,
29
- "rule-empty-line-before": [
30
- "always",
31
- {
32
- ignore: ["after-comment", "first-nested"]
33
- }
34
- ],
35
- "selector-class-pattern": null,
36
- "selector-not-notation": null,
37
- "selector-pseudo-class-no-unknown": [
38
- true,
39
- {
40
- ignorePseudoClasses: ["global", "deep"]
41
- }
42
- ],
43
- "unit-no-unknown": [
44
- true,
45
- {
46
- ignoreUnits: ["rpx"]
47
- }
48
- ],
49
- "selector-type-no-unknown": [
50
- true,
51
- {
52
- ignoreTypes: ["page", "rich-text", "scroll-view"]
53
- }
54
- ]
55
- },
56
- ignoreFiles: ["**/*.js", "**/*.jsx", "**/*.tsx", "**/*.ts"]
57
- };
58
- export {
59
- config as default
60
- };
package/es/index.js DELETED
@@ -1,7 +0,0 @@
1
- const index = {
2
- extends: ["./config"],
3
- plugins: ["stylelint-prettier"]
4
- };
5
- export {
6
- index as default
7
- };
package/lib/config.js DELETED
@@ -1,59 +0,0 @@
1
- "use strict";
2
- const config = {
3
- extends: [
4
- "stylelint-config-standard",
5
- "stylelint-config-standard-scss",
6
- "stylelint-config-recommended-vue/scss",
7
- "stylelint-config-recess-order"
8
- ],
9
- overrides: [
10
- {
11
- files: ["**/*.{vue,html}"],
12
- customSyntax: "postcss-html"
13
- },
14
- {
15
- files: ["**/*.scss"],
16
- customSyntax: "postcss-scss"
17
- }
18
- ],
19
- rules: {
20
- "alpha-value-notation": "number",
21
- "color-function-notation": null,
22
- "font-family-no-missing-generic-family-keyword": null,
23
- "function-no-unknown": null,
24
- "import-notation": null,
25
- "media-feature-range-notation": "prefix",
26
- "named-grid-areas-no-invalid": null,
27
- "no-descending-specificity": null,
28
- "no-duplicate-selectors": null,
29
- "no-empty-source": null,
30
- "rule-empty-line-before": [
31
- "always",
32
- {
33
- ignore: ["after-comment", "first-nested"]
34
- }
35
- ],
36
- "selector-class-pattern": null,
37
- "selector-not-notation": null,
38
- "selector-pseudo-class-no-unknown": [
39
- true,
40
- {
41
- ignorePseudoClasses: ["global", "deep"]
42
- }
43
- ],
44
- "unit-no-unknown": [
45
- true,
46
- {
47
- ignoreUnits: ["rpx"]
48
- }
49
- ],
50
- "selector-type-no-unknown": [
51
- true,
52
- {
53
- ignoreTypes: ["page", "rich-text", "scroll-view"]
54
- }
55
- ]
56
- },
57
- ignoreFiles: ["**/*.js", "**/*.jsx", "**/*.tsx", "**/*.ts"]
58
- };
59
- module.exports = config;
package/lib/index.js DELETED
@@ -1,6 +0,0 @@
1
- "use strict";
2
- const index = {
3
- extends: ["./config"],
4
- plugins: ["stylelint-prettier"]
5
- };
6
- module.exports = index;