Skip to content

Commit 9dfeecf

Browse files
committed
remove the eslint patch
In favor of using `--resolve--resolve-plugins-relative-to` flag
1 parent 1f0436d commit 9dfeecf

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

.eslintrc.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// This is a patch so that eslint will load the plugins as dependencies. Otherwise we can to install EVERYTHING in th root project
2-
require("@rushstack/eslint-patch/modern-module-resolution");
3-
41
module.exports = {
52
parser: "@typescript-eslint/parser",
63
parserOptions: {
@@ -14,12 +11,15 @@ module.exports = {
1411
"react-hooks",
1512
"unused-imports",
1613
"import",
14+
"@next/eslint-plugin-next"
1715
],
1816
extends: [
1917
"eslint:recommended",
2018
"plugin:react/recommended",
2119
"plugin:@typescript-eslint/recommended",
2220
"prettier",
21+
"plugin:@next/next/recommended",
22+
"plugin:@next/next/core-web-vitals"
2323
],
2424
env: {
2525
es6: true,

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ module.exports = {
3434
]
3535
```
3636

37+
4. Install peer dependencies or (preferred) set `--resolve--resolve-plugins-relative-to="path/to/@squonk/eslint-config"` (may be a monorepo or the node-modules folder)
38+
3739
## Development
3840

3941
Releasing a new version:

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
"@types/node": "18.18.0",
2929
"@typescript-eslint/eslint-plugin": "6.7.4",
3030
"@typescript-eslint/parser": "6.7.4",
31-
"@rushstack/eslint-patch": "1.5.1",
3231
"eslint": "8.50.0",
3332
"eslint-config-prettier": "9.0.0",
3433
"eslint-plugin-import": "2.28.1",

pnpm-lock.yaml

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)