v9.30.0
Breaking Changes📦 eslint
⚠ 1 breaking✨ 3 features🐛 4 fixes🔧 5 symbols
Summary
This release introduces the basePath config property and a new option for no-duplicate-imports, while also hardening the getIndexFromLoc method with better error handling and null checks.
⚠️ Breaking Changes
- getIndexFromLoc now throws an error when the column is negative. Ensure that any calls to this method provide non-negative column values to avoid runtime exceptions.
Migration Steps
- Review usage of getIndexFromLoc to ensure column arguments are not negative.
✨ New Features
- Support basePath property in config objects
- Add allowSeparateTypeImports option to no-duplicate-imports rule
- Throw error when column is negative in getIndexFromLoc
🐛 Bug Fixes
- Handle null type loc in getIndexFromLoc method
- Update error message for no-restricted-properties
- Remove unnecessary semicolon from fixes
- Use process.version in --env-info
🔧 Affected Symbols
getIndexFromLocno-duplicate-importsno-restricted-propertiesconfig.basePathmeta.deprecated