Breaking
- The package now exports a function instead of an array. Update your
eslint.config.js:
-export default eslintConfigXo;
+export default [...eslintConfigXo()];- Removed the
./spaceand./browsersub-path exports. Use thespaceandbrowseroptions instead:
export default [...eslintConfigXo({space: true, browser: true})];- Requires ESLint 10 and Node.js 20.19+.
Improvements
- Merged
eslint-config-xo-typescript: TypeScript rules are now included. No need to install a separate package. - Merged plugin configs from XO: Includes
eslint-plugin-unicorn,eslint-plugin-import-x,eslint-plugin-n,eslint-plugin-ava,@eslint-community/eslint-plugin-eslint-comments, and a built-inno-use-extend-nativerule. Previously these were only available through the XO CLI. - Added
semicolonoption - Added TypeScript declaration file
- Add
no-shadowrule 4cec7d2