Skip to content

Commit 891ba60

Browse files
Update to Svelte 5 (#52)
1 parent 392a837 commit 891ba60

Some content is hidden

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

67 files changed

+5622
-835
lines changed

.dockerignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.svelte-kit
22
build
33
node_modules
4-
package-lock.json
5-
pnpm-lock.yaml
4+
pnpm-lock.yaml

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ insert_final_newline = true
55
trim_trailing_whitespace = true
66
indent_size = 4
77

8-
[*.{json, yml}]
8+
[*.{json,yml}]
99
indent_size = 2
1010

1111
[*.md]

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ node_modules
66
.env
77
.env.*
88
!.env.example
9-
package-lock.json
109
.idea
1110
.npmrc
1211
pnpm-lock.yaml

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx lint-staged

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# Create build image
2-
FROM node:22-alpine AS build
2+
FROM node:24-alpine AS build
33

44
WORKDIR /app
55

6-
COPY package.json .
7-
RUN npm install
6+
COPY package.json package-lock.json ./
7+
RUN npm install --legacy-peer-deps
88

99
COPY . .
1010
RUN npm run build
1111

1212
# Create runtime image
13-
FROM node:22-alpine
13+
FROM node:24-alpine
1414

1515
WORKDIR /app
1616

1717
COPY --from=build /app/build .
1818

19-
CMD [ "node", "." ]
19+
CMD [ "node", "." ]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# Meteor Website
2+
23
https://meteorclient.com

eslint.config.ts

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
import tsESLint from "@typescript-eslint/eslint-plugin"
2+
import tsParser from "@typescript-eslint/parser"
3+
import svelte from "eslint-plugin-svelte"
4+
import svelteParser from "svelte-eslint-parser"
5+
import stylistic from "@stylistic/eslint-plugin"
6+
import globals from "globals"
7+
8+
const unusedVarsConfig = {
9+
args: "all",
10+
argsIgnorePattern: "^_",
11+
caughtErrors: "all",
12+
caughtErrorsIgnorePattern: "^_",
13+
destructuredArrayIgnorePattern: "^_",
14+
varsIgnorePattern: "^_",
15+
ignoreRestSiblings: true,
16+
}
17+
18+
export default [
19+
// Stylistic
20+
stylistic.configs.customize({
21+
indent: 4,
22+
quotes: "double",
23+
semi: false,
24+
jsx: false,
25+
}),
26+
{
27+
plugins: {
28+
"@stylistic": stylistic,
29+
},
30+
rules: {
31+
"@stylistic/object-curly-spacing": ["error", "always"],
32+
"@stylistic/brace-style": ["error", "1tbs", { allowSingleLine: true }],
33+
},
34+
},
35+
36+
// TypeScript
37+
{
38+
files: ["**/*.ts", "**/*.tsx"],
39+
languageOptions: {
40+
parser: tsParser,
41+
globals: {
42+
...globals.browser,
43+
...globals.node,
44+
},
45+
},
46+
plugins: {
47+
"@typescript-eslint": tsESLint,
48+
},
49+
rules: {
50+
...tsESLint.configs.recommended.rules,
51+
"@typescript-eslint/no-unused-vars": ["error", unusedVarsConfig],
52+
"@typescript-eslint/no-explicit-any": "warn",
53+
},
54+
},
55+
56+
// Svelte
57+
...svelte.configs.recommended,
58+
{
59+
files: ["**/*.svelte"],
60+
languageOptions: {
61+
parser: svelteParser,
62+
parserOptions: {
63+
parser: tsParser,
64+
},
65+
globals: {
66+
...globals.browser,
67+
},
68+
},
69+
plugins: {
70+
svelte,
71+
"@typescript-eslint": tsESLint,
72+
},
73+
rules: {
74+
"svelte/no-dom-manipulating": "warn",
75+
"svelte/require-each-key": "warn",
76+
"svelte/css-unused-selector": "off",
77+
"svelte/no-unused-svelte-ignore": "off",
78+
"@typescript-eslint/no-unused-vars": ["error", unusedVarsConfig],
79+
"@typescript-eslint/no-explicit-any": "warn",
80+
},
81+
},
82+
83+
{
84+
// Ignore generated files
85+
ignores: [
86+
".svelte-kit/**",
87+
"node_modules/**",
88+
"build/**",
89+
],
90+
},
91+
]

0 commit comments

Comments
 (0)