Skip to content

Commit f71f886

Browse files
committed
Switching to npm and updating dependencies
1 parent 7ffcef0 commit f71f886

File tree

13 files changed

+7915
-6098
lines changed

13 files changed

+7915
-6098
lines changed

.eslintignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,24 @@ jobs:
1010
ci:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
14-
- uses: actions/setup-node@v3
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
1515
with:
16-
node-version: "18.x"
17-
- uses: actions/cache@v3
18-
with:
19-
path: .yarn/cache
20-
key: yarn-${{ hashFiles('yarn.lock') }}
21-
restore-keys: |
22-
yarn-
23-
- run: corepack enable
24-
- run: yarn install --immutable
25-
- run: yarn build
26-
- run: yarn lint
27-
- run: yarn check
28-
- run: yarn format:check
16+
node-version: 22
17+
cache: npm
18+
- run: npm ci
19+
- run: npm run build
20+
- run: npm run lint
21+
- run: npm run check
22+
- run: npm run format:check
2923
- name: Build android
3024
run: |
3125
export KEYSTORE_PASS=$(node -e 'console.log(require("crypto").randomBytes(64).toString("hex"))')
3226
export KEYSTORE_ALIAS_PASS=$(node -e 'console.log(require("crypto").randomBytes(64).toString("hex"))')
3327
( cd android/keys && ./generate.sh )
34-
yarn build:android
28+
npm run build:android
3529
cp android/app/build/outputs/apk/release/app-release-signed.apk android/app/build/outputs/apk/release/question.apk
36-
- uses: actions/upload-artifact@v3
30+
- uses: actions/upload-artifact@v4
3731
with:
3832
name: apk
3933
path: android/app/build/outputs/apk/release/question.apk

.github/workflows/gh-pages.yml

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,21 @@ jobs:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
2525
- name: Setup Pages
26-
uses: actions/configure-pages@v2
27-
- uses: actions/setup-node@v3
26+
uses: actions/configure-pages@v5
27+
- uses: actions/setup-node@v4
2828
with:
29-
node-version: "18.x"
30-
- uses: actions/cache@v3
31-
with:
32-
path: .yarn/cache
33-
key: yarn-${{ hashFiles('yarn.lock') }}
34-
restore-keys: |
35-
yarn-
36-
- run: corepack enable
37-
- run: yarn install --immutable
38-
- run: yarn build
39-
- run: yarn lint
40-
- run: yarn check
41-
- run: yarn format:check
29+
node-version: 22
30+
- run: npm ci
31+
- run: npm run build
32+
- run: npm run lint
33+
- run: npm run check
34+
- run: npm run format:check
4235
- name: Upload artifact
43-
uses: actions/upload-pages-artifact@v1
36+
uses: actions/upload-pages-artifact@v3
4437
with:
4538
path: "dist"
4639
- name: Deploy to GitHub Pages
4740
id: deployment
48-
uses: actions/deploy-pages@v1
41+
uses: actions/deploy-pages@v4

eslint.config.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import eslintPluginSvelte from "eslint-plugin-svelte";
2+
import svelteParser from 'svelte-eslint-parser';
3+
import eslint from "@eslint/js";
4+
import tseslint from "typescript-eslint";
5+
import globals from "globals";
6+
7+
export default tseslint.config(
8+
{
9+
ignores: ["dist", "**/.pnp.*", ".yarn/*", "android", "ios"]
10+
},
11+
...eslintPluginSvelte.configs["flat/recommended"],
12+
eslint.configs.recommended,
13+
...tseslint.configs.recommended,
14+
{
15+
languageOptions: {
16+
globals: {
17+
...globals.browser
18+
}
19+
},
20+
21+
rules: {
22+
"@typescript-eslint/consistent-type-imports": "error",
23+
"@typescript-eslint/no-unused-vars": "error",
24+
"@typescript-eslint/no-explicit-any": "off"
25+
}
26+
},
27+
{
28+
files: ['**/*.svelte'],
29+
rules: {
30+
'prefer-const': ['off'],
31+
},
32+
languageOptions: {
33+
parser: svelteParser,
34+
parserOptions: {
35+
parser: tseslint.parser,
36+
},
37+
},
38+
},
39+
);

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="fr">
33
<head>
44
<meta charset="UTF-8" />

0 commit comments

Comments
 (0)