Skip to content

Commit 68206c9

Browse files
update(other): 🧩 move and update config files
move and update config files
1 parent 7b19db4 commit 68206c9

26 files changed

+585
-509
lines changed

.commitlintrc

-22
This file was deleted.

.czrc

-8
This file was deleted.

.eslintrc

-60
This file was deleted.

.lintstagedrc

-3
This file was deleted.

.prettierrc

-11
This file was deleted.

.vscode/extensions.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
{
2-
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"],
2+
"recommendations": [
3+
"Vue.volar",
4+
"Vue.vscode-typescript-vue-plugin",
5+
"TabNine.tabnine-vscode",
6+
"ionutvmi.path-autocomplete"
7+
],
38
"unwantedRecommendations": ["vscode.typescript-language-features"]
49
}

.vscode/settings.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
"path-autocomplete.extensionOnImport": true,
55
"path-autocomplete.includeExtension": true,
66
"path-autocomplete.excludedItems": {
7-
"**": { "when": "${workspace}/src/**/*.{js,ts,vue}", "isDir": true }
7+
"**": { "when": "**/*.{js,ts,vue}", "isDir": true }
88
},
99
"path-autocomplete.pathMappings": {
10-
"images": "${workspace}/src/assets/images"
10+
"images": "${workspace}/src/assets/images",
11+
"assets": "${workspace}/src/assets"
1112
},
1213
"path-autocomplete.pathSeparators": " \t({[",
1314
"editor.suggest.showModules": false

config/.eslintrc-auto-import.json

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"globals": {
3+
"EffectScope": true,
4+
"computed": true,
5+
"createApp": true,
6+
"createRouter": true,
7+
"createWebHistory": true,
8+
"customRef": true,
9+
"defineAsyncComponent": true,
10+
"defineComponent": true,
11+
"effectScope": true,
12+
"getCurrentInstance": true,
13+
"getCurrentScope": true,
14+
"h": true,
15+
"inject": true,
16+
"isProxy": true,
17+
"isReactive": true,
18+
"isReadonly": true,
19+
"isRef": true,
20+
"markRaw": true,
21+
"nextTick": true,
22+
"onActivated": true,
23+
"onBeforeMount": true,
24+
"onBeforeUnmount": true,
25+
"onBeforeUpdate": true,
26+
"onDeactivated": true,
27+
"onErrorCaptured": true,
28+
"onMounted": true,
29+
"onRenderTracked": true,
30+
"onRenderTriggered": true,
31+
"onScopeDispose": true,
32+
"onServerPrefetch": true,
33+
"onUnmounted": true,
34+
"onUpdated": true,
35+
"provide": true,
36+
"reactive": true,
37+
"readonly": true,
38+
"ref": true,
39+
"resolveComponent": true,
40+
"resolveDirective": true,
41+
"shallowReactive": true,
42+
"shallowReadonly": true,
43+
"shallowRef": true,
44+
"toRaw": true,
45+
"toRef": true,
46+
"toRefs": true,
47+
"triggerRef": true,
48+
"unref": true,
49+
"useAttrs": true,
50+
"useCssModule": true,
51+
"useCssVars": true,
52+
"useRoute": true,
53+
"useRouter": true,
54+
"useSlots": true,
55+
"watch": true,
56+
"watchEffect": true,
57+
"watchPostEffect": true,
58+
"watchSyncEffect": true
59+
}
60+
}

.git-cz.json config/.git-cz.json

File renamed without changes.

config/auto-imports.d.ts

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
// Generated by 'unplugin-auto-import'
2+
export {}
3+
declare global {
4+
const EffectScope: typeof import('vue')['EffectScope']
5+
const computed: typeof import('vue')['computed']
6+
const createApp: typeof import('vue')['createApp']
7+
const createRouter: typeof import('vue-router')['createRouter']
8+
const createWebHistory: typeof import('vue-router')['createWebHistory']
9+
const customRef: typeof import('vue')['customRef']
10+
const defineAsyncComponent: typeof import('vue')['defineAsyncComponent']
11+
const defineComponent: typeof import('vue')['defineComponent']
12+
const effectScope: typeof import('vue')['effectScope']
13+
const getCurrentInstance: typeof import('vue')['getCurrentInstance']
14+
const getCurrentScope: typeof import('vue')['getCurrentScope']
15+
const h: typeof import('vue')['h']
16+
const inject: typeof import('vue')['inject']
17+
const isProxy: typeof import('vue')['isProxy']
18+
const isReactive: typeof import('vue')['isReactive']
19+
const isReadonly: typeof import('vue')['isReadonly']
20+
const isRef: typeof import('vue')['isRef']
21+
const markRaw: typeof import('vue')['markRaw']
22+
const nextTick: typeof import('vue')['nextTick']
23+
const onActivated: typeof import('vue')['onActivated']
24+
const onBeforeMount: typeof import('vue')['onBeforeMount']
25+
const onBeforeUnmount: typeof import('vue')['onBeforeUnmount']
26+
const onBeforeUpdate: typeof import('vue')['onBeforeUpdate']
27+
const onDeactivated: typeof import('vue')['onDeactivated']
28+
const onErrorCaptured: typeof import('vue')['onErrorCaptured']
29+
const onMounted: typeof import('vue')['onMounted']
30+
const onRenderTracked: typeof import('vue')['onRenderTracked']
31+
const onRenderTriggered: typeof import('vue')['onRenderTriggered']
32+
const onScopeDispose: typeof import('vue')['onScopeDispose']
33+
const onServerPrefetch: typeof import('vue')['onServerPrefetch']
34+
const onUnmounted: typeof import('vue')['onUnmounted']
35+
const onUpdated: typeof import('vue')['onUpdated']
36+
const provide: typeof import('vue')['provide']
37+
const reactive: typeof import('vue')['reactive']
38+
const readonly: typeof import('vue')['readonly']
39+
const ref: typeof import('vue')['ref']
40+
const resolveComponent: typeof import('vue')['resolveComponent']
41+
const resolveDirective: typeof import('vue')['resolveDirective']
42+
const shallowReactive: typeof import('vue')['shallowReactive']
43+
const shallowReadonly: typeof import('vue')['shallowReadonly']
44+
const shallowRef: typeof import('vue')['shallowRef']
45+
const toRaw: typeof import('vue')['toRaw']
46+
const toRef: typeof import('vue')['toRef']
47+
const toRefs: typeof import('vue')['toRefs']
48+
const triggerRef: typeof import('vue')['triggerRef']
49+
const unref: typeof import('vue')['unref']
50+
const useAttrs: typeof import('vue')['useAttrs']
51+
const useCssModule: typeof import('vue')['useCssModule']
52+
const useCssVars: typeof import('vue')['useCssVars']
53+
const useRoute: typeof import('vue-router')['useRoute']
54+
const useRouter: typeof import('vue-router')['useRouter']
55+
const useSlots: typeof import('vue')['useSlots']
56+
const watch: typeof import('vue')['watch']
57+
const watchEffect: typeof import('vue')['watchEffect']
58+
const watchPostEffect: typeof import('vue')['watchPostEffect']
59+
const watchSyncEffect: typeof import('vue')['watchSyncEffect']
60+
}

