diff --git a/.github/workflows/prettier.yml b/.github/workflows/biome.yml similarity index 75% rename from .github/workflows/prettier.yml rename to .github/workflows/biome.yml index 7527c2305..38e2ea489 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/biome.yml @@ -1,12 +1,11 @@ -name: Prettier Linter check - +name: Biome Format and linter check on: push: pull_request: branches: [master] jobs: - prettier: + biome: runs-on: ubuntu-latest steps: - name: Checkout code @@ -20,5 +19,5 @@ jobs: - name: Install dependencies run: yarn install - - name: Run Prettier - run: yarn prettier --check . + - name: Run Biome + run: yarn lint diff --git a/.gitignore b/.gitignore index 95da2eb34..53b8c62f9 100644 --- a/.gitignore +++ b/.gitignore @@ -66,3 +66,5 @@ certificates scripts/chainid-lookup.csv scripts/ledger-live-manifest.json + +!.vscode/settings.json diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100644 index 000000000..0a4b97de5 --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1 @@ +npx --no -- commitlint --edit $1 diff --git a/.prettierignore b/.prettierignore deleted file mode 100644 index 65ce02df0..000000000 --- a/.prettierignore +++ /dev/null @@ -1,3 +0,0 @@ -.next -.yarn -public/assets diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index 3342efe7f..000000000 --- a/.prettierrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "singleQuote": true, - "printWidth": 120, - "plugins": ["prettier-plugin-organize-imports"] -} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..a2e91c34c --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,10 @@ +{ + "i18n-ally.localesPaths": ["locales", "lib/i18n"], + "i18n-ally.namespace": true, + "i18n-ally.keystyle": "nested", + "biome.enabled": true, + "[typescript][javascript][typescriptreact][javascriptreact][html][css][json][jsonc]": { + "editor.defaultFormatter": "biomejs.biome" + }, + "editor.formatOnSave": true +} diff --git a/app/ThemeScript.tsx b/app/ThemeScript.tsx index 2f022f988..e7691aa80 100644 --- a/app/ThemeScript.tsx +++ b/app/ThemeScript.tsx @@ -10,6 +10,7 @@ const ThemeScript = () => { })() `; + // biome-ignore lint/security/noDangerouslySetInnerHtml: the theme script only works with dangerouslySetInnerHTML return