Skip to content

Commit 117900f

Browse files
coffee
1 parent eb8bd9b commit 117900f

11 files changed

+3176
-2210
lines changed

.eslintignore

-6
This file was deleted.

.eslintrc.js

-148
This file was deleted.

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
buy_me_a_coffee: webdevnerdstuff
12
custom: ["paypal.me/webdevnerdstuff"]
23
patreon: webdevnerdstuff

.gitignore

+5-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pnpm-debug.log*
88
lerna-debug.log*
99

1010
node_modules
11-
/docs
11+
docs
1212
dist-ssr
1313
*.local
1414

@@ -23,8 +23,9 @@ dist-ssr
2323
*.njsproj
2424
*.sln
2525
*.sw?
26-
.stylelintcache
2726

28-
src/components-v2/*
27+
.eslintcache
28+
29+
src/plugin/**/*.bk.*
30+
2931

30-
vite.config.docs.ts

eslint.config.mjs

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// eslint.config.js
2+
import eslint from '@eslint/js';
3+
import wdnsConfig from '@wdns/eslint-config-wdns';
4+
import tseslint from 'typescript-eslint';
5+
import AutoImportJson from './.eslintrc-auto-import.json' with { type: 'json' };
6+
7+
8+
export default tseslint.config(
9+
eslint.configs.recommended,
10+
...tseslint.configs.recommended,
11+
...wdnsConfig,
12+
{
13+
ignores: [
14+
'**/cypress/**',
15+
'**/*.cy.ts',
16+
'cypress.config.ts',
17+
'vite.build.config.mts',
18+
'vite.config.mts',
19+
'src/playground/configs/templates/PlaygroundPage.vue',
20+
],
21+
},
22+
{
23+
name: 'app/files-to-lint',
24+
files: ['**/*.{ts,mts,tsx,vue}'],
25+
languageOptions: {
26+
...AutoImportJson,
27+
ecmaVersion: 'latest',
28+
sourceType: 'module',
29+
parserOptions: {
30+
parser: tseslint.parser,
31+
project: ['./tsconfig.json', './tsconfig.node.json'],
32+
extraFileExtensions: ['.vue'],
33+
sourceType: 'module',
34+
},
35+
},
36+
plugins: {
37+
'typescript-eslint': tseslint.plugin,
38+
},
39+
settings: {
40+
'import/resolver': {
41+
typescript: {
42+
alwaysTryTypes: true,
43+
project: './tsconfig.json',
44+
},
45+
},
46+
},
47+
},
48+
);

index.html

+13
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,19 @@
5959
type="module"
6060
src="/src/main.ts"
6161
></script>
62+
63+
<script
64+
data-name="BMC-Widget"
65+
data-cfasync="false"
66+
src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js"
67+
data-id="webdevnerdstuff"
68+
data-description="Support me on Buy me a coffee!"
69+
data-message=""
70+
data-color="#1976d2"
71+
data-position="Right"
72+
data-x_margin="18"
73+
data-y_margin="18"
74+
></script>
6275
</body>
6376

6477
</html>

package.json

