Skip to content

Commit 635fa42

Browse files
Updating configs for v3
1 parent 8ff61fd commit 635fa42

30 files changed

+596
-561
lines changed

Diff for: .babelrc

-25
This file was deleted.

Diff for: .editorconfig

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ root = true
33
[*]
44
charset = utf-8
55
end_of_line = lf
6-
insert_final_newline = true
7-
indent_style = tab
86
indent_size = 4
7+
indent_style = tab
8+
insert_final_newline = true
99
trim_trailing_whitespace = true
1010

1111
[*.md]
12-
trim_trailing_whitespace = false
1312
indent_size = 2
1413
indent_style = space
14+
trim_trailing_whitespace = false
1515

1616
[*.{yml,yaml}]
1717
indent_size = 2

Diff for: .eslintignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
/dist
1+
# don't ever lint node_modules
2+
node_modules
3+
# don't lint build output (make sure it's set to your correct build folder name)
4+
dist
25

36
.eslintrc.js

Diff for: .eslintrc-auto-import.json

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

Diff for: .eslintrc.js

+51-30
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,18 @@ module.exports = {
44
node: true,
55
},
66
extends: [
7-
'airbnb-base',
87
'eslint:recommended',
98
'plugin:vue/essential',
9+
'plugin:@typescript-eslint/recommended',
10+
'@vue/typescript/recommended',
11+
'prettier',
12+
'./.eslintrc-auto-import.json',
13+
],
14+
ignorePatterns: [
15+
'.eslintrc.js',
16+
'vite.build.config.ts',
17+
'vite.config.ts',
18+
'*.bk.vue',
1019
],
1120
overrides: [
1221
{
@@ -18,24 +27,36 @@ module.exports = {
1827
},
1928
},
2029
],
21-
parser: 'vue-eslint-parser',
30+
globals: {
31+
Entry: true,
32+
},
2233
parserOptions: {
23-
ecmaVersion: 12,
24-
parser: '@babel/eslint-parser',
25-
requireConfigFile: false,
26-
sourceType: 'module',
34+
parser: '@typescript-eslint/parser',
2735
},
2836
plugins: [
37+
'@typescript-eslint',
2938
'import',
39+
'prettier',
3040
'vue',
31-
'@babel',
3241
],
42+
root: true,
3343
settings: {
3444
'import/resolver': {
3545
'babel-module': {},
3646
},
3747
},
3848
rules: {
49+
'@typescript-eslint/ban-ts-comment': 0,
50+
'@typescript-eslint/ban-types': [
51+
'error',
52+
{
53+
'extendDefaults': true,
54+
'types': {
55+
'{}': false,
56+
}
57+
},
58+
],
59+
'@typescript-eslint/no-empty-function': 0,
3960
'brace-style': ['error', 'stroustrup'],
4061
'default-case': [
4162
'error', {
@@ -44,39 +65,39 @@ module.exports = {
4465
],
4566
'func-names': ['error', 'never'],
4667
'function-paren-newline': 0,
47-
'implicit-arrow-linebreak': ['warn', 'beside'],
48-
'import/no-extraneous-dependencies': 0,
4968
'import/no-self-import': 0,
69+
'import/no-extraneous-dependencies': 0,
70+
'implicit-arrow-linebreak': ['warn', 'beside'],
5071
indent: [2, 'tab', { SwitchCase: 1 }],
72+
'no-tabs': [0, { allowIndentationTabs: true }],
5173
'linebreak-style': 0,
5274
'max-len': 0,
75+
'no-else-return': ['error', { allowElseIf: true }],
5376
'no-console': ['warn', { allow: ['warn', 'error', 'info', 'trace'] }],
5477
'no-const-assign': 'error',
5578
'no-debugger': 0,
56-
'no-else-return': ['error', { allowElseIf: true }],
5779
'no-new': 0,
80+
'no-undef': 0,
81+
'no-unused-vars': 1,
82+
'no-use-before-define': 0,
83+
'no-useless-escape': 0,
5884
'no-param-reassign': [
5985
'error', {
60-
ignorePropertyModificationsFor: ['field', 'model', 'el', 'item', 'state', 'Vue', 'vue'],
6186
props: true,
87+
ignorePropertyModificationsFor: ['field', 'model', 'el', 'item', 'state', 'Vue', 'vue'],
6288
},
6389
],
64-
'no-plusplus': [
65-
'error', { allowForLoopAfterthoughts: true },
66-
],
67-
'no-tabs': [0, { allowIndentationTabs: true }],
68-
'no-undef': 0,
6990
'no-underscore-dangle': [
7091
'error', {
7192
allow: ['_data'],
7293
allowAfterThis: true,
7394
},
7495
],
75-
'no-unused-vars': 1,
76-
'no-use-before-define': 0,
77-
'no-useless-escape': 0,
96+
'no-plusplus': [
97+
'error', { allowForLoopAfterthoughts: true },
98+
],
7899
'object-curly-newline': ['error', {
79-
ObjectPattern: { multiline: true },
100+
ObjectPattern: { multiline: false },
80101
}],
81102
'operator-linebreak': ['error', 'after'],
82103
'prefer-destructuring': [
@@ -90,12 +111,12 @@ module.exports = {
90111
],
91112
'space-before-function-paren': ['error', {
92113
anonymous: 'never',
93-
asyncArrow: 'always',
94114
named: 'never',
115+
asyncArrow: 'always',
95116
}],
96117
'vue/attributes-order': ['error', {
97-
alphabetical: true,
98-
order: [
118+
'alphabetical': true,
119+
'order': [
99120
'DEFINITION',
100121
'LIST_RENDERING',
101122
'CONDITIONALS',
@@ -118,13 +139,13 @@ module.exports = {
118139
'vue/no-v-for-template-key': 0,
119140
'vue/no-v-html': 0,
120141
'vue/singleline-html-element-content-newline': 0,
121-
// 'vue/sort-keys': ['error', 'asc', {
122-
// caseSensitive: true,
123-
// ignoreChildrenOf: ['extend', 'model', 'defineProps'],
124-
// ignoreGrandchildrenOf: ['computed', 'directives', 'inject', 'props', 'watch', 'defineProps'],
125-
// minKeys: 2,
126-
// natural: true,
127-
// }],
142+
'vue/sort-keys': ['error', 'asc', {
143+
caseSensitive: true,
144+
ignoreChildrenOf: ['model', 'defineProps'],
145+
ignoreGrandchildrenOf: ['computed', 'directives', 'inject', 'props', 'watch', 'defineProps'],
146+
minKeys: 2,
147+
natural: true,
148+
}],
128149
'vue/valid-template-root': 0,
129150
},
130151
};

Diff for: .gitignore

+20-14
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,30 @@
1-
.DS_Store
2-
node_modules
3-
.history
4-
.vscode
5-
6-
# local env files
7-
.env.local
8-
.env.*.local
9-
10-
# Log files
1+
# Logs
2+
logs
3+
*.log
114
npm-debug.log*
12-
.pnpm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
/docs
12+
dist-ssr
13+
*.local
1314

1415
# Editor directories and files
16+
.vscode/*
17+
.history/*
18+
!.vscode/extensions.json
1519
.idea
16-
.vscode
20+
.DS_Store
1721
*.suo
1822
*.ntvs*
1923
*.njsproj
2024
*.sln
2125
*.sw?
22-
*.map
26+
.stylelintcache
27+
28+
src/components-v2/*
2329

24-
assets
30+
vite.config.docs.ts

Diff for: .npmignore

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
node_modules
2+
.github
3+
.history

Diff for: .prettierrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module.exports = {
2+
semi: true,
23
singleQuote: true,
34
trailingComma: 'all',
45
};

Diff for: LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 WebDevNerdStuff
3+
Copyright (c) 2023 WebDevNerdStuff
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Diff for: README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ The `vuetify-resize-drawer` component extends the functionality of the [v-naviga
2525

2626
## Installation
2727

28-
Using npm:
28+
Using [pnpm](https://pnpm.io/):
2929
```
30-
npm i vuetify-resize-drawer
30+
pnpm add @wdns/vuetify-resize-drawer
3131
```
3232

33-
Using [pnpm](https://pnpm.io/):
33+
Using npm:
3434
```
35-
pnpm add vuetify-resize-drawer
35+
npm i @wdns/vuetify-resize-drawer
3636
```
3737

3838
## Documentation
@@ -41,8 +41,8 @@ pnpm add vuetify-resize-drawer
4141

4242
## Dependencies
4343

44-
[Vuetify v2](https://vuetifyjs.com/)
45-
[Vue 2](https://v2.vuejs.org/)
44+
[Vuetify v3](https://vuetifyjs.com/)
45+
[Vue 3](https://vuejs.org/)
4646

4747

4848
## Change Log
@@ -52,7 +52,7 @@ pnpm add vuetify-resize-drawer
5252

5353
## License
5454

55-
Copyright (c) 2022 WebDevNerdStuff
55+
Copyright (c) 2023 WebDevNerdStuff
5656
Licensed under the [MIT license](https://github.com/webdevnerdstuff/vuetify-resize-drawer/blob/master/LICENSE.md).
5757

5858

0 commit comments

Comments
 (0)