linted 23.0.0 → 23.1.0-rc.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,11 +1,23 @@
1
1
  import { expect } from "chai";
2
- import core from "./index.js";
3
- describe("Core", function () {
2
+ import linted from "./index.js";
3
+ import { ignores } from "@eslinted/defaults";
4
+ const configs = linted(), numScopes = Object.keys(ignores).length - 1;
5
+ describe("Linted", function () {
4
6
  describe("shape", function () {
5
7
  it("is function", function () {
6
- expect(core)
8
+ expect(linted)
7
9
  .a("function");
8
10
  });
9
11
  });
12
+ describe("output", function () {
13
+ it("is array", function () {
14
+ expect(configs)
15
+ .an("array");
16
+ });
17
+ it(`has length >= settings + plugins + * + ${numScopes} scopes) = ${3 + numScopes} [Actual: ${configs.length}]`, function () {
18
+ expect(configs)
19
+ .has.lengthOf.at.least(3 + numScopes);
20
+ });
21
+ });
10
22
  });
11
23
  //# sourceMappingURL=index.spec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../src/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,IAAI,MAAM,IAAI,CAAC;AAEtB,QAAQ,CAAC,MAAM,EAAE;IACf,QAAQ,CAAC,OAAO,EAAE;QAChB,EAAE,CAAC,aAAa,EAAE;YAChB,MAAM,CAAC,IAAI,CAAC;iBACT,CAAC,CAAC,UAAU,CAAC,CAAC;QACnB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../src/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,MAAM,MAAM,GAAG,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,MAAM,OAAO,GAAG,MAAM,EAAE,EACxB,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;AAE5C,QAAQ,CAAC,QAAQ,EAAE;IACjB,QAAQ,CAAC,OAAO,EAAE;QAChB,EAAE,CAAC,aAAa,EAAE;YAChB,MAAM,CAAC,MAAM,CAAC;iBACX,CAAC,CAAC,UAAU,CAAC,CAAC;QACnB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,QAAQ,EAAE;QACjB,EAAE,CAAC,UAAU,EAAE;YACb,MAAM,CAAC,OAAO,CAAC;iBACZ,EAAE,CAAC,OAAO,CAAC,CAAC;QACjB,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,0CAA0C,SAAS,cAAc,CAAC,GAAG,SAAS,cAAc,OAAO,CAAC,MAAM,GAAG,EAAE;YAChH,MAAM,CAAC,OAAO,CAAC;iBACZ,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC;QAC1C,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "_schemaVersion": "22.11.0",
3
3
  "name": "linted",
4
- "version": "23.0.0",
4
+ "version": "23.1.0-rc.1",
5
5
  "description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
6
6
  "keywords": [
7
7
  "eslint",
@@ -62,8 +62,8 @@
62
62
  }
63
63
  },
64
64
  "dependencies": {
65
- "@eslinted/core": "13.4.1",
66
- "@eslinted/defaults": "3.0.1",
65
+ "@eslinted/core": "13.4.2-rc.0",
66
+ "@eslinted/defaults": "3.2.0",
67
67
  "@html-eslint/eslint-plugin": "0.27.0",
68
68
  "@html-eslint/parser": "0.27.0",
69
69
  "@stylistic/eslint-plugin": "2.10.1",
package/src/index.spec.ts CHANGED
@@ -1,11 +1,25 @@
1
1
  import { expect } from "chai";
2
- import core from "./";
2
+ import linted from ".";
3
+ import { ignores } from "@eslinted/defaults";
3
4
 
4
- describe("Core", function () {
5
+ const configs = linted(),
6
+ numScopes = Object.keys(ignores).length - 1;
7
+
8
+ describe("Linted", function () {
5
9
  describe("shape", function () {
6
10
  it("is function", function () {
7
- expect(core)
11
+ expect(linted)
8
12
  .a("function");
9
13
  });
10
14
  });
15
+ describe("output", function () {
16
+ it("is array", function () {
17
+ expect(configs)
18
+ .an("array");
19
+ });
20
+ it(`has length >= settings + plugins + * + ${numScopes} scopes) = ${3 + numScopes} [Actual: ${configs.length}]`, function () {
21
+ expect(configs)
22
+ .has.lengthOf.at.least(3 + numScopes);
23
+ });
24
+ });
11
25
  });