eslint-config-xo-next 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/readme.md +13 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-xo-next",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "ESLint shareable config for Next.js to be used with eslint-config-xo-react",
5
5
  "license": "MIT",
6
6
  "repository": "github:patrik-csak/eslint-config-xo-next",
package/readme.md CHANGED
@@ -4,9 +4,13 @@ ESLint [shareable config](http://eslint.org/docs/developer-guide/shareable-confi
4
4
 
5
5
  ## Features
6
6
 
7
- - Eliminates ESLint plugin and parser conflicts from using ESLint 10 with `eslint-config-next` and `eslint-config-xo-react`
8
- - Combines Next.js's [`@next/next`](https://nextjs.org/docs/app/api-reference/config/eslint#rules) rules with `eslint-config-xo-react`'s stricter [`eslint-plugin-jsx-a11y-x`](https://github.com/es-tooling/eslint-plugin-jsx-a11y-x), [`@eslint-react/eslint-plugin`](https://github.com/Rel1cx/eslint-react), and [`eslint-plugin-react-hooks`](https://github.com/react/react/tree/HEAD/packages/eslint-plugin-react-hooks) rules
9
- - Supports Tailwind CSS syntax
7
+ - Eliminates plugin and parser conflicts between ESLint 10, `eslint-config-next`, and `eslint-config-xo-react`
8
+ - Allows you to combine [Next.js's rules](https://nextjs.org/docs/app/api-reference/config/eslint#rules) with XO's stricter React, accessibility, and hooks rules
9
+ - Allows you to use XO's maintained ESLint plugins instead of Next.js's unmaintained plugins[^1]
10
+ - Acts as a thin compatibility layer instead of depending on and wrapping Next.js or XO packages
11
+ - Your app's `@next/eslint-plugin-next` version can be kept in sync with `next` and other `@next/*` packages using `next upgrade` or `@next/codemod upgrade`
12
+ - You can update `eslint-config-xo` and `eslint-config-xo-react` without waiting for this config to update
13
+ - Supports Tailwind CSS
10
14
 
11
15
  ## Install
12
16
 
@@ -80,12 +84,14 @@ npm install --save-dev \
80
84
 
81
85
  ```js
82
86
  // xo.config.js
83
- import xoNext from 'eslint-config-xo-next';
84
- import xoReact from 'eslint-config-xo-react';
87
+ import eslintConfigXoNext from 'eslint-config-xo-next';
88
+ import eslintConfigXoReact from 'eslint-config-xo-react';
85
89
  import {defineConfig} from 'eslint/config';
86
90
 
87
91
  const xoConfig = defineConfig([
88
- ...xoReact(),
89
- ...xoNext(),
92
+ ...eslintConfigXoReact(),
93
+ ...eslintConfigXoNext(),
90
94
  ]);
91
95
  ```
96
+
97
+ [^1]: `eslint-config-next` depends on `eslint-plugin-react` and `eslint-plugin-jsx-a11y`, which are unmaintained and incompatible with ESLint 10. `eslint-config-xo-react` uses `@eslint-react/eslint-plugin` and `eslint-plugin-jsx-a11y-x`.