feat(linter): enforce correctness on unused imports
Configures the linter to treat unused imports as an error under the `correctness` rule category. This tightens up code quality standards by ensuring all imported bindings are utilized. If the import is unused, there is a high chance refactoring missed this flow. Review in-depth root causes.
This commit is contained in:
1 parent
a6b24b318e
commit
f68a5a8d9b
1 file changed
+4
-1
+4
-1
@@ -15,7 +15,10 @@
|
||||
"linter": {
|
||||
"enabled": true,
|
||||
"rules": {
|
||||
"recommended": true
|
||||
"recommended": true,
|
||||
"correctness": {
|
||||
"noUnusedImports": "error"
|
||||
}
|
||||
}
|
||||
},
|
||||
"javascript": {
|
||||
|
||||
Reference in new issue
Block a user