@tommy-mitchell/eslint-config-xo

0.7.0 • Public • Published

@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
Other Package Managers

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 (Optional) - Pluggable and configurable code formatting platform written in Rust.
  • react (Optional) - The library for web and native user interfaces.
  • tailwindcss (Optional) - A utility-first CSS framework for rapid UI development.

Usage

Add to the extends section of your XO config:

"extends": ["@tommy-mitchell/xo"],

dprint

"extends": ["@tommy-mitchell/xo", "@tommy-mitchell/xo/dprint"],

React

"extends": ["@tommy-mitchell/xo", "@tommy-mitchell/xo/react"],

React + dprint

"extends": ["@tommy-mitchell/xo", "@tommy-mitchell/xo/react", "@tommy-mitchell/xo/dprint"],

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

/@tommy-mitchell/eslint-config-xo/

    Package Sidebar

    Install

    npm i @tommy-mitchell/eslint-config-xo

    Weekly Downloads

    5

    Version

    0.7.0

    License

    MIT

    Unpacked Size

    8.36 kB

    Total Files

    7

    Last publish

    Collaborators

    • tommy-mitchell