eslint-plugin-gb 9.2.0-beta.1 → 9.2.0-beta.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.
- package/configs/recommended.js +1 -3
- package/index.d.ts +15 -0
- package/index.js +0 -2
- package/lib/member-order.js +1 -1
- package/package.json +2 -1
package/configs/recommended.js
CHANGED
package/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Linter } from "eslint";
|
|
2
|
+
|
|
3
|
+
declare const gb: {
|
|
4
|
+
readonly meta: {
|
|
5
|
+
readonly name: string;
|
|
6
|
+
readonly version: string;
|
|
7
|
+
readonly namespace: string;
|
|
8
|
+
};
|
|
9
|
+
readonly configs: {
|
|
10
|
+
readonly recommended: { readonly rules: Readonly<Linter.RulesRecord> };
|
|
11
|
+
readonly all: { readonly rules: Readonly<Linter.RulesRecord> };
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export = gb;
|
package/index.js
CHANGED
|
@@ -2,13 +2,11 @@
|
|
|
2
2
|
import { readFileSync } from "fs";
|
|
3
3
|
import { base } from "./configs/base.js";
|
|
4
4
|
import { recommended } from "./configs/recommended.js";
|
|
5
|
-
import { ESLint } from "eslint";
|
|
6
5
|
|
|
7
6
|
const pkg = JSON.parse(
|
|
8
7
|
readFileSync(new URL("./package.json", import.meta.url), "utf8"),
|
|
9
8
|
);
|
|
10
9
|
|
|
11
|
-
/** @type {ESLint.Plugin} */
|
|
12
10
|
const plugin = {
|
|
13
11
|
meta: {
|
|
14
12
|
name: pkg.name,
|
package/lib/member-order.js
CHANGED