@cjser/eslint-config-xo-react
v0.31.0-cjser.2
Published
ESLint shareable config for React to be used with eslint-config-xo
Maintainers
Readme
eslint-config-xo-react
ESLint shareable config for React to be used with eslint-config-xo
Install
npm install --save-dev eslint-config-xo eslint-config-xo-reactUsage
Add some ESLint config to your eslint.config.js:
import eslintConfigXo from 'eslint-config-xo';
import eslintConfigXoReact from 'eslint-config-xo-react';
import {defineConfig} from 'eslint/config';
export default defineConfig([
...eslintConfigXo(),
...eslintConfigXoReact(),
]);Options
space
Type: boolean | number
Default: false
Use spaces for indentation instead of tabs for JSX props. Set to true for 2 spaces, or a number for a custom count.
export default defineConfig([
...eslintConfigXo({space: true}),
...eslintConfigXoReact({space: true}),
]);Related
- eslint-config-xo - ESLint shareable config for XO
- XO
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/xojs/eslint-config-xo-react
