@kriac/stylelint-config 0.2.0 → 0.3.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 +1 -35
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -0
- package/package.json +4 -4
- package/dist/index.d.mts +0 -17
- package/dist/index.mjs +0 -32
package/dist/index.cjs
CHANGED
|
@@ -1,35 +1 @@
|
|
|
1
|
-
|
|
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;
|
|
1
|
+
"use strict";var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var a=(l,e)=>{for(var n in e)s(l,n,{get:e[n],enumerable:!0})},d=(l,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of c(e))!u.call(l,t)&&t!==n&&s(l,t,{get:()=>e[t],enumerable:!(r=i(e,t))||r.enumerable});return l};var m=l=>d(s({},"__esModule",{value:!0}),l);var p={};a(p,{default:()=>f});module.exports=m(p);var o=require("module"),g={},y=(0,o.createRequire)(g.url),f={extends:["stylelint-config-standard","stylelint-config-standard-scss","stylelint-config-recommended-vue","stylelint-config-recess-order"],overrides:[{files:["**/*.vue"],customSyntax:y.resolve("postcss-html")}],plugins:["stylelint-order"],rules:{"no-empty-source":null,"selector-type-no-unknown":null,"selector-class-pattern":null,"no-duplicate-selectors":null,"font-family-no-missing-generic-family-keyword":null}};
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createRequire as e}from"module";var l=e(import.meta.url),n={extends:["stylelint-config-standard","stylelint-config-standard-scss","stylelint-config-recommended-vue","stylelint-config-recess-order"],overrides:[{files:["**/*.vue"],customSyntax:l.resolve("postcss-html")}],plugins:["stylelint-order"],rules:{"no-empty-source":null,"selector-type-no-unknown":null,"selector-class-pattern":null,"no-duplicate-selectors":null,"font-family-no-missing-generic-family-keyword":null}};export{n as default};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kriac/stylelint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.0",
|
|
5
5
|
"description": "@kriac/stylelint-config",
|
|
6
6
|
"author": "Kriac",
|
|
7
7
|
"homepage": "https://github.com/Kriac/lint-kit",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
],
|
|
16
16
|
"scripts": {
|
|
17
17
|
"lint": "vue-tsc -b --noEmit",
|
|
18
|
-
"build": "
|
|
18
|
+
"build": "tsup",
|
|
19
19
|
"release": "npm publish --access public"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "25.0.10",
|
|
32
|
-
"
|
|
32
|
+
"tsup": "8.5.1",
|
|
33
33
|
"vue-tsc": "3.2.1"
|
|
34
34
|
},
|
|
35
35
|
"license": "MIT",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"exports": {
|
|
40
40
|
".": {
|
|
41
41
|
"types": "./dist/index.d.ts",
|
|
42
|
-
"import": "./dist/index.
|
|
42
|
+
"import": "./dist/index.js",
|
|
43
43
|
"require": "./dist/index.cjs"
|
|
44
44
|
}
|
|
45
45
|
}
|
package/dist/index.d.mts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
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 };
|
package/dist/index.mjs
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
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 };
|