Skip to content

Commit 0e02328

Browse files
chore(deps): update dependency @somehow-digital/eslint-config to v4 (#6)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Thomas Deinhamer <code@thasmo.dev>
1 parent b3ec6ff commit 0e02328

11 files changed

Lines changed: 1933 additions & 353 deletions

.github/workflows/source.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ jobs:
2424
- name: install node
2525
uses: actions/setup-node@v4
2626
with:
27-
cache: 'pnpm'
27+
cache: pnpm
2828
check-latest: true
29-
node-version-file: '.nvmrc'
29+
node-version-file: .nvmrc
3030
- name: install dependencies
3131
run: pnpm install
3232
- name: lint source
@@ -46,9 +46,9 @@ jobs:
4646
- name: install node
4747
uses: actions/setup-node@v4
4848
with:
49-
cache: 'pnpm'
49+
cache: pnpm
5050
check-latest: true
51-
node-version-file: '.nvmrc'
51+
node-version-file: .nvmrc
5252
- name: install dependencies
5353
run: pnpm install
5454
- name: build source

.github/workflows/title.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
- name: install node
2222
uses: actions/setup-node@v4
2323
with:
24-
cache: 'pnpm'
24+
cache: pnpm
2525
check-latest: true
26-
node-version-file: '.nvmrc'
26+
node-version-file: .nvmrc
2727
- name: install dependencies
2828
run: pnpm install
2929
- name: lint title

.prettierignore

Lines changed: 0 additions & 9 deletions
This file was deleted.

eslint.config.js

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,6 @@
1-
import config from '@somehow-digital/eslint-config/basic';
2-
import reactHooks from 'eslint-plugin-react-hooks';
3-
import reactRefresh from 'eslint-plugin-react-refresh';
4-
import { globalIgnores } from 'eslint/config';
5-
import globals from 'globals';
6-
import tseslint from 'typescript-eslint';
1+
import config from '@somehow-digital/eslint-config';
72

8-
export default tseslint.config([
9-
globalIgnores(['dist']),
10-
{
11-
extends: [
12-
config,
13-
tseslint.configs.recommended,
14-
reactHooks.configs['recommended-latest'],
15-
reactRefresh.configs.vite,
16-
],
17-
files: ['**/*.{js,jsx,ts,tsx}'],
18-
languageOptions: {
19-
ecmaVersion: 2022,
20-
globals: globals.browser,
21-
},
22-
},
23-
]);
3+
export default config({
4+
react: true,
5+
unocss: true,
6+
});

lint-staged.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export default {
2-
'**/*.{js,jsx,ts,tsx}': ['eslint'],
3-
'**/*.{md,json,yml,yaml,css,html}': ['prettier --check', 'cspell --no-progress --no-must-find-files'],
2+
'**/*.{*,__eslint__}': ['eslint'],
3+
'**/*.{*,__cspell__}': ['cspell --no-progress --no-must-find-files'],
44
};

package.json

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"private": true,
32
"type": "module",
3+
"private": true,
44
"packageManager": "pnpm@10.13.1",
55
"engines": {
66
"node": ">=22",
@@ -13,10 +13,12 @@
1313
"prepare": "concurrently --group --prefix-colors 'auto' 'pnpm:prepare:*'",
1414
"prepare:husky": "husky",
1515
"lint": "concurrently --group --prefix-colors 'auto' 'pnpm:lint:*'",
16-
"lint:eslint": "eslint '**/*.*'",
17-
"lint:prettier": "prettier --check '**/*.{md,json,yml,yaml,css,html}'",
18-
"lint:cspell": "cspell --no-progress --no-summary --no-must-find-files '**/*.*'",
19-
"lint:knip": "knip --no-progress"
16+
"lint:eslint": "eslint .",
17+
"lint:cspell": "cspell --no-progress --no-summary --no-must-find-files .",
18+
"lint:knip": "knip --no-progress",
19+
"fix": "concurrently --group --prefix-colors 'auto' 'pnpm:fix:*'",
20+
"fix:eslint": "eslint --fix .",
21+
"fix:knip": "knip --no-progress --fix"
2022
},
2123
"dependencies": {
2224
"react": "^19.1.0",
@@ -26,8 +28,7 @@
2628
"@commitlint/cli": "^19.6.0",
2729
"@somehow-digital/commitlint-config": "^1.0.0",
2830
"@somehow-digital/cspell-dictionary": "^2.7.0",
29-
"@somehow-digital/eslint-config": "^3.0.3",
30-
"@somehow-digital/prettier-config": "^3.0.0",
31+
"@somehow-digital/eslint-config": "^4.0.0",
3132
"@somehow-digital/typescript-config": "^3.0.0",
3233
"@somehow-digital/unocss-preset": "^2.1.0",
3334
"@types/react": "^19.1.8",
@@ -36,16 +37,17 @@
3637
"concurrently": "^9.1.0",
3738
"cspell": "^9.0.0",
3839
"eslint": "^9.30.1",
39-
"eslint-plugin-react-hooks": "^5.2.0",
40-
"eslint-plugin-react-refresh": "^0.4.20",
41-
"globals": "^16.3.0",
4240
"husky": "^9.1.7",
4341
"knip": "^5.40.0",
4442
"lint-staged": "^16.0.0",
45-
"prettier": "3.6.2",
4643
"typescript": "~5.8.3",
47-
"typescript-eslint": "^8.35.1",
4844
"unocss": "^66.3.3",
4945
"vite": "^7.0.4"
46+
},
47+
"pnpm": {
48+
"onlyBuiltDependencies": [
49+
"esbuild",
50+
"oxc-resolver"
51+
]
5052
}
5153
}

0 commit comments

Comments
 (0)