Skip to content

Commit 7dee3df

Browse files
committed
chore: remove @stylistic/eslint-plugin from devDependencies and update ESLint configuration for improved rule management
1 parent 54ee6d5 commit 7dee3df

File tree

3 files changed

+31
-103
lines changed

3 files changed

+31
-103
lines changed

bun.lock

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
},
1010
"devDependencies": {
1111
"@eslint/js": "^9.35.0",
12-
"@stylistic/eslint-plugin": "^5.4.0",
1312
"@types/bun": "^1.2.10",
1413
"@types/node": "^20.3.1",
1514
"@typescript-eslint/eslint-plugin": "^8.43.0",
@@ -868,8 +867,6 @@
868867

869868
"@smithy/util-waiter": ["@smithy/[email protected]", "", { "dependencies": { "@smithy/abort-controller": "^3.1.9", "@smithy/types": "^3.7.2", "tslib": "^2.6.2" } }, "sha512-PpjSboaDUE6yl+1qlg3Si57++e84oXdWGbuFUSAciXsVfEZJJJupR2Nb0QuXHiunt2vGR+1PTizOMvnUPaG2Qg=="],
870869

871-
"@stylistic/eslint-plugin": ["@stylistic/[email protected]", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.9.0", "@typescript-eslint/types": "^8.44.0", "eslint-visitor-keys": "^4.2.1", "espree": "^10.4.0", "estraverse": "^5.3.0", "picomatch": "^4.0.3" }, "peerDependencies": { "eslint": ">=9.0.0" } }, "sha512-UG8hdElzuBDzIbjG1QDwnYH0MQ73YLXDFHgZzB4Zh/YJfnw8XNsloVtytqzx0I2Qky9THSdpTmi8Vjn/pf/Lew=="],
872-
873870
"@swc/counter": ["@swc/[email protected]", "", {}, "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ=="],
874871

875872
"@swc/helpers": ["@swc/[email protected]", "", { "dependencies": { "@swc/counter": "^0.1.3", "tslib": "^2.4.0" } }, "sha512-KGYxvIOXcceOAbEk4bi/dVLEK9z8sZ0uBB3Il5b1rhfClSpcX0yfRO0KmTkqR2cnQDymwLB+25ZyMzICg/cm/A=="],
@@ -1038,7 +1035,7 @@
10381035

10391036
"@typescript-eslint/type-utils": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.43.0", "@typescript-eslint/typescript-estree": "8.43.0", "@typescript-eslint/utils": "8.43.0", "debug": "^4.3.4", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-qaH1uLBpBuBBuRf8c1mLJ6swOfzCXryhKND04Igr4pckzSEW9JX5Aw9AgW00kwfjWJF0kk0ps9ExKTfvXfw4Qg=="],
10401037

1041-
"@typescript-eslint/types": ["@typescript-eslint/types@8.44.1", "", {}, "sha512-Lk7uj7y9uQUOEguiDIDLYLJOrYHQa7oBiURYVFqIpGxclAFQ78f6VUOM8lI2XEuNOKNB7XuvM2+2cMXAoq4ALQ=="],
1038+
"@typescript-eslint/types": ["@typescript-eslint/types@8.43.0", "", {}, "sha512-vQ2FZaxJpydjSZJKiSW/LJsabFFvV7KgLC5DiLhkBcykhQj8iK9BOaDmQt74nnKdLvceM5xmhaTF+pLekrxEkw=="],
10421039

10431040
"@typescript-eslint/typescript-estree": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/project-service": "8.43.0", "@typescript-eslint/tsconfig-utils": "8.43.0", "@typescript-eslint/types": "8.43.0", "@typescript-eslint/visitor-keys": "8.43.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", "minimatch": "^9.0.4", "semver": "^7.6.0", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "typescript": ">=4.8.4 <6.0.0" } }, "sha512-7Vv6zlAhPb+cvEpP06WXXy/ZByph9iL6BQRBDj4kmBsW98AqEeQHlj/13X+sZOrKSo9/rNKH4Ul4f6EICREFdw=="],
10441041

@@ -2442,7 +2439,7 @@
24422439

24432440
"picocolors": ["[email protected]", "", {}, "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="],
24442441

2445-
"picomatch": ["[email protected].3", "", {}, "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q=="],
2442+
"picomatch": ["[email protected].1", "", {}, "sha512-xUXwsxNjwTQ8K3GnT4pCJm+xq3RUPQbmkYJTP5aFIfNIvbcc/4MUxgBaaRSZJ6yGJZiGSyYlM6MzwTsRk8SYCg=="],
24462443

24472444
"pify": ["[email protected]", "", {}, "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog=="],
24482445

@@ -3042,8 +3039,6 @@
30423039

30433040
"@angular-devkit/core/jsonc-parser": ["[email protected]", "", {}, "sha512-AilxAyFOAcK5wA1+LeaySVBrHsGQvUFCDWXKpZjzaL0PqW+xfBOttn8GNtWKFWqneyMZj41MWF9Kl6iPWLwgOA=="],
30443041

3045-
"@angular-devkit/core/picomatch": ["[email protected]", "", {}, "sha512-xUXwsxNjwTQ8K3GnT4pCJm+xq3RUPQbmkYJTP5aFIfNIvbcc/4MUxgBaaRSZJ6yGJZiGSyYlM6MzwTsRk8SYCg=="],
3046-
30473042
"@angular-devkit/core/rxjs": ["[email protected]", "", { "dependencies": { "tslib": "^2.1.0" } }, "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg=="],
30483043

30493044
"@angular-devkit/core/source-map": ["[email protected]", "", {}, "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA=="],
@@ -3196,24 +3191,10 @@
31963191

31973192
"@types/whatwg-url/@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~6.20.0" } }, "sha512-+lTU0PxZXn0Dr1NBtC7Y8cR21AJr87dLLU953CWA6pMxxv/UDc7jYAY90upcrie1nRcD6XNG5HOYEDtgW5TxAg=="],
31983193

