Skip to content

Commit 88aa108

Browse files
authored
Eslint 9 flat config - fix config name (#3947)
1 parent 9a3432a commit 88aa108

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.changeset/weak-rivers-hear.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-plugin-mobx": patch
3+
---
4+
5+
fix config name for recommended flat config

packages/eslint-plugin-mobx/src/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
"use strict"
22

3-
const fs = require("fs");
4-
const path = require("path");
3+
const fs = require("fs")
4+
const path = require("path")
55

66
const exhaustiveMakeObservable = require("./exhaustive-make-observable.js")
77
const unconditionalMakeObservable = require("./unconditional-make-observable.js")
88
const missingMakeObservable = require("./missing-make-observable.js")
99
const missingObserver = require("./missing-observer")
1010
const noAnonymousObserver = require("./no-anonymous-observer.js")
1111

12-
const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, "..", "package.json"), "utf8"));
12+
const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, "..", "package.json"), "utf8"))
1313

1414
const pluginMobx = {
1515
meta: {
@@ -23,7 +23,7 @@ const pluginMobx = {
2323
"missing-observer": missingObserver,
2424
"no-anonymous-observer": noAnonymousObserver
2525
}
26-
};
26+
}
2727

2828
const recommendedRules = {
2929
"mobx/exhaustive-make-observable": "warn",
@@ -37,13 +37,13 @@ module.exports = {
3737
configs: {
3838
recommended: {
3939
plugins: ["mobx"],
40-
rules: recommendedRules,
40+
rules: recommendedRules
4141
}
4242
},
4343
flatConfigs: {
4444
recommended: {
45-
name: "react-hooks/recommended",
46-
plugins: { "mobx": pluginMobx },
45+
name: "mobx/recommended",
46+
plugins: { mobx: pluginMobx },
4747
rules: recommendedRules
4848
}
4949
}

0 commit comments

Comments
 (0)