6.2.0
Breaking Changes
- ESM-only package: Changed to pure ESM package
- Added
"type": "module"to package.json - Removed CJS build output -
dist/index.jsis now ESM only - Config file must use ESM format:
eslint.config.tsoreslint.config.mjs eslint.config.cjsandeslint.config.js(CommonJS) are no longer supported- This change was necessary because core dependencies like
@stylistic/eslint-pluginare ESM-only
- Added
Added
- Stylistic Options Support: Added
stylisticoption to multiple configsjsonc: Supportstylisticoption for indent controlyaml: Supportstylisticoption for indent and quotes controltoml: Supportstylisticoption for indent controlvue: Supportstylisticoption for indent control
- TypeScript Enhancements:
- Added
type: 'lib'option to enablets/explicit-function-return-typefor libraries - Added
erasableOnlyoption to enableeslint-plugin-erasable-syntax-only - Added
overridesTypeAwareoption to override type-aware rules - Updated to use
projectServiceinstead ofprojectfor better performance
- Added
- New Optional Dependency: Added
eslint-plugin-erasable-syntax-onlyfor erasable syntax checking
Changed
- Simplified build: Removed CJS build step, only ESM output now
- Faster build times
- Smaller package size
- Stylistic Defaults:
- Changed
arrowParensdefault fromtrue(always) tofalse(avoid) - single param arrow functions don't need parentheses - Changed
quotePropsdefault from'consistent-as-needed'to'as-needed'- compatible with Prettier - Added
@stylistic/operator-linebreakwith overrides:|and&at beginning of line, others at end - Added
@stylistic/multiline-ternarywith'never'- keeps ternary expressions on same line - YAML uses double quotes by default (supports escape sequences, consistent with TOML/JSON/Prettier)
- Changed
- TOML Config: Enhanced with more stylistic rules
- Added
toml/array-bracket-newline,toml/array-bracket-spacing, etc. - Changed
toml/indentfrom'tab'to2
- Added
- YAML Config: Added
yml/quotesrule for consistent quote style - JSON Config: Added more stylistic rules when
stylisticis enabled - Vue Config: Added more stylistic rules when
stylisticis enabled - Rule Configuration Sync: Updated rules to align with modern best practices
- Removed
@stylistic/max-lenrule (no line length limit by default) - Changed
n/prefer-global/bufferto'always'(use global Buffer) - Changed
n/prefer-global/processto'always'(use global process) - Added
ts/no-unused-expressionswith options for short-circuit, ternary, and tagged templates - Updated
@stylistic/no-mixed-operatorswith specific operator groups configuration - Added
ts/method-signature-stylerule - Added
ts/no-wrapper-object-typesrule
- Removed
Full Changelog: 6.1.0...6.2.0