Skip to content

Commit cbbe75f

Browse files
committed
Update to latest version of SvelteKit
1 parent 062b5ad commit cbbe75f

21 files changed

+2518
-2197
lines changed

.eslintrc.json

Lines changed: 149 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,166 @@
66
"browser": true
77
},
88
"parserOptions": {
9-
"ecmaVersion": 2018,
9+
"ecmaVersion": 2020,
1010
"sourceType": "module"
1111
},
1212
"extends": [
1313
"eslint:recommended"
1414
],
1515
"plugins": ["import"],
1616
"rules": {
17-
"array-bracket-spacing": ["error", "never"],
18-
"arrow-parens": ["error", "always"],
19-
"block-spacing": ["error", "always"],
20-
"brace-style": ["error", "1tbs"],
21-
"comma-dangle": ["error", "never"],
22-
"import/no-unresolved": ["error", { "commonjs": true }],
23-
"import/extensions": ["error", "always", { "js": "never", "mjs": "never" }],
24-
"import/newline-after-import": ["error", { "count": 2 }],
25-
"indent": ["error", 2],
26-
"linebreak-style": ["error", "unix"],
27-
"no-trailing-spaces": "error",
17+
"array-bracket-newline": ["error", "consistent"],
18+
"array-bracket-spacing": "error",
19+
"array-callback-return": "error",
20+
"arrow-parens": "error",
21+
"arrow-spacing": "error",
22+
"block-scoped-var": "error",
23+
"block-spacing": "error",
24+
"brace-style": "error",
25+
"class-methods-use-this": "error",
26+
"comma-dangle": "error",
27+
"comma-spacing": "error",
28+
"comma-style": "error",
29+
"curly": "error",
30+
"default-case": "error",
31+
"default-case-last": "error",
32+
"default-param-last": "error",
33+
"dot-location": ["error", "property"],
34+
"dot-notation": "error",
35+
"eol-last": "error",
36+
"eqeqeq": "error",
37+
"func-call-spacing": "error",
38+
"func-name-matching": "error",
39+
"func-style": "error",
40+
"function-call-argument-newline": ["error", "consistent"],
41+
"function-paren-newline": "error",
42+
"generator-star-spacing": ["error", { "before": false, "after": true }],
43+
"grouped-accessor-pairs": "error",
44+
"id-denylist": "error",
45+
"id-match": "error",
46+
"implicit-arrow-linebreak": "error",
47+
"indent": ["error", 2, { "ignoreComments": true, "SwitchCase": 1 }],
48+
"key-spacing": "error",
49+
"keyword-spacing": "error",
50+
"linebreak-style": "error",
51+
"lines-between-class-members": "error",
52+
"logical-assignment-operators": "error",
53+
"max-classes-per-file": "error",
54+
"max-len": ["warn", { "code": 160, "ignoreStrings": true, "ignoreTemplateLiterals": true, "ignoreRegExpLiterals": true }],
55+
"new-parens": "error",
56+
"newline-per-chained-call": "error",
57+
"no-alert": "error",
58+
"no-array-constructor": "error",
59+
"no-bitwise": "error",
60+
"no-caller": "error",
61+
"no-console": "error",
62+
"no-constant-binary-expression": "error",
63+
"no-constructor-return": "error",
64+
"no-div-regex": "error",
65+
"no-duplicate-imports": "error",
66+
"no-empty-function": "error",
67+
"no-empty-static-block": "error",
68+
"no-eq-null": "error",
69+
"no-eval": "error",
70+
"no-extend-native": "error",
71+
"no-extra-bind": "error",
72+
"no-extra-label": "error",
73+
"no-extra-parens": ["error", "all", { "nestedBinaryExpressions": false }],
74+
"no-floating-decimal": "error",
75+
"no-implicit-coercion": "error",
76+
"no-implicit-globals": "error",
77+
"no-implied-eval": "error",
78+
"no-invalid-this": "error",
79+
"no-iterator": "error",
80+
"no-label-var": "error",
81+
"no-labels": "error",
82+
"no-lone-blocks": "error",
83+
"no-lonely-if": "error",
84+
"no-loop-func": "error",
85+
"no-multi-assign": "error",
86+
"no-multi-spaces": "error",
87+
"no-multi-str": "error",
88+
"no-multiple-empty-lines": "error",
89+
"no-negated-condition": "error",
90+
"no-nested-ternary": "error",
91+
"no-new": "error",
92+
"no-new-func": "error",
93+
"no-new-native-nonconstructor": "error",
94+
"no-new-object": "error",
95+
"no-new-wrappers": "error",
96+
"no-octal-escape": "error",
97+
"no-promise-executor-return": "error",
98+
"no-proto": "error",
99+
"no-restricted-exports": "error",
100+
"no-restricted-globals": "error",
101+
"no-restricted-imports": "error",
102+
"no-restricted-properties": "error",
103+
"no-restricted-syntax": "error",
104+
"no-return-assign": "error",
105+
"no-return-await": "error",
106+
"no-script-url": "error",
107+
"no-self-compare": "error",
108+
"no-sequences": "error",
28109
"no-tabs": "error",
110+
"no-template-curly-in-string": "error",
111+
"no-throw-literal": "error",
112+
"no-trailing-spaces": "error",
113+
"no-undef-init": "error",
114+
"no-unmodified-loop-condition": "error",
115+
"no-unneeded-ternary": "error",
116+
"no-unreachable-loop": "error",
117+
"no-unused-private-class-members": "error",
29118
"no-unused-vars": ["error", { "argsIgnorePattern": "_.*" }],
119+
"no-useless-call": "error",
120+
"no-useless-computed-key": "error",
121+
"no-useless-concat": "error",
122+
"no-useless-constructor": "error",
123+
"no-useless-rename": "error",
124+
"no-useless-return": "error",
125+
"no-var": "error",
126+
"no-void": "error",
127+
"no-whitespace-before-property": "error",
128+
"nonblock-statement-body-position": "error",
129+
"object-curly-newline": "error",
30130
"object-curly-spacing": ["error", "always"],
131+
"object-property-newline": ["error", { "allowAllPropertiesOnSameLine": true }],
132+
"operator-linebreak": ["error", "before"],
133+
"padded-blocks": ["error", "never"],
134+
"padding-line-between-statements": "error",
135+
"prefer-arrow-callback": "error",
136+
"prefer-const": ["error", { "destructuring": "all" }],
137+
"prefer-exponentiation-operator": "error",
138+
"prefer-numeric-literals": "error",
139+
"prefer-object-has-own": "error",
140+
"prefer-object-spread": "error",
141+
"prefer-promise-reject-errors": "error",
142+
"prefer-rest-params": "error",
143+
"prefer-spread": "error",
31144
"quotes": ["error", "double", { "allowTemplateLiterals": true }],
32-
"semi": ["error", "always"]
145+
"radix": "error",
146+
"require-await": "error",
147+
"rest-spread-spacing": "error",
148+
"semi": "error",
149+
"semi-spacing": "error",
150+
"semi-style": "error",
151+
"space-before-blocks": "error",
152+
"space-before-function-paren": ["error", { "anonymous": "always", "named": "never", "asyncArrow": "always" }],
153+
"space-in-parens": "error",
154+
"space-infix-ops": "error",
155+
"space-unary-ops": "error",
156+
"strict": "error",
157+
"switch-colon-spacing": "error",
158+
"symbol-description": "error",
159+
"template-curly-spacing": "error",
160+
"template-tag-spacing": "error",
161+
"unicode-bom": "error",
162+
"wrap-iife": "error",
163+
"yield-star-spacing": "error",
164+
"yoda": "error",
165+
"import/no-duplicates": "error",
166+
"import/no-unresolved": ["error", { "commonjs": true }],
167+
"import/extensions": ["error", "always", { "js": "ignorePackages" }],
168+
"import/newline-after-import": ["error", { "count": 2 }]
33169
},
34170
"settings": {
35171
"import/resolver": "node"

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
node_modules
2-
/__sapper__/
3-
/http-cache
2+
/build
3+
/.svelte-kit

bin/deploy.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
set -e
4+
35
function cleanup {
46
rm -rf "$WORK_DIR"
57
echo "Deleted temp working directory $WORK_DIR"
@@ -16,18 +18,19 @@ if [[ ! "$WORK_DIR" || ! -d "$WORK_DIR" ]]; then
1618
exit 1
1719
fi
1820

19-
npm run export
21+
npm run build
2022

2123
cd "$WORK_DIR"
2224

23-
git clone -b gh-pages --single-branch [email protected]:jdesrosiers/explore.hyperjump.io.git
25+
git clone -b gh-pages --single-branch [email protected]:hyperjump-io/explore.hyperjump.io.git
2426
cd explore.hyperjump.io
2527

2628
git rm -r -q .
2729
git reset -q HEAD CNAME
2830
git checkout -q -- CNAME
2931

30-
cp -rp "$DIR"/../__sapper__/export/* .
32+
cp -rp "$DIR"/../build/* .
33+
touch .nojekyll
3134
git add .
3235

3336
git commit

0 commit comments

Comments
 (0)