v1.0.0
Breaking Changes
- Use ESLint Flat config, users need to migrate to the new config style as well
@antfu/eslint-config-*
are packages all dropped, as@antfu/eslint-config
provides much better composability now.@antfu/eslint-config-react
is removed, but JSX formatting support is enabled by default now.ESLINT_TSCONFIG
no longer works, use thetypescript
option ineslint.config.js
instead- Requires ESLint v8
- Rename plugin prefixes
@typescript-eslint/*
->ts/
n/*
->node/*
- etc.
Generated changelog:
🚨 Breaking Changes
- Use flat config - by @antfu in #250 (3ad62)
- New config factory instead of presets - by @antfu (9ee68)
- Rename plugin prefixes for consistency - by @antfu (f31a8)
- De-monorepo - by @antfu (5c3ce)
- Use unified stylistic rules - by @antfu (0ce3a)
- Make all configs function for consistency and immutability - by @antfu (11e31)
- Rename
typescriptWithLanguageServer
totypescriptWithTypes
- by @antfu (ffe00) - Set plugin alias of
yml/
toyaml/
- by @antfu (917dd) - Fix type aware rules, merge
typescriptWithTypes
totypescript
- by @antfu (3fae7)
🚀 Features
- Ship types, and a
combine
util - by @antfu (000a2) - Make it side-effects free - by @antfu (70fc8)
- Enable
antfu/consistent-object-newline
- by @antfu (e3b3a) - Support passing flat config to the first arg - by @antfu (ce925)
- Support reading
.gitignore
by default, close #254 - by @antfu in #254 (2f35d) - Expose globs - by @antfu (05073)
- Support rules override, close #255 - by @antfu in #255 (39353)
- Granular stylistic control - by @antfu (30c87)
- Add
componentExts
to top level config - by @antfu (2080b) - Add
eslint-plugin-vitest
- by @antfu (002bb) - Use ts parser even for JS, for better language compatibility - by @antfu (e0757)
- Add
name
for each config item - by @antfu (d4cfe) - Update stylistic plugins - by @antfu (9326e)
- Re-organize tsconfig sort - by @antfu (1261b)
- Add
style/jsx-quotes
rule - by @antfu (5291c) - Ban declarations in ts file - by @so1ve in #264 (a76fd)
- Allow customize indent and quotes - by @antfu (bbac1)
- Type support for rules - by @antfu (44745)
- Add types for
antfu/
- by @antfu (64e3f) - Bring back
reportUnusedDisableDirectives
- by @antfu (6320c) - Enable basic jsx stylistic rules, close #185 - by @antfu in #185 (2dfb5)
- Enable
no-import-type-side-effects
, close #227 - by @antfu in #227 (cb4b7) - Update jsx default config - by @promise96319 and @antfu in #281 (987b9)
- Add optional
sort-keys
plugin - by @antfu (f8ae1) - Typescript.tsconfigPath array support - by @rost-git and @antfu in #306 (54652)
🐞 Bug Fixes
- Move stylistic files - by @antfu (7070d)
- Stylistic overrides - by @antfu (60746)
- Disable
ts/no-invalid-void-type
- by @antfu (db397) - Improve rules - by @antfu (9ffcf)
- Ship cjs build as well - by @antfu (f0b67)
- Disable
comma-dangle
in markdown - by @antfu (34bbd) - Install plugins globally for easy overrides - by @antfu (6a72b)
- Remove
jsdoc/no-types
rule - by @antfu (91dee) - Disable type aware rules in markdown - by @antfu (edb7f)
- Update
style/quotes
- by @antfu (5f554) - Allow
Function
type forts/ban-types
- by @antfu (6a4cf) - Disable few rules - by @antfu (4da0b)
- Disable
jsdoc/valid-types
- by @antfu (d1024) - Ignores - by @antfu (ae3e6)
- Add lockfile glob for bun - by @rubiin in #262 (7efac)
- Yaml indent - by @so1ve in #267 (757bb)
- Disable
no-restricted-syntax
in d.ts - by @antfu (d98a8) - Enforce name casing for unregistered components - by @vaibhav11s in #289 (ba704)
- Improve typescript options type - by @antfu (8b5cb)
- Add default
extraFileExtensions
to type aware rules - by @antfu (0a9bc) - Prop names should always use camelCase during declaration. - by @kaivanwong in #293 (1c322)
- Use "source.fixAll.eslint" to avoid builtin autofixes dropping code - by @Dimava in #299 (33554)
- Remove
no-void
rule, close #298 - by @antfu in #298 (90b36) - Revert #289 - by @qin-guan in #302 and #289 (52b4f)
- jsonc: Indent config - by @antfu (45e30)
- jsx: Turn off
style/jsx-child-element-spacing
to avoid conflicts - by @antfu (f4a07) - style/quotes: Disable
avoidEscape
for consistency - by @antfu (47657) - unicorn: Rename
prefer-text-content
-> `prefer-dom-node-text-c… - by @coderwyd in #271 (87282)