Skip to content

Commit a41de9a

Browse files
authored
Merge branch 'develop' into feature/song-search
2 parents db6bdec + f3020af commit a41de9a

File tree

3 files changed

+17
-15
lines changed

3 files changed

+17
-15
lines changed

bun.lock

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"eslint": "^9.36.0",
1616
"eslint-plugin-import": "^2.32.0",
1717
"eslint-plugin-mdx": "^3.6.2",
18-
"eslint-plugin-unused-imports": "^2.0.0",
18+
"eslint-plugin-unused-imports": "^4.2.0",
1919
"globals": "^16.4.0",
2020
"husky": "^9.1.7",
2121
"lint-staged": "^16.2.3",
@@ -1608,9 +1608,7 @@
16081608

16091609
"eslint-plugin-react-hooks": ["[email protected]", "", { "peerDependencies": { "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0" } }, "sha512-AZYbMo/NW9chdL7vk6HQzQhT+PvTAEVqWk9ziruUoW2kAOcN5qNyelv70e0F1VNQAbvutOC9oc+xfWycI9FxDw=="],
16101610

1611-
"eslint-plugin-unused-imports": ["[email protected]", "", { "dependencies": { "eslint-rule-composer": "^0.3.0" }, "peerDependencies": { "@typescript-eslint/eslint-plugin": "^5.0.0", "eslint": "^8.0.0" }, "optionalPeers": ["@typescript-eslint/eslint-plugin"] }, "sha512-3APeS/tQlTrFa167ThtP0Zm0vctjr4M44HMpeg1P4bK6wItarumq0Ma82xorMKdFsWpphQBlRPzw/pxiVELX1A=="],
1612-
1613-
"eslint-rule-composer": ["[email protected]", "", {}, "sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg=="],
1611+
"eslint-plugin-unused-imports": ["[email protected]", "", { "peerDependencies": { "@typescript-eslint/eslint-plugin": "^8.0.0-0 || ^7.0.0 || ^6.0.0 || ^5.0.0", "eslint": "^9.0.0 || ^8.0.0" }, "optionalPeers": ["@typescript-eslint/eslint-plugin"] }, "sha512-hLbJ2/wnjKq4kGA9AUaExVFIbNzyxYdVo49QZmKCnhk5pc9wcYRbfgLHvWJ8tnsdcseGhoUAddm9gn/lt+d74w=="],
16141612

16151613
"eslint-scope": ["[email protected]", "", { "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^5.2.0" } }, "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg=="],
16161614

eslint.config.mjs

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import eslint from '@eslint/js';
44
import { defineConfig } from 'eslint/config';
55
import importPlugin from 'eslint-plugin-import';
66
import react from 'eslint-plugin-react';
7+
import unusedImports from 'eslint-plugin-unused-imports';
78
import globals from 'globals';
89
import tseslint from 'typescript-eslint';
910

@@ -34,6 +35,7 @@ export default defineConfig(
3435
},
3536
plugins: {
3637
import: importPlugin,
38+
'unused-imports': unusedImports,
3739
},
3840
settings: {
3941
'import/resolver': {
@@ -57,16 +59,7 @@ export default defineConfig(
5759
'@typescript-eslint/no-explicit-any': 'warn',
5860
'@typescript-eslint/no-require-imports': 'warn',
5961
'@typescript-eslint/ban-ts-comment': 'warn',
60-
'@typescript-eslint/no-unused-vars': [
61-
'warn',
62-
{
63-
vars: 'all',
64-
varsIgnorePattern: '^_',
65-
args: 'after-used',
66-
argsIgnorePattern: '^_',
67-
caughtErrors: 'none', // Allow unused error variables in catch blocks
68-
},
69-
],
62+
'@typescript-eslint/no-unused-vars': 'off', // Handled by unused-imports plugin
7063
'lines-between-class-members': [
7164
'warn',
7265
'always',
@@ -98,6 +91,17 @@ export default defineConfig(
9891
],
9992
'import/newline-after-import': 'warn',
10093
'import/no-duplicates': 'warn',
94+
'unused-imports/no-unused-imports': 'warn',
95+
'unused-imports/no-unused-vars': [
96+
'warn',
97+
{
98+
vars: 'all',
99+
varsIgnorePattern: '^_',
100+
args: 'after-used',
101+
argsIgnorePattern: '^_',
102+
caughtErrors: 'none', // Allow unused error variables in catch blocks
103+
},
104+
],
101105
},
102106
},
103107

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"eslint": "^9.36.0",
8080
"eslint-plugin-import": "^2.32.0",
8181
"eslint-plugin-mdx": "^3.6.2",
82-
"eslint-plugin-unused-imports": "^2.0.0",
82+
"eslint-plugin-unused-imports": "^4.2.0",
8383
"globals": "^16.4.0",
8484
"husky": "^9.1.7",
8585
"lint-staged": "^16.2.3",

0 commit comments

Comments
 (0)