+30-22
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222
"prepare": "husky install",
2323
"test:dev": "NODE_OPTIONS='--no-warnings' vitest",
2424
"test:all": "vitest --run",
25-
"test:build": "vitest --run --bail 1"
25+
"test:build": "vitest --run --bail 1",
26+
"cy:run": "npx cypress run --headless --browser electron",
27+
"cy:run:dev": "cypress run --browser chrome",
28+
"cy:open": "cypress open --browser chrome"
2629
},
2730
"lint-staged": {
2831
"src/**/*.{js,ts,vue}": [
@@ -77,63 +80,68 @@
7780
"vuetify": "^3.7.2"
7881
},
7982
"devDependencies": {
83+
"@eslint/js": "^9.14.0",
8084
"@fortawesome/fontawesome-svg-core": "^6.6.0",
8185
"@fortawesome/free-brands-svg-icons": "^6.6.0",
8286
"@fortawesome/free-regular-svg-icons": "^6.6.0",
8387
"@fortawesome/free-solid-svg-icons": "^6.6.0",
8488
"@fortawesome/vue-fontawesome": "^3.0.8",
8589
"@mdi/font": "^7.4.47",
86-
"@rollup/plugin-commonjs": "^25.0.7",
90+
"@rollup/plugin-commonjs": "^28.0.1",
8791
"@rollup/plugin-node-resolve": "^15.3.0",
8892
"@rollup/plugin-terser": "^0.4.4",
8993
"@stylistic/stylelint-plugin": "^3.1.1",
90-
"@types/node": "^22.7.5",
91-
"@typescript-eslint/eslint-plugin": "^7.1.0",
92-
"@typescript-eslint/parser": "^7.1.0",
94+
"@types/jest": "^29.5.14",
95+
"@types/node": "^22.9.0",
96+
"@typescript-eslint/eslint-plugin": "^8.13.0",
97+
"@typescript-eslint/parser": "^8.13.0",
9398
"@vitejs/plugin-vue": "^5.1.4",
94-
"@vue/cli-plugin-eslint": "^5.0.8",
9599
"@vue/cli-service": "^5.0.8",
96-
"@vue/eslint-config-typescript": "^12.0.0",
100+
"@vue/eslint-config-typescript": "^14.1.3",
97101
"@vue/test-utils": "^2.4.6",
102+
"@wdns/eslint-config-wdns": "^1.0.11",
103+
"@wdns/stylelint-config-wdns": "^1.0.0",
98104
"@wdns/vue-code-block": "^2.3.3",
99105
"autoprefixer": "^10.4.20",
100-
"eslint": "^8.57.0",
106+
"cypress": "^13.15.2",
107+
"eslint": "^9.14.0",
101108
"eslint-config-prettier": "^9.1.0",
102-
"eslint-plugin-import": "^2.29.1",
103-
"eslint-plugin-prettier": "^5.1.3",
104-
"eslint-plugin-vue": "^9.22.0",
109+
"eslint-import-resolver-typescript": "^3.6.3",
110+
"eslint-plugin-vue": "^9.30.0",
105111
"gh-pages": "^6.2.0",
106112
"husky": "^9.1.6",
107113
"jsdom": "^25.0.1",
108114
"lint-staged": "^15.2.10",
109-
"pinia": "^2.2.4",
110-
"postcss": "^8.4.47",
115+
"pinia": "^2.2.6",
116+
"postcss": "^8.4.48",
111117
"postcss-html": "^1.7.0",
112118
"postcss-scss": "^4.0.9",
113119
"prettier": "^3.3.3",
114120
"prismjs": "^1.29.0",
115121
"roboto-fontface": "^0.10.0",
116-
"rollup": "^4.24.0",
122+
"rollup": "^4.25.0",
117123
"rollup-plugin-polyfill-node": "^0.13.0",
118124
"rollup-plugin-postcss": "^4.0.2",
119125
"rollup-plugin-scss": "^4.0.0",
120126
"rollup-plugin-typescript2": "^0.36.0",
121-
"sass": "^1.79.5",
127+
"sass": "^1.80.6",
122128
"stylelint": "^16.10.0",
123129
"stylelint-config-standard": "^36.0.1",
124130
"stylelint-order": "^6.0.4",
125-
"stylelint-scss": "^6.7.0",
131+
"stylelint-scss": "^6.8.1",
126132
"typescript": "^5.6.3",
133+
"typescript-eslint": "^8.13.0",
127134
"unplugin-auto-import": "^0.18.3",
128-
"vite": "^5.4.8",
135+
"vite": "^5.4.10",
129136
"vite-plugin-css-injected-by-js": "^3.5.2",
130-
"vite-plugin-dts": "^4.2.4",
131-
"vite-plugin-eslint": "^1.8.1",
132-
"vite-plugin-static-copy": "^2.0.0",
137+
"vite-plugin-dts": "^4.3.0",
138+
"vite-plugin-eslint2": "^5.0.2",
139+
"vite-plugin-static-copy": "^2.1.0",
133140
"vite-plugin-stylelint": "^5.3.0",
141+
"vite-plugin-vue-devtools": "^7.6.3",
134142
"vite-plugin-vuetify": "^2.0.4",
135-
"vitest": "^2.1.2",
136-
"vue-tsc": "^2.1.6",
143+
"vitest": "^2.1.4",
144+
"vue-tsc": "^2.1.10",
137145
"webfontloader": "^1.6.28"
138146
}
139147
}

0 commit comments

Comments
 (0)