config/cz.config.js

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
module.exports = {
2+
useEmoji: true,
3+
skipQuestions: ['footerPrefix', 'footer', 'confirmCommit'],
4+
types: [
5+
{
6+
value: 'chore',
7+
name: "chore: 🤷 If you don't know the type will select",
8+
emoji: ':shrug:',
9+
},
10+
{
11+
value: 'perf',
12+
name: 'perf: ⚡️ Improve perfomance',
13+
emoji: ':zap:',
14+
},
15+
{
16+
value: 'release',
17+
name: 'release: 🎯 Create a release commit',
18+
emoji: ':dart:',
19+
},
20+
{
21+
value: 'docs',
22+
name: 'docs: 🗒 Create / change some document files (ex: *.docs, *.md)',
23+
emoji: ':spiral_notepad:',
24+
},
25+
{
26+
value: 'test',
27+
name: 'test: 🔬 Add / change a test',
28+
emoji: ':microscope:',
29+
},
30+
{
31+
value: 'style',
32+
name: 'style: 🎨 Only style for layout',
33+
emoji: ':art:',
34+
},
35+
{
36+
value: 'fix',
37+
name: 'fix: 🐞 Fix a bug',
38+
emoji: ':lady_beetle:',
39+
},
40+
{
41+
value: 'feat',
42+
name: 'feat: 🧩 Create a new feature',
43+
emoji: ':jigsaw:',
44+
},
45+
{
46+
value: 'update',
47+
name: 'update: 🧩 Update but not improve performance',
48+
emoji: ':jigsaw:',
49+
},
50+
],
51+
scopes: [
52+
'page',
53+
'comp-page',
54+
'comp-glob',
55+
'lib',
56+
'util',
57+
'enum',
58+
'define',
59+
'server',
60+
'other',
61+
],
62+
messages: {
63+
type: 'Select the type of committing:',
64+
customScope: 'Select the scope this component affects:',
65+
subject: 'Title:\n',
66+
body: 'Description:\n',
67+
breaking: 'List any breaking changes:\n',
68+
footer: 'Issues this commit closes, e.g #123:',
69+
confirmCommit: 'Ready to commit ?\n',
70+
},
71+
}

config/eslint.config.js

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
module.exports = {
2+
root: true,
3+
ignorePatterns: ['webpack.config.js', 'env/**/*', 'config/**/*'],
4+
env: {
5+
browser: true,
6+
es6: true,
7+
jest: true,
8+
node: true,
9+
},
10+
extends: [
11+
'.eslintrc-auto-import.json',
12+
'plugin:vue/vue3-recommended',
13+
'plugin:@typescript-eslint/recommended',
14+
'eslint:recommended',
15+
'@vue/typescript/recommended',
16+
'@vue/eslint-config-prettier',
17+
'@vue/eslint-config-typescript',
18+
'plugin:prettier/recommended',
19+
'plugin:import/recommended',
20+
'plugin:import/typescript',
21+
'plugin:import/errors',
22+
'plugin:import/warnings',
23+
'prettier',
24+
],
25+
plugins: ['@typescript-eslint'],
26+
parserOptions: {
27+
ecmaFeatures: {
28+
jsx: true,
29+
tsx: true,
30+
},
31+
ecmaVersion: 'latest',
32+
sourceType: 'module',
33+
project: './tsconfig.json',
34+
},
35+
rules: {
36+
'linebreak-style': 'off',
37+
'prettier/prettier': [
38+
'error',
39+
{
40+
endOfLine: 'auto',
41+
},
42+
],
43+
},
44+
settings: {
45+
'import/resolver': {
46+
'eslint-import-resolver-custom-alias': {
47+
alias: {
48+
'@': './',
49+
js: './src',
50+
assets: './src/assets',
51+
pages: './src/pages',
52+
components: './src/components',
53+
config: './src/config',
54+
utils: './src/utils',
55+
},
56+
extensions: ['.js', '.jsx', '.vue', '.ts', '.tsx'],
57+
},
58+
},
59+
},
60+
}
File renamed without changes.

0 commit comments

Comments
 (0)