eslint-config-xo-nextjs
v8.1.0
Published
ESLint shareable config for Next.js to be used with eslint-config-xo
Maintainers
Readme
eslint-config-xo-nextjs
ESLint shareable config for Next.js to be used with xo.
CI
Install
$ pnpm add -D eslint-config-xo-nextjsExample usage with XO
Create a xo.config.js file in your project root with the following content:
import xoNextjs from "eslint-config-xo-nextjs";
/** @type {import('xo').FlatXoConfig} */
export default [
...xoNextjs(),
{
// …
},
];Or in typescript:
import xoNextjs from "eslint-config-xo-nextjs";
export default [
...xoNextjs(),
{
// …
},
] satisfies import("xo").FlatXoConfig;Pass {space: true} (or a number) for space indentation instead of tabs on JSX props:
import xoNextjs from "eslint-config-xo-nextjs";
export default [
...xoNextjs({space: true}),
{
space: 2,
// …
},
] satisfies import("xo").FlatXoConfig;Related
- XO
- eslint-config-xo-react - ESLint shareable config for React to be used with eslint-config-xo
- @next/eslint-plugin-next - ESLint plugin for Next.js
License
MIT © Bertrand Marron
Miscellaneous
╚⊙ ⊙╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