eslint-config-xo-nextjs

ESLint shareable config for Next.js to be used with eslint-config-xo

MIT 45 个版本
安装
npm install eslint-config-xo-nextjs
yarn add eslint-config-xo-nextjs
pnpm add eslint-config-xo-nextjs
bun add eslint-config-xo-nextjs
README

eslint-config-xo-nextjs

npm version XO code style

ESLint shareable config for Next.js to be used with xo.

CI

Tests Release

Install

$ pnpm add -D eslint-config-xo-nextjs

Example 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;

License

MIT © Bertrand Marron

Miscellaneous

    ╚⊙ ⊙╝
  ╚═(███)═╝
 ╚═(███)═╝
╚═(███)═╝
 ╚═(███)═╝
  ╚═(███)═╝
   ╚═(███)═╝
版本列表
8.1.0 2026-05-11
8.0.2 2026-03-04
8.0.1 2026-02-26
8.0.0 2026-01-13
7.1.1 2026-01-13
7.1.0 2026-01-13
7.0.0 2026-01-12
6.3.0 2024-11-13
6.2.1 2024-10-23
6.2.0 2024-10-23
6.1.2 2024-09-24
6.1.1 2024-09-02
6.1.0 2024-06-10
6.0.0 2024-02-08
5.3.0 2023-10-31
5.2.0 2023-10-16
5.1.2 2023-08-05
5.1.1 2023-07-19
5.1.0 2023-05-19
5.0.1 2023-03-06
5.0.0 2023-01-24
4.2.2 2022-10-09
4.2.1 2022-08-13
4.2.0 2022-06-20
4.1.0 2022-02-03
4.0.3 2022-01-07
4.0.2 2021-09-08
4.0.1 2021-09-08
4.0.0 2021-09-08
3.2.0 2021-06-16
3.1.0 2021-05-21
3.0.2 2021-04-14
3.0.1 2021-04-05
3.0.0 2021-03-31
2.0.2 2021-02-22
2.0.1 2021-02-22
2.0.0 2021-02-22
1.6.0 2020-03-18
1.5.0 2019-10-16
1.4.0 2019-03-07
1.3.0 2018-03-26
1.2.0 2018-01-17
1.1.1 2017-12-26
1.1.0 2017-12-26
1.0.0 2017-12-19