Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

27 changes: 0 additions & 27 deletions .eslintrc.json

This file was deleted.

28 changes: 11 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,24 @@ jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "18.x"
- uses: actions/cache@v3
with:
path: .yarn/cache
key: yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
yarn-
- run: corepack enable
- run: yarn install --immutable
- run: yarn build
- run: yarn lint
- run: yarn check
- run: yarn format:check
node-version: 22
cache: npm
- run: npm ci
- run: npm run build
- run: npm run lint
- run: npm run check
- run: npm run format:check
- name: Build android
run: |
export KEYSTORE_PASS=$(node -e 'console.log(require("crypto").randomBytes(64).toString("hex"))')
export KEYSTORE_ALIAS_PASS=$(node -e 'console.log(require("crypto").randomBytes(64).toString("hex"))')
( cd android/keys && ./generate.sh )
yarn build:android
npm run build:android
cp android/app/build/outputs/apk/release/app-release-signed.apk android/app/build/outputs/apk/release/question.apk
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: apk
path: android/app/build/outputs/apk/release/question.apk
29 changes: 11 additions & 18 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v2
- uses: actions/setup-node@v3
uses: actions/configure-pages@v5
- uses: actions/setup-node@v4
with:
node-version: "18.x"
- uses: actions/cache@v3
with:
path: .yarn/cache
key: yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
yarn-
- run: corepack enable
- run: yarn install --immutable
- run: yarn build
- run: yarn lint
- run: yarn check
- run: yarn format:check
node-version: 22
- run: npm ci
- run: npm run build
- run: npm run lint
- run: npm run check
- run: npm run format:check
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: "dist"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4
39 changes: 39 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import eslintPluginSvelte from "eslint-plugin-svelte";
import svelteParser from "svelte-eslint-parser";
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import globals from "globals";

export default tseslint.config(
{
ignores: ["dist", "**/.pnp.*", ".yarn/*", "android", "ios"]
},
...eslintPluginSvelte.configs["flat/recommended"],
eslint.configs.recommended,
...tseslint.configs.recommended,
{
languageOptions: {
globals: {
...globals.browser
}
},

rules: {
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-explicit-any": "off"
}
},
{
files: ["**/*.svelte"],
rules: {
"prefer-const": ["off"]
},
languageOptions: {
parser: svelteParser,
parserOptions: {
parser: tseslint.parser
}
}
}
);
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="fr">
<head>
<meta charset="UTF-8" />
Expand Down
Loading