Skip to content

Commit 920e634

Browse files
committed
feat: init project
0 parents  commit 920e634

File tree

540 files changed

+38308
-0
lines changed

Some content is hidden

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

540 files changed

+38308
-0
lines changed

.editorconfig

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[*.{js,jsx,ts,tsx,vue}]
2+
indent_style = space
3+
indent_size = 2
4+
trim_trailing_whitespace = true
5+
insert_final_newline = true

.eslintignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules/
2+
lib/
3+
dist/
4+
index.d.ts
5+
*bak*

.eslintrc.js

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
/*
2+
* Tencent is pleased to support the open source community by making
3+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
4+
*
5+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
6+
*
7+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
8+
*
9+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
10+
*
11+
* ---------------------------------------------------
12+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
13+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
14+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
15+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
16+
*
17+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
18+
* the Software.
19+
*
20+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
21+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
23+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24+
* IN THE SOFTWARE.
25+
*/
26+
27+
module.exports = {
28+
root: true,
29+
extends: ['eslint-config-tencent', 'plugin:vue/recommended'],
30+
plugins: ['codecc'],
31+
overrides: [
32+
{
33+
files: ['*.ts', '*.tsx'],
34+
extends: ['eslint-config-tencent/ts'],
35+
},
36+
{
37+
files: ['*.vue'],
38+
rules: {
39+
'codecc/license': 'off',
40+
},
41+
},
42+
{
43+
files: [
44+
'**/__test__/*.{j,t}s?(x)',
45+
'**/tests/unit/**/*.spec.{j,t}s?(x)',
46+
],
47+
env: {
48+
jest: true,
49+
},
50+
},
51+
],
52+
rules: {
53+
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
54+
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
55+
'codecc/license': ['error', {
56+
license: `/*
57+
* Tencent is pleased to support the open source community by making
58+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
59+
*
60+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
61+
*
62+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
63+
*
64+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
65+
*
66+
* ---------------------------------------------------
67+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
68+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
69+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
70+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
71+
*
72+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
73+
* the Software.
74+
*
75+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
76+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
77+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
78+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
79+
* IN THE SOFTWARE.
80+
*/\n`,
81+
pattern: 'Tencent is pleased to support the open source community',
82+
}],
83+
// 'codecc/comment-ratio': ['error', 10],
84+
'codecc/comment-ratio': 'off',
85+
'max-len': [
86+
'error',
87+
{
88+
code: 120,
89+
ignoreStrings: true,
90+
ignoreUrls: true,
91+
ignoreRegExpLiterals: true,
92+
ignoreTemplateLiterals: true,
93+
},
94+
],
95+
},
96+
};

.gitignore

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
.DS_Store
2+
node_modules
3+
dist
4+
lib
5+
6+
coverage
7+
8+
# local env files
9+
.env.local
10+
.env.*.local
11+
12+
# Log files
13+
npm-debug.log*
14+
yarn-debug.log*
15+
yarn-error.log*
16+
pnpm-debug.log*
17+
18+
# Editor directories and files
19+
.idea
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
25+
26+
*bak*
27+
*.tsbuildinfo
28+
.npm
29+
.eslintcache
30+
.node_repl_history
31+
*.tgz
32+
.yarn-integrity
33+
yarn*
34+
package-lock.json
35+
themes.variable.less
36+
.history
37+
.changelog.config.js

.husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn commitlint --edit "$1"

.husky/pre-commit

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
# yarn lint-staged
5+
6+
if ! [ -x "$(command -v bkscan)" ]; then
7+
echo 'bkscan is not installed.' >&2
8+
exit 0
9+
else
10+
bkscan
11+
fi

.npmignore

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
.vscode/
2+
/test
3+
/example
4+
npm-debug.log
5+
/tool
6+
/doc
7+
.nyc_output
8+
node_modules
9+
webpack_cache
10+
.DS_Store
11+
*.log
12+
*.node
13+
*.orig
14+
.*
15+
tests
16+
__test__
17+
format
18+
coverage
19+
out
20+
output
21+
appveyor.yml
22+
build
23+
src
24+
*.0
25+
*bak*
26+
prod.html
27+
.idea
28+
package-lock.json
29+
postcss.config.js
30+
vite.config.ts
31+
packages
32+
scripts
33+
site
34+
.editorconfig
35+
.eslintignore
36+
.eslintrc.js
37+
.yarnrc
38+
babel.config.js
39+
jest.config.js
40+
lerna.json
41+
tsconfig.json
42+
plop-template
43+
plopfile.js
44+
.changelog.config.js
45+
commitlint.config.js
46+
index.d.ts
47+
!lib/**/index.d.ts
48+
index.html

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
save-prefix=~

.stylelintignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules/
2+
es/
3+
lib/
4+
dist/
5+
scripts/

0 commit comments

Comments
 (0)