Skip to content

Commit

Permalink
🎉 update eqeqeq, unused vars rule, upgrade version (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
woohm402 authored Oct 24, 2024
1 parent 910efc2 commit ee60b31
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.1.30
bun-version: 1.1.33

- name: Install dependencies
run: bun install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.1.30
bun-version: 1.1.33

# npm 공용 레지스트리에 배포
- name: Publish to npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-react.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.1.30
bun-version: 1.1.33

# npm 공용 레지스트리에 배포
- name: Publish to npm
Expand Down
Binary file modified bun.lockb
Binary file not shown.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
"check-all": "bun run test && bun run format:check && bun run unused:check"
},
"devDependencies": {
"@types/node": "22.7.5",
"knip": "5.33.3",
"@types/node": "22.7.9",
"knip": "5.34.0",
"prettier": "3.3.3",
"turbo": "2.1.3",
"turbo": "2.2.3",
"typescript": "5.6.3"
},
"workspaces": [
"packages/*"
],
"packageManager": "[email protected].30"
"packageManager": "[email protected].33"
}
10 changes: 5 additions & 5 deletions packages/base/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@woohm402/eslint-config-base",
"version": "0.9.0",
"version": "0.10.0",
"description": "Base config for TypeScript",
"scripts": {
"build": "tsup",
Expand Down Expand Up @@ -35,16 +35,16 @@
"dependencies": {
"@eslint-community/eslint-plugin-eslint-comments": "4.4.0",
"eslint-plugin-simple-import-sort": "12.1.1",
"typescript-eslint": "8.9.0",
"@eslint/js": "9.12.0"
"typescript-eslint": "8.11.0",
"@eslint/js": "9.13.0"
},
"peerDependencies": {
"eslint": "^9.0.0",
"typescript": "^5.0.0"
},
"devDependencies": {
"@types/node": "22.7.5",
"eslint": "9.12.0",
"@types/node": "22.7.9",
"eslint": "9.13.0",
"tsup": "8.3.0",
"typescript": "5.6.3"
}
Expand Down
11 changes: 10 additions & 1 deletion packages/base/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ const baseRules: ConfigWithExtends = {
rules: {
'@eslint-community/eslint-comments/no-use': ['error', { allow: [] }],
'@typescript-eslint/no-shadow': ['error', { allow: ['_'] }],
'@typescript-eslint/no-unused-vars': [
'error',
{
ignoreRestSiblings: true,
argsIgnorePattern: '^_$',
varsIgnorePattern: '^_$',
caughtErrorsIgnorePattern: '^_$',
},
],
'@typescript-eslint/restrict-template-expressions': [
'error',
{
Expand All @@ -63,9 +72,9 @@ const baseRules: ConfigWithExtends = {
},
],
'@typescript-eslint/unbound-method': 'off',
eqeqeq: ['error', 'smart'],
'no-shadow': 'off',
'simple-import-sort/imports': 'error',
eqeqeq: ['error', 'always', { null: 'ignore' }],
},
};

Expand Down
8 changes: 4 additions & 4 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@woohm402/eslint-config-react",
"version": "0.8.0",
"version": "0.9.0",
"description": "Base config for TypeScript React",
"scripts": {
"build": "tsup",
Expand Down Expand Up @@ -34,8 +34,8 @@
},
"homepage": "https://github.com/woohm402/eslint-config-woohm402#readme",
"dependencies": {
"@woohm402/eslint-config-base": "0.9.0",
"eslint-plugin-react": "7.37.1",
"@woohm402/eslint-config-base": "0.10.0",
"eslint-plugin-react": "7.37.2",
"eslint-plugin-react-hooks": "5.0.0"
},
"peerDependencies": {
Expand All @@ -46,7 +46,7 @@
},
"devDependencies": {
"@types/eslint": "9.6.1",
"@types/node": "22.7.5",
"@types/node": "22.7.9",
"tsup": "8.3.0",
"typescript": "5.6.3"
}
Expand Down

0 comments on commit ee60b31

Please sign in to comment.