Skip to content
This repository was archived by the owner on Jan 9, 2022. It is now read-only.

Commit e291090

Browse files
committed
build: restructure the project with multirepo
1 parent 46d195d commit e291090

File tree

118 files changed

+1356
-2037
lines changed

Some content is hidden

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

118 files changed

+1356
-2037
lines changed

.eslintignore

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
dist
21
node_modules
3-
public
4-
___
5-
6-
!.vitepress
2+
dist
3+
public

.eslintrc.js

+54-45
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,15 @@
1+
/*eslint-env node*/
12
module.exports = {
2-
overrides: [
3-
{
4-
files: ['*.vue'],
5-
parser: 'vue-eslint-parser',
6-
parserOptions: {
7-
parser: '@typescript-eslint/parser',
8-
},
9-
rules: {
10-
'no-unused-vars': 'off',
11-
'no-undef': 'off',
12-
'@typescript-eslint/no-unused-vars': 'off',
13-
},
14-
},
15-
],
16-
173
extends: [
4+
'plugin:@typescript-eslint/recommended',
185
'plugin:vue/vue3-recommended',
196
'plugin:vue-scoped-css/vue3-recommended',
207
'plugin:import/recommended',
21-
'./eslint/typescript.js',
8+
],
9+
10+
parser: '@typescript-eslint/parser',
11+
plugins: [
12+
'@typescript-eslint',
2213
],
2314

2415
rules: {
@@ -29,68 +20,86 @@ module.exports = {
2920
'quotes': ['error', 'single'],
3021
'key-spacing': ['error'],
3122
'space-infix-ops': 'error',
32-
33-
'vue/html-self-closing': 'warn',
34-
'vue/padding-line-between-blocks': 'error',
35-
36-
'vue/max-attributes-per-line': ['warn', {
37-
singleline: 2,
38-
}],
39-
40-
'vue/component-name-in-template-casing': [
41-
'warn',
42-
'PascalCase',
43-
{
44-
registeredComponentsOnly: false,
45-
},
46-
],
47-
4823
'semi': ['warn', 'never'],
4924
'linebreak-style': ['off'],
50-
'import/no-unresolved': ['off'],
51-
'import/prefer-default-export': ['off'],
52-
25+
'space-before-function-paren': ['error', 'never'],
26+
'no-plusplus': ['error', {
27+
allowForLoopAfterthoughts: true,
28+
}],
29+
'no-multi-spaces': ['error', {
30+
ignoreEOLComments: false,
31+
}],
5332
'no-plusplus': ['error', {
5433
allowForLoopAfterthoughts: true,
5534
}],
56-
5735
'no-multi-spaces': ['error', {
5836
ignoreEOLComments: false,
5937
}],
60-
6138
'object-curly-newline': ['error', {
6239
ObjectExpression: { minProperties: 4, multiline: true, consistent: true },
6340
ObjectPattern: { minProperties: 4, multiline: true, consistent: true },
6441
ImportDeclaration: { minProperties: 4, multiline: true, consistent: true },
6542
ExportDeclaration: { minProperties: 4, multiline: true, consistent: true },
6643
}],
67-
6844
'comma-spacing': ['error', { before: false, after: true }],
69-
7045
'comma-dangle': ['error', {
7146
arrays: 'always-multiline',
7247
objects: 'always-multiline',
7348
imports: 'always-multiline',
7449
exports: 'always-multiline',
7550
functions: 'always-multiline',
7651
}],
77-
7852
'no-trailing-spaces': ['error', {
7953
skipBlankLines: false,
8054
ignoreComments: false,
8155
}],
82-
83-
'import/newline-after-import': ['error', { 'count': 1 }],
84-
8556
'no-multiple-empty-lines': ['error', { max: 1, maxBOF: 0, maxEOF: 0 }],
86-
57+
'no-unused-vars': 'off',
58+
'no-undef': 'warn',
59+
indent: 'off',
8760
'import/named': 'off',
61+
'import/no-unresolved': 'off',
62+
'import/prefer-default-export': ['off'],
63+
'import/newline-after-import': ['error', { 'count': 1 }],
64+
'@typescript-eslint/indent': ['error', 2],
65+
'@typescript-eslint/no-non-null-assertion': 'off',
66+
'@typescript-eslint/no-unused-vars': 'off',
8867
},
8968

69+
overrides: [
70+
{
71+
files: ['*.vue'],
72+
parser: 'vue-eslint-parser',
73+
parserOptions: {
74+
parser: '@typescript-eslint/parser',
75+
},
76+
rules: {
77+
'@typescript-eslint/explicit-module-boundary-types': 'off',
78+
79+
'vue/html-self-closing': 'warn',
80+
'vue/padding-line-between-blocks': 'error',
81+
'vue/max-attributes-per-line': ['warn', {
82+
singleline: 2,
83+
}],
84+
'vue/component-name-in-template-casing': [
85+
'warn',
86+
'PascalCase',
87+
{
88+
registeredComponentsOnly: false,
89+
},
90+
],
91+
},
92+
},
93+
],
94+
9095
settings: {
9196
'import/resolver': {
9297
node: {
93-
extensions: ['.js', '.jsx', '.ts', '.tsx'],
98+
extensions: [
99+
'.vue',
100+
'.js',
101+
'.ts',
102+
],
94103
},
95104
},
96105
},

.gitignore

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
node_modules
2+
dist
23
.DS_Store
3-
dist-ssr
4-
/dist
5-
*.local
6-
___*
4+
*.local

.npmignore

-4
This file was deleted.

demo/src/plugins/g-dialog.ts

-10
This file was deleted.

demo/tsconfig.json

-20
This file was deleted.

demo/vite.config.ts

-43
This file was deleted.

0 commit comments

Comments
 (0)