Skip to content

Commit 27a9b8a

Browse files
committed
Fix ESLint configuration to exclude build artifacts
- Add .eslintignore to exclude build/, node_modules/, and generated files - Update lint script to only target src/ directory instead of all files - Resolves 555+ false lint errors from scanning compiled/minified code
1 parent 509f94c commit 27a9b8a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.eslintignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
build/
2+
dist/
3+
node_modules/
4+
coverage/
5+
public/themes/
6+
*.min.js
7+
*.config.js
8+
craco.config.js
9+
reportWebVitals.ts

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"build": "NODE_OPTIONS=--openssl-legacy-provider yarn buildThemes && NODE_OPTIONS=--openssl-legacy-provider craco build",
8888
"test": "NODE_OPTIONS=--openssl-legacy-provider craco test",
8989
"eject": "NODE_OPTIONS=--openssl-legacy-provider craco eject",
90-
"lint": "eslint \"*/**/*.{js,ts,tsx}\" --fix",
90+
"lint": "eslint \"src/**/*.{js,ts,tsx}\" --fix",
9191
"lint:styles": "stylelint '*/**/*.{js,ts,tsx}'",
9292
"prepare": "husky install",
9393
"update-browserslist": "npx update-browserslist-db@latest",

0 commit comments

Comments
 (0)