Skip to content
Open
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
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
61 changes: 61 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
// @ts-check
const { defineConfig } = require("eslint-define-config");

module.exports = defineConfig({
root: true,
extends: [
"with-tsconfig",
"plugin:react-hooks/recommended",
"plugin:@eslint-react/recommended-legacy",
],
rules: {
"no-console": [
"warn",
{
allow: [
"info",
"warn",
"error",
],
},
],
"sonarjs/no-duplicate-string": "warn",
"react/no-unused-prop-types": "off",
"@typescript-eslint/no-redeclare": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"tailwindcss/no-custom-classname": "off",
"security/detect-object-injection": "off",
},
ignorePatterns: ["node_modules/", "dist/", "src-tauri", "updater"],
overrides: [
{
files: [
"scripts/**/*.ts",
"./*.config.ts",
],
rules: {
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
},
parserOptions: {
project: "tsconfig.node.json",
},
},
{
files: [
"src/i18n/i18n-*.@(ts|tsx)",
],
rules: {
"unicorn/no-abusive-eslint-disable": "off",
},
},
{
files: [
"src/**/*.css.ts",
],
rules: {
"sonarjs/no-duplicate-string": "off",
},
},
],
});
44 changes: 0 additions & 44 deletions .eslintrc.json

This file was deleted.

116 changes: 59 additions & 57 deletions .github/workflows/beta.yml
Original file line number Diff line number Diff line change
@@ -1,60 +1,62 @@
name: Beta
on:
push:
branches:
- dev
tags:
- "v*-beta.*"
push:
branches:
- dev
tags:
- "v*-beta.*"
jobs:
release:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-release-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-release-
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-apple-darwin
- name: Install front-end dependencies
run: pnpm i
- uses: Swatinem/rust-cache@v2
with:
workspaces: src-tauri
- name: Update version
run: pnpm run update-version
- uses: tauri-apps/tauri-action@dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
with:
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: "v__VERSION__"
releaseBody: "See the assets to download this version and install."
releaseDraft: false
prerelease: true
args: --target universal-apple-darwin
permissions:
contents: write
pull-requests: read
release:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run:
|
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-release-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys:
|
${{ runner.os }}-pnpm-store-release-
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-apple-darwin
- name: Install front-end dependencies
run: pnpm i
- uses: Swatinem/rust-cache@v2
with:
workspaces: src-tauri
- name: Update version
run: pnpm run update-version
- uses: tauri-apps/tauri-action@dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
with:
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: "v__VERSION__"
releaseBody: "See the assets to download this version and install."
releaseDraft: false
prerelease: true
args: --target universal-apple-darwin
permissions:
contents: write
pull-requests: read
Loading