import-js / eslint-plugin-import

ESLint plugin with rules that help validate proper imports.
MIT License
5.57k stars 1.57k forks source link

Code Refactoring for Enhanced Readability and Maintainability in Modu… #3081

Closed SpEXterXD closed 1 month ago

SpEXterXD commented 1 month ago

-> Used optional chaining for accessing nested properties to avoid potential errors -> Defined regular expressions and other frequently used values as constants for better readability. -> Kept the isModule and isModuleMain as inline functions for clarity.

ljharb commented 1 month ago

Please don't submit unsolicited refactoring PRs to projects you don't maintain.