rc-test1 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/.vscode/extensions.json +3 -0
- package/README.md +18 -0
- package/auto-imports.d.ts +73 -0
- package/components.d.ts +57 -0
- package/dist/rule-chain.es.js +48326 -0
- package/dist/rule-chain.umd.js +157 -0
- package/dist/style.css +1 -0
- package/eslintrc.cjs +53 -0
- package/package.json +45 -0
- package/prettierrc.json +10 -0
- package/stylelintrc.cjs +53 -0
package/eslintrc.cjs
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
module.exports = {
|
2
|
+
env: {
|
3
|
+
browser: true,
|
4
|
+
es2021: true,
|
5
|
+
node: true,
|
6
|
+
},
|
7
|
+
extends: [
|
8
|
+
"eslint:recommended",
|
9
|
+
"plugin:@typescript-eslint/recommended",
|
10
|
+
"plugin:vue/vue3-essential",
|
11
|
+
],
|
12
|
+
overrides: [
|
13
|
+
{
|
14
|
+
env: {
|
15
|
+
node: true,
|
16
|
+
},
|
17
|
+
files: [".eslintrc.{js,cjs}"],
|
18
|
+
parserOptions: {
|
19
|
+
sourceType: "script",
|
20
|
+
},
|
21
|
+
},
|
22
|
+
],
|
23
|
+
parserOptions: {
|
24
|
+
ecmaVersion: "latest",
|
25
|
+
parser: "@typescript-eslint/parser",
|
26
|
+
sourceType: "module",
|
27
|
+
},
|
28
|
+
plugins: ["@typescript-eslint", "vue"],
|
29
|
+
rules: {
|
30
|
+
// eslint(https://eslint.bootcss.com/docs/rules/)
|
31
|
+
"no-var": "error", // 要求使用 let 或 const 而不是 var
|
32
|
+
"no-multiple-empty-lines": ["warn", { max: 1 }], // 不允许多个空行
|
33
|
+
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
|
34
|
+
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
|
35
|
+
"no-unexpected-multiline": "error", // 禁止空余的多行
|
36
|
+
"no-useless-escape": "off", // 禁止不必要的转义字符
|
37
|
+
|
38
|
+
// typeScript (https://typescript-eslint.io/rules)
|
39
|
+
"@typescript-eslint/no-unused-vars": "error", // 禁止定义未使用的变量
|
40
|
+
"@typescript-eslint/prefer-ts-expect-error": "error", // 禁止使用 @ts-ignore
|
41
|
+
"@typescript-eslint/no-explicit-any": "off", // 禁止使用 any 类型
|
42
|
+
"@typescript-eslint/no-non-null-assertion": "off",
|
43
|
+
"@typescript-eslint/no-namespace": "off", // 禁止使用自定义 TypeScript 模块和命名空间。
|
44
|
+
"@typescript-eslint/semi": "off",
|
45
|
+
|
46
|
+
// eslint-plugin-vue (https://eslint.vuejs.org/rules/)
|
47
|
+
"vue/multi-word-component-names": "off", // 要求组件名称始终为 “-” 链接的单词
|
48
|
+
"vue/script-setup-uses-vars": "error", // 防止<script setup>使用的变量<template>被标记为未使用
|
49
|
+
"vue/no-mutating-props": "off", // 不允许组件 prop的改变
|
50
|
+
"vue/attribute-hyphenation": "off", // 对模板中的自定义组件强制执行属性命名样式
|
51
|
+
"vue/comment-directive": "off",
|
52
|
+
},
|
53
|
+
};
|
package/package.json
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
{
|
2
|
+
"name": "rc-test1",
|
3
|
+
"private": false,
|
4
|
+
"version": "0.0.1",
|
5
|
+
"main": "dist/rule-chain.umd.js",
|
6
|
+
"scripts": {
|
7
|
+
"dev": "vite",
|
8
|
+
"build": "vite build",
|
9
|
+
"preview": "vite preview"
|
10
|
+
},
|
11
|
+
"dependencies": {
|
12
|
+
"@jsplumb/browser-ui": "^5.13.4",
|
13
|
+
"@jsplumb/common": "^5.13.4",
|
14
|
+
"@jsplumb/connector-bezier": "^5.13.4",
|
15
|
+
"@jsplumb/connector-flowchart": "^5.13.4",
|
16
|
+
"@jsplumb/core": "^5.13.4",
|
17
|
+
"@jsplumb/util": "^5.13.4",
|
18
|
+
"@rollup/plugin-commonjs": "^25.0.7",
|
19
|
+
"@types/node": "^20.11.14",
|
20
|
+
"augmented-ui": "^2.0.0",
|
21
|
+
"axios": "^1.6.7",
|
22
|
+
"file-saver": "^2.0.5",
|
23
|
+
"manba": "^1.3.5",
|
24
|
+
"path": "^0.12.7",
|
25
|
+
"vue": "3.3.8",
|
26
|
+
"vuedraggable": "^4.1.0",
|
27
|
+
"xlsx": "^0.18.5"
|
28
|
+
},
|
29
|
+
"devDependencies": {
|
30
|
+
"@iconify-json/ep": "^1.1.14",
|
31
|
+
"@types/file-saver": "^2.0.5",
|
32
|
+
"@types/node": "^17.0.42",
|
33
|
+
"@vitejs/plugin-vue": "2.3.3",
|
34
|
+
"@vitejs/plugin-vue-jsx": "^3.0.1",
|
35
|
+
"prettier": "^2.6.2",
|
36
|
+
"sass": "^1.52.3",
|
37
|
+
"typescript": "^4.7.3",
|
38
|
+
"unplugin-auto-import": "^0.17.5",
|
39
|
+
"unplugin-icons": "^0.18.3",
|
40
|
+
"unplugin-vue-components": "^0.26.0",
|
41
|
+
"vite": "4.3.8",
|
42
|
+
"vite-plugin-cesium": "^1.2.22",
|
43
|
+
"vue-tsc": "^0.37.3"
|
44
|
+
}
|
45
|
+
}
|
package/prettierrc.json
ADDED
package/stylelintrc.cjs
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
// @see https://stylelint.bootcss.com/
|
2
|
+
|
3
|
+
module.exports = {
|
4
|
+
extends: [
|
5
|
+
"stylelint-config-standard", // 配置stylelint拓展插件
|
6
|
+
"stylelint-config-html/vue", // 配置 vue 中 template 样式格式化
|
7
|
+
"stylelint-config-standard-scss", // 配置stylelint scss插件
|
8
|
+
"stylelint-config-recommended-vue/scss", // 配置 vue 中 scss 样式格式化
|
9
|
+
"stylelint-config-recess-order", // 配置stylelint css属性书写顺序插件,
|
10
|
+
"stylelint-config-prettier", // 配置stylelint和prettier兼容
|
11
|
+
],
|
12
|
+
overrides: [
|
13
|
+
{
|
14
|
+
files: ["**/*.(scss|css|vue|html)"],
|
15
|
+
customSyntax: "postcss-scss",
|
16
|
+
},
|
17
|
+
{
|
18
|
+
files: ["**/*.(html|vue)"],
|
19
|
+
customSyntax: "postcss-html",
|
20
|
+
},
|
21
|
+
],
|
22
|
+
ignoreFiles: [
|
23
|
+
"**/*.js",
|
24
|
+
"**/*.jsx",
|
25
|
+
"**/*.tsx",
|
26
|
+
"**/*.ts",
|
27
|
+
"**/*.json",
|
28
|
+
"**/*.md",
|
29
|
+
"**/*.yaml",
|
30
|
+
],
|
31
|
+
/**
|
32
|
+
* null => 关闭该规则
|
33
|
+
* always => 必须
|
34
|
+
*/
|
35
|
+
rules: {
|
36
|
+
"value-keyword-case": null, // 在 css 中使用 v-bind,不报错
|
37
|
+
"no-descending-specificity": null, // 禁止在具有较高优先级的选择器后出现被其覆盖的较低优先级的选择器
|
38
|
+
"function-url-quotes": "always", // 要求或禁止 URL 的引号 "always(必须加上引号)"|"never(没有引号)"
|
39
|
+
"no-empty-source": null, // 关闭禁止空源码
|
40
|
+
"selector-class-pattern": null, // 关闭强制选择器类名的格式
|
41
|
+
"property-no-unknown": true, // 禁止未知的属性(true 为不允许)
|
42
|
+
"block-opening-brace-space-before": "always", //大括号之前必须有一个空格或不能有空白符
|
43
|
+
"value-no-vendor-prefix": null, // 关闭 属性值前缀 --webkit-box
|
44
|
+
"property-no-vendor-prefix": null, // 关闭 属性前缀 -webkit-mask
|
45
|
+
"selector-pseudo-class-no-unknown": [
|
46
|
+
// 不允许未知的选择器
|
47
|
+
true,
|
48
|
+
{
|
49
|
+
ignorePseudoClasses: ["global", "v-deep", "deep"], // 忽略属性,修改element默认样式的时候能使用到
|
50
|
+
},
|
51
|
+
],
|
52
|
+
},
|
53
|
+
};
|