3199-
"@typescript-eslint/parser/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-vQ2FZaxJpydjSZJKiSW/LJsabFFvV7KgLC5DiLhkBcykhQj8iK9BOaDmQt74nnKdLvceM5xmhaTF+pLekrxEkw=="],
3200-
3201-
"@typescript-eslint/project-service/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-vQ2FZaxJpydjSZJKiSW/LJsabFFvV7KgLC5DiLhkBcykhQj8iK9BOaDmQt74nnKdLvceM5xmhaTF+pLekrxEkw=="],
3202-
3203-
"@typescript-eslint/scope-manager/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-vQ2FZaxJpydjSZJKiSW/LJsabFFvV7KgLC5DiLhkBcykhQj8iK9BOaDmQt74nnKdLvceM5xmhaTF+pLekrxEkw=="],
3204-
3205-
"@typescript-eslint/type-utils/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-vQ2FZaxJpydjSZJKiSW/LJsabFFvV7KgLC5DiLhkBcykhQj8iK9BOaDmQt74nnKdLvceM5xmhaTF+pLekrxEkw=="],
3206-
3207-
"@typescript-eslint/typescript-estree/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-vQ2FZaxJpydjSZJKiSW/LJsabFFvV7KgLC5DiLhkBcykhQj8iK9BOaDmQt74nnKdLvceM5xmhaTF+pLekrxEkw=="],
3208-
32093194
"@typescript-eslint/typescript-estree/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "^2.0.1" } }, "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow=="],
32103195

32113196
"@typescript-eslint/typescript-estree/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="],
32123197

3213-
"@typescript-eslint/utils/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-vQ2FZaxJpydjSZJKiSW/LJsabFFvV7KgLC5DiLhkBcykhQj8iK9BOaDmQt74nnKdLvceM5xmhaTF+pLekrxEkw=="],
3214-
3215-
"@typescript-eslint/visitor-keys/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-vQ2FZaxJpydjSZJKiSW/LJsabFFvV7KgLC5DiLhkBcykhQj8iK9BOaDmQt74nnKdLvceM5xmhaTF+pLekrxEkw=="],
3216-
32173198
"ajv-formats/ajv": ["[email protected]", "", { "dependencies": { "fast-deep-equal": "^3.1.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2", "uri-js": "^4.2.2" } }, "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA=="],
32183199

