Skip to content

Commit eca5b6a

Browse files
🤖 Merge PR DefinitelyTyped#73093 [eslint-plugin-mobx] Add types for eslint-plugin-mobx by @MysteryBlokHed
1 parent 2cceb77 commit eca5b6a

File tree

5 files changed

+63
-0
lines changed

5 files changed

+63
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*
2+
!**/*.d.ts
3+
!**/*.d.cts
4+
!**/*.d.mts
5+
!**/*.d.*.ts
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import pluginMobx = require("eslint-plugin-mobx");
2+
pluginMobx.configs.recommended; // $ExpectType Config<RulesRecord>
3+
pluginMobx.flatConfigs.recommended; // $ExpectType Config<RulesRecord>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import type { Linter, Rule } from "eslint";
2+
3+
export const meta: { name: string; version: string };
4+
export const rules: {
5+
"exhaustive-make-observable": Rule.RuleModule;
6+
"unconditional-make-observable": Rule.RuleModule;
7+
"missing-make-observable": Rule.RuleModule;
8+
"missing-observer": Rule.RuleModule;
9+
"no-anonymous-observer": Rule.RuleModule;
10+
};
11+
12+
export const configs: {
13+
recommended: Linter.Config;
14+
};
15+
16+
export const flatConfigs: {
17+
recommended: Linter.Config;
18+
};
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"private": true,
3+
"name": "@types/eslint-plugin-mobx",
4+
"version": "0.0.9999",
5+
"projects": [
6+
"https://mobx.js.org/"
7+
],
8+
"dependencies": {
9+
"eslint": "^9.0.0"
10+
},
11+
"devDependencies": {
12+
"@types/eslint-plugin-mobx": "workspace:."
13+
},
14+
"owners": [
15+
{
16+
"name": "Adam Thompson-Sharpe",
17+
"githubUsername": "MysteryBlokHed"
18+
}
19+
]
20+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"compilerOptions": {
3+
"module": "node16",
4+
"lib": ["es6"],
5+
"noImplicitAny": true,
6+
"noImplicitThis": true,
7+
"strictFunctionTypes": true,
8+
"strictNullChecks": true,
9+
"types": [],
10+
"noEmit": true,
11+
"forceConsistentCasingInFileNames": true
12+
},
13+
"files": [
14+
"index.d.ts",
15+
"eslint-plugin-mobx-tests.ts"
16+
]
17+
}

0 commit comments

Comments
 (0)