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
8 changes: 4 additions & 4 deletions .github/workflows/source.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
- name: install node
uses: actions/setup-node@v4
with:
cache: 'pnpm'
cache: pnpm
check-latest: true
node-version-file: '.nvmrc'
node-version-file: .nvmrc
- name: install dependencies
run: pnpm install
- name: lint source
Expand All @@ -46,9 +46,9 @@ jobs:
- name: install node
uses: actions/setup-node@v4
with:
cache: 'pnpm'
cache: pnpm
check-latest: true
node-version-file: '.nvmrc'
node-version-file: .nvmrc
- name: install dependencies
run: pnpm install
- name: build source
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/title.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
- name: install node
uses: actions/setup-node@v4
with:
cache: 'pnpm'
cache: pnpm
check-latest: true
node-version-file: '.nvmrc'
node-version-file: .nvmrc
- name: install dependencies
run: pnpm install
- name: lint title
Expand Down
9 changes: 0 additions & 9 deletions .prettierignore

This file was deleted.

27 changes: 5 additions & 22 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,6 @@
import config from '@somehow-digital/eslint-config/basic';
import reactHooks from 'eslint-plugin-react-hooks';
import reactRefresh from 'eslint-plugin-react-refresh';
import { globalIgnores } from 'eslint/config';
import globals from 'globals';
import tseslint from 'typescript-eslint';
import config from '@somehow-digital/eslint-config';

export default tseslint.config([
globalIgnores(['dist']),
{
extends: [
config,
tseslint.configs.recommended,
reactHooks.configs['recommended-latest'],
reactRefresh.configs.vite,
],
files: ['**/*.{js,jsx,ts,tsx}'],
languageOptions: {
ecmaVersion: 2022,
globals: globals.browser,
},
},
]);
export default config({
react: true,
unocss: true,
});
4 changes: 2 additions & 2 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default {
'**/*.{js,jsx,ts,tsx}': ['eslint'],
'**/*.{md,json,yml,yaml,css,html}': ['prettier --check', 'cspell --no-progress --no-must-find-files'],
'**/*.{*,__eslint__}': ['eslint'],
'**/*.{*,__cspell__}': ['cspell --no-progress --no-must-find-files'],
};
26 changes: 14 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": true,
"type": "module",
"private": true,
"packageManager": "pnpm@10.13.1",
"engines": {
"node": ">=22",
Expand All @@ -13,10 +13,12 @@
"prepare": "concurrently --group --prefix-colors 'auto' 'pnpm:prepare:*'",
"prepare:husky": "husky",
"lint": "concurrently --group --prefix-colors 'auto' 'pnpm:lint:*'",
"lint:eslint": "eslint '**/*.*'",
"lint:prettier": "prettier --check '**/*.{md,json,yml,yaml,css,html}'",
"lint:cspell": "cspell --no-progress --no-summary --no-must-find-files '**/*.*'",
"lint:knip": "knip --no-progress"
"lint:eslint": "eslint .",
"lint:cspell": "cspell --no-progress --no-summary --no-must-find-files .",
"lint:knip": "knip --no-progress",
"fix": "concurrently --group --prefix-colors 'auto' 'pnpm:fix:*'",
"fix:eslint": "eslint --fix .",
"fix:knip": "knip --no-progress --fix"
},
"dependencies": {
"react": "^19.1.0",
Expand All @@ -26,8 +28,7 @@
"@commitlint/cli": "^19.6.0",
"@somehow-digital/commitlint-config": "^1.0.0",
"@somehow-digital/cspell-dictionary": "^2.7.0",
"@somehow-digital/eslint-config": "^3.0.3",
"@somehow-digital/prettier-config": "^3.0.0",
"@somehow-digital/eslint-config": "^4.0.0",
"@somehow-digital/typescript-config": "^3.0.0",
"@somehow-digital/unocss-preset": "^2.1.0",
"@types/react": "^19.1.8",
Expand All @@ -36,16 +37,17 @@
"concurrently": "^9.1.0",
"cspell": "^9.0.0",
"eslint": "^9.30.1",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.20",
"globals": "^16.3.0",
"husky": "^9.1.7",
"knip": "^5.40.0",
"lint-staged": "^16.0.0",
"prettier": "3.6.2",
"typescript": "~5.8.3",
"typescript-eslint": "^8.35.1",
"unocss": "^66.3.3",
"vite": "^7.0.4"
},
"pnpm": {
"onlyBuiltDependencies": [
"esbuild",
"oxc-resolver"
]
}
}
Loading