32193200
"alce/esprima": ["[email protected]", "", { "bin": { "esparse": "./bin/esparse.js", "esvalidate": "./bin/esvalidate.js" } }, "sha512-S9VbPDU0adFErpDai3qDkjq8+G05ONtKzcyNrPKg/ZKa+tf879nX2KexNU95b31UoTJjRLInNBHHHjFPoCd7lQ=="],
@@ -4250,12 +4231,16 @@
42504231

42514232
"typescript-eslint/@typescript-eslint/parser/@typescript-eslint/scope-manager": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.44.1", "@typescript-eslint/visitor-keys": "8.44.1" } }, "sha512-NdhWHgmynpSvyhchGLXh+w12OMT308Gm25JoRIyTZqEbApiBiQHD/8xgb6LqCWCFcxFtWwaVdFsLPQI3jvhywg=="],
42524233

4234+
"typescript-eslint/@typescript-eslint/parser/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-Lk7uj7y9uQUOEguiDIDLYLJOrYHQa7oBiURYVFqIpGxclAFQ78f6VUOM8lI2XEuNOKNB7XuvM2+2cMXAoq4ALQ=="],
4235+
42534236
"typescript-eslint/@typescript-eslint/parser/@typescript-eslint/visitor-keys": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.44.1", "eslint-visitor-keys": "^4.2.1" } }, "sha512-576+u0QD+Jp3tZzvfRfxon0EA2lzcDt3lhUbsC6Lgzy9x2VR4E+JUiNyGHi5T8vk0TV+fpJ5GLG1JsJuWCaKhw=="],
42544237

42554238
"typescript-eslint/@typescript-eslint/typescript-estree/@typescript-eslint/project-service": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/tsconfig-utils": "^8.44.1", "@typescript-eslint/types": "^8.44.1", "debug": "^4.3.4" }, "peerDependencies": { "typescript": ">=4.8.4 <6.0.0" } }, "sha512-ycSa60eGg8GWAkVsKV4E6Nz33h+HjTXbsDT4FILyL8Obk5/mx4tbvCNsLf9zret3ipSumAOG89UcCs/KRaKYrA=="],
42564239

42574240
"typescript-eslint/@typescript-eslint/typescript-estree/@typescript-eslint/tsconfig-utils": ["@typescript-eslint/[email protected]", "", { "peerDependencies": { "typescript": ">=4.8.4 <6.0.0" } }, "sha512-B5OyACouEjuIvof3o86lRMvyDsFwZm+4fBOqFHccIctYgBjqR3qT39FBYGN87khcgf0ExpdCBeGKpKRhSFTjKQ=="],
42584241

4242+
"typescript-eslint/@typescript-eslint/typescript-estree/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-Lk7uj7y9uQUOEguiDIDLYLJOrYHQa7oBiURYVFqIpGxclAFQ78f6VUOM8lI2XEuNOKNB7XuvM2+2cMXAoq4ALQ=="],
4243+
42594244
"typescript-eslint/@typescript-eslint/typescript-estree/@typescript-eslint/visitor-keys": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.44.1", "eslint-visitor-keys": "^4.2.1" } }, "sha512-576+u0QD+Jp3tZzvfRfxon0EA2lzcDt3lhUbsC6Lgzy9x2VR4E+JUiNyGHi5T8vk0TV+fpJ5GLG1JsJuWCaKhw=="],
42604245

42614246
"typescript-eslint/@typescript-eslint/typescript-estree/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "^2.0.1" } }, "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow=="],
@@ -4264,6 +4249,8 @@
42644249

42654250
"typescript-eslint/@typescript-eslint/utils/@typescript-eslint/scope-manager": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.44.1", "@typescript-eslint/visitor-keys": "8.44.1" } }, "sha512-NdhWHgmynpSvyhchGLXh+w12OMT308Gm25JoRIyTZqEbApiBiQHD/8xgb6LqCWCFcxFtWwaVdFsLPQI3jvhywg=="],
42664251

4252+
"typescript-eslint/@typescript-eslint/utils/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-Lk7uj7y9uQUOEguiDIDLYLJOrYHQa7oBiURYVFqIpGxclAFQ78f6VUOM8lI2XEuNOKNB7XuvM2+2cMXAoq4ALQ=="],
4253+
42674254
"unified-engine/@types/node/undici-types": ["[email protected]", "", {}, "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg=="],
42684255

42694256
"unified-engine/concat-stream/readable-stream": ["[email protected]", "", { "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", "util-deprecate": "^1.0.1" } }, "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA=="],
@@ -4398,6 +4385,12 @@
43984385

