Skip to content

Commit

Permalink
chore: bump dependencies, update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyingchun committed Dec 6, 2024
1 parent 015c0e8 commit 979b400
Show file tree
Hide file tree
Showing 4 changed files with 292 additions and 248 deletions.
5 changes: 5 additions & 0 deletions .changeset/healthy-taxis-whisper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hyperse/eslint-config-hyperse": patch
---

bump dependencies, update readme
47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,3 +201,50 @@ we need to disable vscode editor language formatter for `json, jsonc`

1. Isolated Modules - isolatedModules (default:`true`)
2. Verbatim Module Syntax - verbatimModuleSyntax (default:`true`)

## References

- If you want to customize the prettier config, you may need to configure as below

```ts
import {
defineConfig,
getPrettierConfig,
reactjs,
} from '@hyperse/eslint-config-hyperse';

export default defineConfig([
...reactjs,
{
rules: {
'prettier/prettier': [
'error',
{ ...getPrettierConfig(), printWidth: 120 },
],
},
},
]);
```

- If you want to extends `tailwindcss` rules, you may need to configure as below

```ts
import { base, defineConfig } from '@hyperse/eslint-config-hyperse';

export default defineConfig([
// ...typescript
...base,
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'tailwindcss/classnames-order': 'warn',
'tailwindcss/enforces-negative-arbitrary-values': 'warn',
'tailwindcss/enforces-shorthand': 'warn',
'tailwindcss/migration-from-tailwind-2': 'warn',
'tailwindcss/no-arbitrary-value': 'off',
'tailwindcss/no-custom-classname': 'warn',
'tailwindcss/no-contradicting-classname': 'error',
},
},
]);
```
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@
"eslint-plugin-markdown": "5.1.0"
},
"dependencies": {
"@eslint/js": "^9.15.0",
"@eslint/js": "^9.16.0",
"@next/eslint-plugin-next": "rc",
"@typescript-eslint/utils": "^8.15.0",
"@vitest/eslint-plugin": "^1.1.10",
"@typescript-eslint/utils": "^8.17.0",
"@vitest/eslint-plugin": "^1.1.14",
"app-root-path": "^3.1.0",
"eslint-config-prettier": "^9.1.0",
"eslint-define-config": "^2.1.0",
Expand All @@ -88,30 +88,30 @@
"eslint-plugin-sonarjs": "^1.0.4",
"eslint-plugin-tailwindcss": "^3.17.5",
"get-tsconfig": "^4.8.1",
"globals": "^15.12.0",
"prettier": "^3.3.3",
"tailwindcss": "^3.4.15",
"typescript-eslint": "^8.15.0"
"globals": "^15.13.0",
"prettier": "^3.4.2",
"tailwindcss": "^3.4.16",
"typescript-eslint": "^8.17.0"
},
"devDependencies": {
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.10",
"@commitlint/cli": "19.6.0",
"@commitlint/config-conventional": "19.6.0",
"@swc/core": "^1.9.2",
"@swc/core": "^1.10.0",
"@types/eslint__js": "^8.42.3",
"@types/node": "22.9.1",
"@types/react": "^18.3.12",
"@types/node": "22.10.1",
"@types/react": "^19.0.0",
"commitizen": "4.3.1",
"cz-conventional-changelog": "3.3.0",
"eslint": "^9.15.0",
"eslint": "^9.16.0",
"husky": "9.1.7",
"lint-staged": "15.2.10",
"rimraf": "6.0.1",
"tsup": "^8.3.5",
"tsx": "^4.19.2",
"typescript": "5.6.3",
"vitest": "2.1.5"
"typescript": "5.7.2",
"vitest": "2.1.8"
},
"peerDependencies": {
"eslint": ">=9.3.0",
Expand Down
Loading

0 comments on commit 979b400

Please sign in to comment.