Skip to content

Commit c91c131

Browse files
Updating
1 parent f809daf commit c91c131

25 files changed

+8830
-2017
lines changed

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ trim_trailing_whitespace = false
1414
[*.{yml,yaml}]
1515
indent_size = 2
1616

17-
[*.{js,ts,vue}]
17+
[*.{js,ts,mts,vue}]
1818
indent_size = 2
1919
indent_style = tab
2020

.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

+34-15
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,17 @@ module.exports = {
66
extends: [
77
'eslint:recommended',
88
'plugin:vue/essential',
9-
"@vue/typescript/recommended",
10-
"prettier",
9+
'plugin:@typescript-eslint/recommended',
10+
'@vue/typescript/recommended',
11+
'prettier',
12+
'./.eslintrc-auto-import.json',
13+
],
14+
ignorePatterns: [
15+
'.eslintrc.js',
16+
'stylelint.config.js',
17+
'vite.build.config.mts',
18+
'vite.config.mts',
19+
'*.bk.vue',
1120
],
1221
overrides: [
1322
{
@@ -23,7 +32,7 @@ module.exports = {
2332
Entry: true,
2433
},
2534
parserOptions: {
26-
parser: "@typescript-eslint/parser",
35+
parser: '@typescript-eslint/parser',
2736
},
2837
plugins: [
2938
'@typescript-eslint',
@@ -34,20 +43,21 @@ module.exports = {
3443
root: true,
3544
settings: {
3645
'import/resolver': {
37-
'babel-module': {},
3846
},
3947
},
4048
rules: {
41-
"@typescript-eslint/ban-types": [
42-
"error",
43-
{
44-
"extendDefaults": true,
45-
"types": {
46-
"{}": false
47-
}
48-
}
49-
],
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+
],
5059
'@typescript-eslint/no-empty-function': 0,
60+
'@typescript-eslint/no-explicit-any': 0,
5161
'brace-style': ['error', 'stroustrup'],
5262
'default-case': [
5363
'error', {
@@ -64,10 +74,11 @@ module.exports = {
6474
'linebreak-style': 0,
6575
'max-len': 0,
6676
'no-else-return': ['error', { allowElseIf: true }],
67-
'no-console': ['warn', { allow: ['warn', 'error', 'info'] }],
77+
'no-console': ['warn', { allow: ['warn', 'error', 'info', 'trace'] }],
6878
'no-const-assign': 'error',
6979
'no-debugger': 0,
7080
'no-new': 0,
81+
'no-undef': 0,
7182
'no-unused-vars': 1,
7283
'no-use-before-define': 0,
7384
'no-useless-escape': 0,
@@ -102,7 +113,7 @@ module.exports = {
102113
'space-before-function-paren': ['error', {
103114
anonymous: 'never',
104115
named: 'never',
105-
asyncArrow: 'never',
116+
asyncArrow: 'always',
106117
}],
107118
'vue/attributes-order': ['error', {
108119
'alphabetical': true,
@@ -126,8 +137,16 @@ module.exports = {
126137
'vue/max-attributes-per-line': 0,
127138
'vue/no-multiple-template-root': 0,
128139
'vue/no-template-shadow': 0,
140+
'vue/no-v-for-template-key': 0,
129141
'vue/no-v-html': 0,
130142
'vue/singleline-html-element-content-newline': 0,
143+
'vue/sort-keys': ['error', 'asc', {
144+
caseSensitive: true,
145+
ignoreChildrenOf: ['model', 'defineProps'],
146+
ignoreGrandchildrenOf: ['computed', 'directives', 'inject', 'props', 'watch', 'defineProps'],
147+
minKeys: 2,
148+
natural: true,
149+
}],
131150
'vue/valid-template-root': 0,
132151
},
133152
};

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ dist-ssr
2323
*.njsproj
2424
*.sln
2525
*.sw?
26+
27+
28+
src/plugin/**/*.bk.*

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node-version=20.9.0

.nvmrc

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

index.html

+46-16
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,63 @@
33

44
<head>
55
<!-- Google tag (gtag.js) -->
6-
<script async src="https://www.googletagmanager.com/gtag/js?id=G-R05G0QB5E9"></script>
6+
<script
7+
async
8+
src="https://www.googletagmanager.com/gtag/js?id=G-R05G0QB5E9"
9+
></script>
710
<script>
8-
window.dataLayer = window.dataLayer || [];
9-
function gtag() { dataLayer.push(arguments); }
10-
gtag('js', new Date());
11+
window.dataLayer=window.dataLayer||[];
12+
function gtag() {dataLayer.push(arguments);}
13+
gtag('js',new Date());
1114

12-
gtag('config', 'G-R05G0QB5E9');
15+
gtag('config','G-R05G0QB5E9');
1316
</script>
1417

1518
<meta charset="UTF-8" />
16-
<link rel="icon" type="image/svg+xml" href="/vue.svg" />
17-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
18-
<title>Vue 3 Easter Egg Trigger</title>
19+
<link
20+
rel="icon"
21+
type="image/svg+xml"
22+
href="/vue.svg"
23+
/>
24+
<meta
25+
name="viewport"
26+
content="width=device-width, initial-scale=1.0"
27+
/>
28+
<title>Vue Easter Egg Trigger</title>
1929

20-
<meta name="description"
21-
content="This packages makes it nice and easy to add Easter Egg triggers to your Vue3 site." />
22-
<meta name="keywords" content="vue, vue3, vue 3, easter egg, trigger, plugin, component, webdevnerdstuff, wdns" />
23-
<meta name="author" content="WebDevNerdStuff & Bunnies... lots and lots of bunnies!" />
24-
<meta name="robots" content="index, follow" />
25-
<meta name="googlebot" content="index, follow" />
26-
<meta name="theme-color" content="#242424" />
30+
<meta
31+
name="description"
32+
content="This packages makes it nice and easy to add Easter Egg triggers to your Vue site."
33+
/>
34+
<meta
35+
name="keywords"
36+
content="vue, vue3, vue 3, easter egg, trigger, plugin, component, webdevnerdstuff, wdns"
37+
/>
38+
<meta
39+
name="author"
40+
content="WebDevNerdStuff & Bunnies... lots and lots of bunnies!"
41+
/>
42+
<meta
43+
name="robots"
44+
content="index, follow"
45+
/>
46+
<meta
47+
name="googlebot"
48+
content="index, follow"
49+
/>
50+
<meta
51+
name="theme-color"
52+
content="#242424"
53+
/>
2754

2855
</head>
2956

3057
<body>
3158
<div id="app"></div>
32-
<script type="module" src="/src/main.ts"></script>
59+
<script
60+
type="module"
61+
src="/src/main.ts"
62+
></script>
3363
</body>
3464

3565
</html>

0 commit comments

Comments
 (0)