43994386
"terser-webpack-plugin/schema-utils/ajv/json-schema-traverse": ["[email protected]", "", {}, "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="],
44004387

4388+
"typescript-eslint/@typescript-eslint/eslint-plugin/@typescript-eslint/scope-manager/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-Lk7uj7y9uQUOEguiDIDLYLJOrYHQa7oBiURYVFqIpGxclAFQ78f6VUOM8lI2XEuNOKNB7XuvM2+2cMXAoq4ALQ=="],
4389+
4390+
"typescript-eslint/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-Lk7uj7y9uQUOEguiDIDLYLJOrYHQa7oBiURYVFqIpGxclAFQ78f6VUOM8lI2XEuNOKNB7XuvM2+2cMXAoq4ALQ=="],
4391+
4392+
"typescript-eslint/@typescript-eslint/eslint-plugin/@typescript-eslint/visitor-keys/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-Lk7uj7y9uQUOEguiDIDLYLJOrYHQa7oBiURYVFqIpGxclAFQ78f6VUOM8lI2XEuNOKNB7XuvM2+2cMXAoq4ALQ=="],
4393+
44014394
"typescript-eslint/@typescript-eslint/typescript-estree/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA=="],
44024395

44034396
"typescript-eslint/@typescript-eslint/utils/@typescript-eslint/scope-manager/@typescript-eslint/visitor-keys": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.44.1", "eslint-visitor-keys": "^4.2.1" } }, "sha512-576+u0QD+Jp3tZzvfRfxon0EA2lzcDt3lhUbsC6Lgzy9x2VR4E+JUiNyGHi5T8vk0TV+fpJ5GLG1JsJuWCaKhw=="],

eslint.config.js

Lines changed: 17 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ import js from '@eslint/js';
22
import tseslint from 'typescript-eslint';
33
import globals from 'globals';
44
import importPlugin from 'eslint-plugin-import';
5-
import stylistic from '@stylistic/eslint-plugin';
65
import react from 'eslint-plugin-react';
76

