Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 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
16 changes: 0 additions & 16 deletions .babelrc

This file was deleted.

6 changes: 3 additions & 3 deletions .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
REACT_APP_API_RETRY_TIMEOUT=1500
REACT_APP_API_RETRY_COUNT=10
REACT_APP_API_DEFAULT_MAX_AGE=60000
VITE_API_RETRY_TIMEOUT=1500
VITE_API_RETRY_COUNT=10
VITE_API_DEFAULT_MAX_AGE=60000
6 changes: 3 additions & 3 deletions .env.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
REACT_APP_API_RETRY_TIMEOUT=10
REACT_APP_API_RETRY_COUNT=10
REACT_APP_API_DEFAULT_MAX_AGE=60000
VITE_API_RETRY_TIMEOUT=1500
VITE_API_RETRY_COUNT=10
VITE_API_DEFAULT_MAX_AGE=60000
9 changes: 3 additions & 6 deletions .github/workflows/npm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
cache: "npm"

- id: semver
Expand All @@ -47,9 +47,6 @@ jobs:
- run: npm version --no-git-tag-version "${{ steps.semver.outputs.semver }}"
- run: npm run build

- name: Preview tarball
run: npm pack --dry-run

- run: echo "//registry.npmjs.org/:_authToken=${NPM_AUTOMATION_TOKEN}" > .npmrc
env:
NPM_AUTOMATION_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}
Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,18 @@ jobs:
timeout-minutes: 10

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
cache: "npm"
- run: npm ci
- name: Cache node modules
id: cache-node-modules
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci
- run: npm run test -- --coverage
12 changes: 7 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@ repos:
- id: prettier

- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.22.0
rev: v9.35.0
hooks:
- id: eslint
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
files: \.[jt]sx?$ # *.js, *.jsx, *.ts, *.tsx
additional_dependencies:
- [email protected]
- eslint-plugin-prettier
- eslint-config-airbnb
- [email protected]
- "@eslint/[email protected]"
- [email protected]
- [email protected]
- [email protected]

- repo: https://github.com/zricethezav/gitleaks
rev: v8.12.0
Expand Down
31 changes: 31 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import js from "@eslint/js";
import globals from "globals";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
import { defineConfig } from "eslint/config";

export default defineConfig([
{ ignores: ["dist/**", "coverage/**", "node_modules/**", "react-playground/dist/**"] },
{
files: ["**/*.{js,jsx}"],
extends: [js.configs.recommended, reactHooks.configs["recommended-latest"], reactRefresh.configs.vite],
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
globals: { ...globals.browser, ...globals.node },
parserOptions: { ecmaFeatures: { jsx: true } },
},
rules: {
"no-unused-vars": ["error", { varsIgnorePattern: "^[A-Z_]" }],
},
},
{
files: ["**/*.{test,spec}.{js,jsx,ts,tsx}"],
languageOptions: {
globals: {
...globals.jest,
vi: "readonly",
},
},
},
]);
Loading
Loading