@kriac/stylelint-config 0.1.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.
package/dist/index.cjs ADDED
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ const node_module = require('node:module');
4
+
5
+ var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
6
+ const require$1 = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)));
7
+ const index = {
8
+ extends: [
9
+ "stylelint-config-standard",
10
+ "stylelint-config-standard-scss",
11
+ "stylelint-config-recommended-vue",
12
+ "stylelint-config-recess-order"
13
+ ],
14
+ overrides: [
15
+ {
16
+ files: ["**/*.vue"],
17
+ customSyntax: require$1.resolve("postcss-html")
18
+ }
19
+ ],
20
+ plugins: ["stylelint-order"],
21
+ rules: {
22
+ // 空文件校验 - 禁用原因: 部分组件可能没有样式
23
+ "no-empty-source": null,
24
+ // 未知选择器校验 - 禁用原因: 不同平台标签可能不同
25
+ "selector-type-no-unknown": null,
26
+ // 类名格式校验 - 禁用原因: 类名有很多设计规范,不做约束
27
+ "selector-class-pattern": null,
28
+ // 重复选择器校验 - 禁用原因: 部分情况下可以更好的维护代码
29
+ "no-duplicate-selectors": null,
30
+ // 字体兜底校验 - 禁用原因: 字体图标不能兜底
31
+ "font-family-no-missing-generic-family-keyword": null
32
+ }
33
+ };
34
+
35
+ module.exports = index;
@@ -0,0 +1,17 @@
1
+ declare const _default: {
2
+ extends: string[];
3
+ overrides: {
4
+ files: string[];
5
+ customSyntax: string;
6
+ }[];
7
+ plugins: string[];
8
+ rules: {
9
+ "no-empty-source": null;
10
+ "selector-type-no-unknown": null;
11
+ "selector-class-pattern": null;
12
+ "no-duplicate-selectors": null;
13
+ "font-family-no-missing-generic-family-keyword": null;
14
+ };
15
+ };
16
+
17
+ export = _default;
@@ -0,0 +1,17 @@
1
+ declare const _default: {
2
+ extends: string[];
3
+ overrides: {
4
+ files: string[];
5
+ customSyntax: string;
6
+ }[];
7
+ plugins: string[];
8
+ rules: {
9
+ "no-empty-source": null;
10
+ "selector-type-no-unknown": null;
11
+ "selector-class-pattern": null;
12
+ "no-duplicate-selectors": null;
13
+ "font-family-no-missing-generic-family-keyword": null;
14
+ };
15
+ };
16
+
17
+ export { _default as default };
@@ -0,0 +1,17 @@
1
+ declare const _default: {
2
+ extends: string[];
3
+ overrides: {
4
+ files: string[];
5
+ customSyntax: string;
6
+ }[];
7
+ plugins: string[];
8
+ rules: {
9
+ "no-empty-source": null;
10
+ "selector-type-no-unknown": null;
11
+ "selector-class-pattern": null;
12
+ "no-duplicate-selectors": null;
13
+ "font-family-no-missing-generic-family-keyword": null;
14
+ };
15
+ };
16
+
17
+ export = _default;
package/dist/index.mjs ADDED
@@ -0,0 +1,32 @@
1
+ import { createRequire } from 'node:module';
2
+
3
+ const require$1 = createRequire(import.meta.url);
4
+ const index = {
5
+ extends: [
6
+ "stylelint-config-standard",
7
+ "stylelint-config-standard-scss",
8
+ "stylelint-config-recommended-vue",
9
+ "stylelint-config-recess-order"
10
+ ],
11
+ overrides: [
12
+ {
13
+ files: ["**/*.vue"],
14
+ customSyntax: require$1.resolve("postcss-html")
15
+ }
16
+ ],
17
+ plugins: ["stylelint-order"],
18
+ rules: {
19
+ // 空文件校验 - 禁用原因: 部分组件可能没有样式
20
+ "no-empty-source": null,
21
+ // 未知选择器校验 - 禁用原因: 不同平台标签可能不同
22
+ "selector-type-no-unknown": null,
23
+ // 类名格式校验 - 禁用原因: 类名有很多设计规范,不做约束
24
+ "selector-class-pattern": null,
25
+ // 重复选择器校验 - 禁用原因: 部分情况下可以更好的维护代码
26
+ "no-duplicate-selectors": null,
27
+ // 字体兜底校验 - 禁用原因: 字体图标不能兜底
28
+ "font-family-no-missing-generic-family-keyword": null
29
+ }
30
+ };
31
+
32
+ export { index as default };
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "@kriac/stylelint-config",
3
+ "type": "module",
4
+ "version": "0.1.0",
5
+ "description": "@kriac/stylelint-config",
6
+ "author": "Kriac",
7
+ "homepage": "https://github.com/Kriac/lint-kit",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/Kriac/lint-kit.git"
11
+ },
12
+ "keywords": [
13
+ "stylelint",
14
+ "stylelint config"
15
+ ],
16
+ "scripts": {
17
+ "lint": "vue-tsc -b --noEmit",
18
+ "build": "unbuild",
19
+ "release": "npm publish --access public"
20
+ },
21
+ "dependencies": {
22
+ "postcss-html": "1.8.1",
23
+ "stylelint": "16.26.1",
24
+ "stylelint-config-recess-order": "7.4.0",
25
+ "stylelint-config-recommended-vue": "1.6.1",
26
+ "stylelint-config-standard": "39.0.1",
27
+ "stylelint-config-standard-scss": "16.0.0",
28
+ "stylelint-order": "7.0.1"
29
+ },
30
+ "devDependencies": {
31
+ "@types/node": "25.0.10",
32
+ "unbuild": "3.6.1",
33
+ "vue-tsc": "3.2.1"
34
+ },
35
+ "license": "MIT",
36
+ "files": [
37
+ "dist"
38
+ ],
39
+ "exports": {
40
+ ".": {
41
+ "types": "./dist/index.d.ts",
42
+ "import": "./dist/index.mjs",
43
+ "require": "./dist/index.cjs"
44
+ }
45
+ }
46
+ }