Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ef96236

Browse files
committedFeb 22, 2023
fix(tiny-vue): 内部和开源代码同步,减少维护成本 [WI2023]
Match-id-3960890ed31f3bb2a4c104b1df842c07f4ee8517
1 parent 614d4b3 commit ef96236

File tree

145 files changed

+2039
-651
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+2039
-651
lines changed
 

‎.cid/tiny-vue-theme.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
version: 0.1.0
2+
name: tiny-vue-theme
3+
language: nodejs
4+
5+
# 构建工具
6+
dependencies:
7+
base:
8+
nodejs: best
9+
# 构建机器
10+
machine:
11+
standard:
12+
euler:
13+
- default
14+
15+
# 构建脚本
16+
scripts:
17+
- sh build.sh
18+
19+
# 构建产物
20+
artifacts:
21+
npm_deploy:
22+
- config_path: ./package.json
23+
publish_path: ./dist/

‎.eslintrc

+76-21
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,87 @@
11
{
22
"root": true,
33
"parserOptions": {
4-
"parser": "babel-eslint",
4+
"parser": "@babel/eslint-parser",
5+
"requireConfigFile": false,
6+
"allowImportExportEverywhere": true,
57
"sourceType": "module",
6-
"allowImportExportEverywhere": true
8+
"ecmaVersion": "latest",
9+
"ecmaFeatures": {
10+
"jsx": true
11+
}
712
},
813
"env": {
9-
"browser": true
14+
"es6": true,
15+
"browser": true,
16+
"node": true,
17+
"jest": true
1018
},
11-
"extends": [
12-
"standard",
13-
"plugin:vue/recommended"
14-
],
15-
"plugins": [
16-
"vue",
17-
"json"
18-
],
19+
"extends": ["eslint:recommended"],
1920
"rules": {
20-
"one-var": "off",
21-
"no-mixed-operators": "off",
22-
"no-template-curly-in-string": "off",
23-
"space-before-function-paren": "off",
24-
"arrow-parens": "off",
25-
"generator-star-spacing": "off",
2621
"no-debugger": "off",
27-
"vue/require-prop-types": "off",
28-
"vue/max-attributes-per-line": "off",
29-
"vue/require-default-prop": "off",
30-
"vue/html-self-closing": "off"
22+
"no-var": "error",
23+
"no-tabs": "error",
24+
"no-trailing-spaces": "error",
25+
"no-mixed-spaces-and-tabs": "error",
26+
"no-undef": "error",
27+
"no-extra-semi": "error",
28+
"no-empty": "error",
29+
"no-console": "off",
30+
"semi": [2, "never"],
31+
"max-len": [
32+
"warn",
33+
{
34+
"code": 160
35+
}
36+
],
37+
"function-paren-newline": ["off"],
38+
"object-property-newline": [
39+
"warn",
40+
{
41+
"allowAllPropertiesOnSameLine": true
42+
}
43+
],
44+
"newline-per-chained-call": [
45+
"warn",
46+
{
47+
"ignoreChainWithDepth": 4
48+
}
49+
],
50+
"comma-dangle": "off",
51+
"semi-style": ["warn", "last"],
52+
"max-lines": ["error", 2000],
53+
"max-lines-per-function": ["error", 200],
54+
"complexity": ["error", 26],
55+
"max-depth": ["warn", 4],
56+
"max-nested-callbacks": ["error", 4],
57+
"no-multi-assign": "off",
58+
"no-undef-init": "warn",
59+
"no-shadow": "off",
60+
"max-params": ["warn", 5],
61+
"no-param-reassign": "off",
62+
"prefer-rest-params": "off",
63+
"prefer-arrow-callback": "error",
64+
"arrow-body-style": ["warn", "as-needed"],
65+
"no-this-before-super": "error",
66+
"quotes": ["warn", "single"],
67+
"prefer-template": "off",
68+
"no-multi-str": "warn",
69+
"object-shorthand": "warn",
70+
"dot-notation": "error",
71+
"accessor-pairs": "error",
72+
"no-prototype-builtins": "error",
73+
"guard-for-in": "error",
74+
"eqeqeq": "warn",
75+
"no-fallthrough": "error",
76+
"no-case-declarations": "error",
77+
"no-unsafe-finally": "error",
78+
"no-eval": "error",
79+
"no-with": "error",
80+
"no-implicit-coercion": [
81+
"error",
82+
{
83+
"allow": ["!!", "~"]
84+
}
85+
]
3186
}
3287
}

0 commit comments

Comments
 (0)
Please sign in to comment.