eslint-config-xo-nextjs
v8.0.2
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;Use the space sub-config if you want 2 space indentation instead of tabs:
import xoNextJsSpace from "eslint-config-xo-nextjs/space";
export default [
...xoNextJsSpace,
{
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
╚⊙ ⊙╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