Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 54 additions & 3 deletions client/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,56 @@
// Client-specific ESLint configuration
// ESLint configuration for EmailIntelligence
// Compatible with ESLint 9+
Comment on lines +1 to +2
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟑 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail
rg -n '"eslint"\s*:' client/package.json
rg -n 'Compatible with ESLint' client/.eslintrc.json

Repository: MasumRab/EmailIntelligence

Length of output: 128


Config header version claim is inconsistent with installed ESLint version.

Line 2 states ESLint 9+, but client/package.json (line 78) pins ESLint to ^8.57.0. Align the comment or the dependency to prevent confusion during maintenance.

πŸ€– Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@client/.eslintrc.json` around lines 1 - 2, The top-of-file comment in
client/.eslintrc.json claims "ESLint 9+" but client/package.json currently pins
the eslint dependency to "^8.57.0"; update one of those to be consistent: either
change the comment text in .eslintrc.json to reflect "ESLint 8+" (or remove the
version claim) or bump the "eslint" dependency version in client/package.json to
a 9.x range (and run install/tests). Refer to the comment string "ESLint 9+" in
client/.eslintrc.json and the "eslint" entry in client/package.json to make the
change.

{
"extends": ["../.eslintrc.json"],
"rules": {}
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"react",
"react-hooks",
"@typescript-eslint",
"react-refresh"
],
"rules": {
"react-refresh/only-export-components": [
"warn",
{ "allowConstantExport": true }
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/no-explicit-any": "warn",
"prefer-const": "warn",
"no-var": "error",
"react/react-in-jsx-scope": "off",
"react/no-unescaped-entities": "warn",
"react/prop-types": "off"
},
"settings": {
"react": {
"version": "detect"
}
},
"ignorePatterns": [
"node_modules/",
"dist/",
"build/",
"coverage/",
"*.min.js"
]
}
Loading
Loading