@tommy-mitchell/eslint-config-xo
v0.3.1
Published
Personal config for XO.
Downloads
42
Readme
@tommy-mitchell/eslint-config-xo
Personal config for XO
. Recommended to be used with my dprint
config.
Install
npm install --save-dev @tommy-mitchell/eslint-config-xo xo @tommy-mitchell/dprint-config dprint
yarn add --dev @tommy-mitchell/eslint-config-xo xo @tommy-mitchell/dprint-config dprint
Peer Dependencies
- xo - JavaScript/TypeScript linter (ESLint wrapper) with great defaults.
- dprint - Pluggable and configurable code formatting platform written in Rust.
Usage
Add to the extends
section of your XO
config:
"extends": ["@tommy-mitchell/xo"],
React
"extends": ["@tommy-mitchell/xo", "@tommy-mitchell/xo/react"],
Tailwind CSS
"extends": ["@tommy-mitchell/xo", "@tommy-mitchell/xo/tailwind"],
VS Code
Add the following to your settings.json
:
"xo.enable": true,
"xo.format.enable": true,
"xo.overrideSeverity": "warn",
Related
- XO (VS Code Extension) - Linter for XO.