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
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

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

This file was deleted.

4 changes: 1 addition & 3 deletions .github/composite-actions/install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ runs:
using: composite
steps:
- uses: pnpm/action-setup@v4
with:
version: 9

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 22.x
registry-url: "https://registry.npmjs.org"
cache: "pnpm"

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install
uses: ./.github/composite-actions/install
Expand All @@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install
uses: ./.github/composite-actions/install
Expand All @@ -44,7 +44,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install
uses: ./.github/composite-actions/install
Expand All @@ -57,7 +57,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install
uses: ./.github/composite-actions/install
Expand Down
38 changes: 38 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import eslint from "@eslint/js";
import vitest from "@vitest/eslint-plugin";
import tseslint from "typescript-eslint";

const config = tseslint.config(
{
name: "twc/global-ignores",
ignores: ["**/website", "**/dist"],
},
eslint.configs.recommended,
...tseslint.configs.recommended,
{
name: "twc/custom-ts-rules",
rules: {
curly: "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unsafe-function-type": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
varsIgnorePattern: "^_",
},
],
},
},
{
name: "twc/vitest",
files: ["**/*.test.?(m)js"],
plugins: {
vitest,
},
rules: {
...vitest.configs.recommended.rules,
},
},
);

export default config;
54 changes: 29 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"default": "./dist/index.mjs"
"import": "./dist/index.js",
"default": "./dist/index.js"
}
},
"types": "./dist/index.d.ts",
"scripts": {
"test": "vitest",
"build": "rm -rf dist && rollup -c",
"build": "rm -rf dist && tsup",
"format": "prettier --write .",
"check-format": "prettier --check src",
"lint": "eslint .",
Expand Down Expand Up @@ -42,35 +42,39 @@
},
"devDependencies": {
"@ampproject/filesize": "^4.3.0",
"@radix-ui/react-accordion": "^1.1.2",
"@swc/core": "^1.3.103",
"@testing-library/react": "^14.1.2",
"@types/react": "^18.2.48",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"@vitejs/plugin-react": "^4.2.1",
"class-variance-authority": "^0.7.0",
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.30.0",
"@radix-ui/react-accordion": "^1.2.11",
"@swc/core": "^1.12.7",
"@testing-library/react": "^16.3.0",
"@types/react": "^19.1.8",
"@typescript-eslint/eslint-plugin": "^8.35.0",
"@typescript-eslint/parser": "^8.35.0",
"@vitejs/plugin-react": "^4.6.0",
"@vitest/eslint-plugin": "^1.3.3",
"class-variance-authority": "^0.7.1",
"conventional-github-releaser": "^3.1.5",
"eslint": "^8.56.0",
"happy-dom": "^13.1.4",
"prettier": "^3.2.2",
"react": "^18.2.0",
"react-aria-components": "^1.0.1",
"rollup": "^4.9.5",
"rollup-plugin-swc3": "^0.11.0",
"rollup-plugin-ts": "^3.4.5",
"eslint": "^9.30.0",
"happy-dom": "^18.0.1",
"prettier": "^3.6.2",
"react": "^19.1.0",
"react-aria-components": "^1.10.1",
"react-dom": "^19.1.0",
"standard-version": "^9.5.0",
"tailwind-merge": "^2.2.0",
"typescript": "^5.3.3",
"vitest": "^1.2.0"
"tailwind-merge": "^3.3.1",
"tsup": "^8.5.0",
"typescript": "^5.8.3",
"typescript-eslint": "^8.35.0",
"vitest": "^3.2.4"
},
"dependencies": {
"@radix-ui/react-slot": "^1.0.2",
"clsx": "^2.1.0"
"@radix-ui/react-slot": "^1.2.3",
"clsx": "^2.1.1"
},
"filesize": {
"track": [
"./dist/**/*.mjs"
]
}
},
"packageManager": "[email protected]+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977"
}
Loading