87
export default tseslint.config(
9-
// Global ignores.
8+
// Global ignores (no changes here)
109
{
1110
ignores: [
1211
'**/node_modules/**',
@@ -21,131 +20,68 @@ export default tseslint.config(
2120
],
2221
},
2322

24-
// Apply base recommended configurations.
23+
// Base recommended configurations (no changes here)
2524
js.configs.recommended,
2625
...tseslint.configs.recommended,
2726

28-
// A single, unified object for all custom rules and plugin configurations.
27+
// Main configuration object
2928
{
3029
languageOptions: {
31-
globals: {
32-
...globals.node,
33-
...globals.es2021, // A modern equivalent of the 'es6' env
34-
},
30+
globals: { ...globals.node, ...globals.es2021, ...globals.bun },
3531
},
3632
plugins: {
3733
'import': importPlugin,
38-
'@stylistic': stylistic,
3934
},
4035
settings: {
4136
'import/resolver': {
4237
typescript: {
43-
// Point to all tsconfig.json files in your workspaces
44-
project: [
45-
'apps/*/tsconfig.json',
46-
'packages/*/tsconfig.json',
47-
'./tsconfig.json', // Also include the root tsconfig as a fallback
48-
],
38+
project: ['apps/*/tsconfig.json', 'packages/*/tsconfig.json', './tsconfig.json'],
4939
},
5040
node: true,
5141
},
52-
// Allow Bun built-in modules
5342
'import/core-modules': ['bun:test', 'bun:sqlite', 'bun'],
5443
},
5544
rules: {
56-
// Manually include rules from the import plugin's recommended configs.
5745
...importPlugin.configs.recommended.rules,
5846
...importPlugin.configs.typescript.rules,
5947

60-
// Your custom rules from the original file.
48+
// Core and TypeScript rules (keep these)
6149
'no-console': 'warn',
62-
'max-len': ['error', {
63-
code: 1024,
64-
ignoreComments: true,
65-
ignoreUrls: true,
66-
ignoreStrings: true,
67-
ignoreTemplateLiterals: true,
68-
}],
6950
'@typescript-eslint/no-explicit-any': 'warn',
7051
'@typescript-eslint/no-require-imports': 'warn',
7152
'@typescript-eslint/ban-ts-comment': 'warn',
7253
'@typescript-eslint/no-unused-vars': [
7354
'warn',
74-
{
75-
vars: 'all',
76-
varsIgnorePattern: '^_',
77-
args: 'after-used',
78-
argsIgnorePattern: '^_',
79-
},
55+
{ vars: 'all', varsIgnorePattern: '^_', args: 'after-used', argsIgnorePattern: '^_' },
8056
],
57+
'lines-between-class-members': ['warn', 'always', { exceptAfterSingleLine: true }], // 👈 ADD THIS RULE
58+
59+
// Import rules (keep these)
8160
'import/order': ['error', {
82-
groups: [
83-
'builtin',
84-
'external',
85-
'internal',
86-
'parent',
87-
'sibling',
88-
'index',
89-
'object',
90-
'unknown',
91-
],
92-
'pathGroups': [{
93-
pattern: '@/**',
94-
group: 'internal',
95-
}],
61+
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'object', 'unknown'],
62+
'pathGroups': [{ pattern: '@/**', group: 'internal' }],
9663
pathGroupsExcludedImportTypes: ['builtin'],
9764
'newlines-between': 'always',
98-
alphabetize: {
99-
order: 'asc',
100-
caseInsensitive: true,
101-
},
65+
alphabetize: { order: 'asc', caseInsensitive: true },
10266
}],
10367
'import/newline-after-import': 'error',
10468
'import/no-duplicates': 'error',
105-
106-
// Spacing rules for consistency
107-
'@stylistic/indent': ['error', 4], // Set default indentation to 4 spaces.
108-
'@stylistic/space-infix-ops': 'error', // Enforces spaces around operators like +, =, etc.
109-
'@stylistic/keyword-spacing': ['error', { 'before': true, 'after': true }], // Enforces spaces around keywords like if, else.
110-
'@stylistic/arrow-spacing': ['error', { 'before': true, 'after': true }], // Enforces spaces around arrow in arrow functions.
111-
'@stylistic/space-before-blocks': 'error', // Enforces a space before opening curly braces.
112-
'@stylistic/object-curly-spacing': ['error', 'always'], // Enforces spaces inside curly braces: { foo } not {foo}.
113-
'@stylistic/comma-spacing': ['error', { 'before': false, 'after': true }], // Enforces space after a comma, not before.
114-
'@stylistic/space-before-function-paren': ['error', { 'anonymous': 'always', 'named': 'never', 'asyncArrow': 'always' }], // Controls space before function parentheses.
115-
'@stylistic/comma-dangle': ['error', 'never'], // Disallows trailing commas
116-
'@stylistic/key-spacing': ['error', {
117-
align: {
118-
beforeColon: false,
119-
afterColon: true,
120-
on: 'colon',
121-
},
122-
}],
12369
},
12470
},
12571

126-
// React specific configuration
72+
// React specific configuration (no changes here)
12773
{
12874
files: ['**/*.{js,jsx,mjs,cjs,ts,tsx}'],
12975
plugins: {
13076
react,
13177
},
13278
rules: {
13379
...react.configs.recommended.rules,
134-
'react/react-in-jsx-scope': 'off', // Not needed with modern React
80+
'react/react-in-jsx-scope': 'off',
13581
'react/no-unknown-property': ['error', { ignore: ['custom-prop', 'cmdk-input-wrapper', 'cmdk-group-heading'] }]
13682
},
13783
settings: {
138-
react: {
139-
version: 'detect', // Automatically detect the React version
140-
},
141-
},
142-
},
143-
// Override for JSX files
144-
{
145-
files: ['**/*.jsx', '**/*.tsx'],
146-
rules: {
147-
'@stylistic/indent': ['error', 2], // Set indentation to 2 spaces for JSX files.
84+
react: { version: 'detect' },
14885
},
14986
},
150-
);
151-
87+
);

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
],
6868
"devDependencies": {
6969
"@eslint/js": "^9.35.0",
70-
"@stylistic/eslint-plugin": "^5.4.0",
7170
"@types/bun": "^1.2.10",
7271
"@types/node": "^20.3.1",
7372
"@typescript-eslint/eslint-plugin": "^8.43.0",

0 commit comments

Comments
 (0)