Skip to content

Commit 37b5ae7

Browse files
Merge branch 'main' into dev
2 parents ae4c32d + 600ee04 commit 37b5ae7

File tree

110 files changed

+11240
-4574
lines changed

Some content is hidden

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

110 files changed

+11240
-4574
lines changed

.babelrc

-25
This file was deleted.

.editorconfig

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ 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
1818

19-
[*.{js,vue}]
19+
[*.{js,ts,vue}]
2020
indent_size = 2
2121
indent_style = tab
2222

.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

.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+
}

.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
};
+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Bug Report
2+
description: File a bug report
3+
title: "[Bug]: "
4+
labels: ["bug", "triage"]
5+
assignees:
6+
- webdevnerdstuff
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
Thanks for taking the time to fill out this bug report!
12+
- type: textarea
13+
id: bug-description
14+
attributes:
15+
label: Bug description
16+
description: What happened?
17+
validations:
18+
required: true
19+
- type: textarea
20+
id: steps
21+
attributes:
22+
label: Steps to reproduce
23+
description: Which steps do we need to take to reproduce this error?
24+
placeholder: "Steps to reproduce the behavior:\n1. Go to '...'\n2. Click on '....'\n3. Scroll down to '....'"
25+
validations:
26+
required: true
27+
- type: textarea
28+
id: logs
29+
attributes:
30+
label: Relevant log output
31+
description: If applicable, please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
32+
render: shell
33+
- type: textarea
34+
id: additional-context
35+
attributes:
36+
label: Additional context
37+
description: Add any other context about the problem here.
38+
- type: checkboxes
39+
id: terms
40+
attributes:
41+
label: Code of Conduct
42+
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/webdevnerdstuff/vuetify3-resize-drawer/blob/main/CODE_OF_CONDUCT.md)
43+
options:
44+
- label: I agree to follow this project's Code of Conduct
45+
required: true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Feature Request
2+
description: Suggest an idea for this project
3+
title: "[Feature Request]: "
4+
labels: ["feature request"]
5+
assignees:
6+
- webdevnerdstuff
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
Thanks for taking the time to fill out this request!
12+
- type: textarea
13+
id: related-to-a-problem
14+
attributes:
15+
label: Is your feature request related to a problem? Please describe.
16+
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
17+
validations:
18+
required: true
19+
- type: textarea
20+
id: feature-desc
21+
attributes:
22+
label: Describe the solution you'd like
23+
description: A clear and concise description of what you want to happen.
24+
validations:
25+
required: true
26+
- type: textarea
27+
id: alternatives
28+
attributes:
29+
label: Describe alternatives you've considered
30+
description: A clear and concise description of any alternative solutions or features you've considered.
31+
validations:
32+
required: true
33+
- type: textarea
34+
id: additional-context
35+
attributes:
36+
label: Additional context
37+
description: Add any other context about the problem here.
38+
- type: checkboxes
39+
id: terms
40+
attributes:
41+
label: Code of Conduct
42+
description: By submitting this request, you agree to follow our [Code of Conduct](https://github.com/webdevnerdstuff/vuetify3-resize-drawer/blob/main/CODE_OF_CONDUCT.md)
43+
options:
44+
- label: I agree to follow this project's Code of Conduct
45+
required: true

0 commit comments

Comments
 (0)