$ npm install eslint-config-xoESLint shareable config for XO with support for JavaScript and TypeScript
This is for advanced users. You probably want to use XO directly.
Use the XO issue tracker instead of this one.
npm install --save-dev eslint-config-xo
// eslint.config.js
import eslintConfigXo from 'eslint-config-xo';
export default [
...eslintConfigXo(),
];
Type: boolean
Default: false
Use browser globals instead of Node.js globals.
export default [
...eslintConfigXo({browser: true}),
];
Type: boolean | number
Default: false
Use spaces for indentation instead of tabs. Set to true for 2 spaces, or a number for a custom count.
export default [
...eslintConfigXo({space: true}),
];
Type: boolean
Default: true
Use semicolons at the end of statements. Set to false to enforce no semicolons.
export default [
...eslintConfigXo({semicolon: false}),
];
eslint-plugin-unicorneslint-plugin-import-xeslint-plugin-neslint-plugin-ava@eslint-community/eslint-plugin-eslint-comments@stylistic/eslint-plugintypescript-eslintXO is an ESLint wrapper with great defaults.
Here are some reason why you should use the XO CLI instead of this config:
$ npm init xo.--open flag)tl;dr You miss out on a lot by just using this config.