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
14 changes: 9 additions & 5 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@ jobs:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v6
with:
cache: "pnpm"
- name: Install dependencies
run: npm ci
run: pnpm i --frozen-lockfile
- name: Run lint
run: npm run lint
run: pnpm lint
- name: Run typecheck
run: npm run tsc
run: pnpm tsc
12 changes: 8 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ jobs:
node-version: [22.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
- run: npm ci
- run: npm test
uses: actions/setup-node@v6
with:
cache: "pnpm"
- run: pnpm i --frozen-lockfile
- run: pnpm test
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22
19 changes: 12 additions & 7 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,22 @@ import reactPlugin from "eslint-plugin-react";
import reactHooksPlugin from "eslint-plugin-react-hooks";
import reactRefreshPlugin from "eslint-plugin-react-refresh";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
import { defineConfig } from "eslint/config";

export default tseslint.config(
export default defineConfig(
eslint.configs.recommended,
tseslint.configs.recommended,
reactPlugin.configs.flat.recommended,
reactPlugin.configs.flat["jsx-runtime"],
reactHooksPlugin.configs["recommended-latest"],
reactRefreshPlugin.configs.recommended,
eslintPluginPrettierRecommended,
{
settings: {
react: {
version: "detect",
},
},
},
{
ignores: [
"dist/**",
Expand All @@ -31,16 +38,14 @@ export default tseslint.config(
},
plugins: {
"simple-import-sort": simpleImportSort,
"react-hooks": reactHooksPlugin,
},
rules: {
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"prettier/prettier": "error",
},
settings: {
react: {
version: "detect",
},
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
},
},
);
Loading