eslint-plugin-gb 9.1.0-1 → 9.1.0-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/index.js +1 -2
- package/package.json +1 -1
- package/test.js +8 -1
package/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
const fs = require("fs");
|
|
2
1
|
const flatBase = require("./configs/flat/base.js");
|
|
3
2
|
const flatRecommended = require("./configs/flat/recommended.js");
|
|
4
3
|
|
|
5
|
-
const pkg =
|
|
4
|
+
const pkg = require("./package.json");
|
|
6
5
|
|
|
7
6
|
const plugin = {
|
|
8
7
|
meta: {
|
package/package.json
CHANGED
package/test.js
CHANGED
|
@@ -8,11 +8,18 @@ describe("plugin", () => {
|
|
|
8
8
|
]);
|
|
9
9
|
});
|
|
10
10
|
|
|
11
|
-
it("has correct
|
|
11
|
+
it("has correct config name", () => {
|
|
12
12
|
const rec = plugin.configs["flat/recommended"];
|
|
13
13
|
expect(rec[0]).toEqual({
|
|
14
14
|
name: "gb/recommended/rules",
|
|
15
15
|
rules: expect.any(Object),
|
|
16
16
|
});
|
|
17
17
|
});
|
|
18
|
+
|
|
19
|
+
it("has correct plugin meta", () => {
|
|
20
|
+
expect(plugin.meta).toEqual({
|
|
21
|
+
name: "eslint-plugin-gb",
|
|
22
|
+
version: expect.any(String),
|
|
23
|
+
});
|
|
24
|
+
});
|
|
18
25
|
});
|