linted 23.1.1 → 23.2.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import type { Input } from "@eslinted/core";
2
- export default function (extensions?: Input["extensions"]): readonly [import("@eslinted/core/dist/interface/output/common").CommonSettings, import("@eslinted/core/dist/interface/output/common").CommonPlugins<import("@eslinted/core").Plugins>, import("@eslinted/core/dist/interface/output/common").CommonIgnores, ...(import("@eslinted/core/dist/interface/output/scope").ScopeSettings<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml"> | import("@eslinted/core/dist/interface/output/scope").ScopeRules<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml">)[]];
1
+ import { type Input } from "@eslinted/core";
2
+ export default function (extensions?: Input["extensions"]): readonly [import("@eslinted/core/dist/interface/output/common").CommonPlugins<import("@eslinted/core").Plugins>, import("@eslinted/core/dist/interface/output/common").CommonSettings, import("@eslinted/core/dist/interface/output/common").CommonIgnores, ...(import("@eslinted/core/dist/interface/output/scope").ScopeSettings<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml"> | import("@eslinted/core/dist/interface/output/scope").ScopeRules<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml">)[]];
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAM5C,MAAM,CAAC,OAAO,WAAW,UAAU,GAAE,KAAK,CAAC,YAAY,CAAM,whBAW5D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAa,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAKlD,MAAM,CAAC,OAAO,WAAW,UAAU,GAAE,KAAK,CAAC,YAAY,CAAM,whBAW5D"}
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import Core from "@eslinted/core";
1
+ import Core, {} from "@eslinted/core";
2
+ import * as defaults from "@eslinted/defaults";
2
3
  import plugins from "./plugins.js";
3
4
  import parsers from "./parsers.js";
4
- import * as defaults from "@eslinted/defaults";
5
5
  export default function (extensions = {}) {
6
6
  try {
7
7
  return Core({
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAC;AAE/C,MAAM,CAAC,OAAO,WAAW,aAAkC,EAAE;IAC3D,IAAI,CAAC;QACH,OAAO,IAAI,CAAC;YACV,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;YAC7B,QAAQ;YACR,UAAU;SACX,CAAC,CAAC;IACL,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IAC9C,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAc,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAC;AAC/C,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,MAAM,CAAC,OAAO,WAAW,aAAkC,EAAE;IAC3D,IAAI,CAAC;QACH,OAAO,IAAI,CAAC;YACV,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;YAC7B,QAAQ;YACR,UAAU;SACX,CAAC,CAAC;IACL,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IAC9C,CAAC;AACH,CAAC"}
@@ -1,22 +1,18 @@
1
1
  import { expect } from "chai";
2
2
  import linted from "./index.js";
3
- import { ignores } from "@eslinted/defaults";
4
- const configs = linted(), numScopes = Object.keys(ignores).length - 1;
3
+ const configs = linted();
5
4
  describe("Linted", function () {
6
5
  describe("shape", function () {
7
- it("is function", function () {
6
+ it("is a function", function () {
8
7
  expect(linted)
9
8
  .a("function");
10
9
  });
11
10
  });
12
11
  describe("output", function () {
13
- it("is array", function () {
12
+ it("is a non-empty array", function () {
14
13
  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);
14
+ .an("array")
15
+ .not.empty;
20
16
  });
21
17
  });
22
18
  });
@@ -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,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"}
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;AAEvB,MAAM,OAAO,GAAG,MAAM,EAAE,CAAC;AAEzB,QAAQ,CAAC,QAAQ,EAAE;IACjB,QAAQ,CAAC,OAAO,EAAE;QAChB,EAAE,CAAC,eAAe,EAAE;YAClB,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,sBAAsB,EAAE;YACzB,MAAM,CAAC,OAAO,CAAC;iBACZ,EAAE,CAAC,OAAO,CAAC;iBACX,GAAG,CAAC,KAAK,CAAC;QACf,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/dist/plugins.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import mocha from "eslint-plugin-mocha";
2
+ import chai_friendly from "eslint-plugin-chai-friendly";
2
3
  declare const _default: {
3
4
  readonly "@stylistic": {
4
5
  rules: import("@stylistic/eslint-plugin").Rules;
@@ -28,6 +29,7 @@ declare const _default: {
28
29
  };
29
30
  };
30
31
  readonly mocha: typeof mocha;
32
+ readonly "chai-friendly": typeof chai_friendly;
31
33
  readonly "@html-eslint": {
32
34
  configs: {
33
35
  recommended: typeof import("@html-eslint/eslint-plugin/types/configs/recommended");
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../src/plugins.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,qBAAqB,CAAC;;;;;;mCAOgB;QAAE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAOs5nB,CAAC;+BAA4C,CAAC;qBAAkC,CAAC;;;;;;;;;;;uBAA+X,CAAC;;;;;;qBAAmN,CAAC;+BAA4C,CAAC;qBAAkC,CAAC;;;;;;;;;;;uBAA+X,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAu3D,CAAC;+BAA4C,CAAC;qBAAkC,CAAC;;;;;;;;;;;uBAA+X,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAkxD,CAAC;+BAA4C,CAAC;qBAAkC,CAAC;;;;;;;;;;;uBAA+X,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAwyC,CAAC;+BAA4C,CAAC;qBAAkC,CAAC;;;;;;;;;;;uBAA+X,CAAC;;;;;;;;;;;;;;;;;;;;;;;qBAA89B,CAAC;+BAA4C,CAAC;qBAAkC,CAAC;;;;;;;;;;;uBAA+X,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAwyC,CAAC;+BAA4C,CAAC;qBAAkC,CAAC;;;;;;;;;;;uBAA+X,CAAC;;;;;;;;;;;;;;;;;;;;;;;qBAA89B,CAAC;+BAA4C,CAAC;qBAAkC,CAAC;;;;;;;;;;;uBAA+X,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAp40B,CAAC;+BAAwC,CAAC;qBAA8B,CAAC;;;;;;;;;;;uBAA8V,CAAC;;;;;;qBAA+K,CAAC;+BAAwC,CAAC;qBAA8B,CAAC;;;;;;;;;;;uBAA8V,CAAC;;;;;;;;;;;;;;;;qBAAolB,CAAC;+BAAwC,CAAC;qBAA8B,CAAC;;;;;;;;;;;uBAA8V,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAA0wC,CAAC;+BAAwC,CAAC;qBAA8B,CAAC;;;;;;;;;;;uBAA8V,CAAC;;;;;;;;;;;;;;;;;;;;;;;AAVjgM,wBASW"}
package/dist/plugins.js CHANGED
@@ -2,6 +2,7 @@ import stylistic from "@stylistic/eslint-plugin";
2
2
  import typescript_eslint from "@typescript-eslint/eslint-plugin";
3
3
  import svelte from "eslint-plugin-svelte";
4
4
  import mocha from "eslint-plugin-mocha";
5
+ import chai_friendly from "eslint-plugin-chai-friendly";
5
6
  import html_eslint from "@html-eslint/eslint-plugin";
6
7
  import jsonc from "eslint-plugin-jsonc";
7
8
  import yml from "eslint-plugin-yml";
@@ -10,6 +11,7 @@ export default {
10
11
  "@typescript-eslint": typescript_eslint,
11
12
  svelte,
12
13
  mocha,
14
+ "chai-friendly": chai_friendly,
13
15
  "@html-eslint": html_eslint,
14
16
  jsonc,
15
17
  yml,
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.js","sourceRoot":"","sources":["../src/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AACjE,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,GAAG,MAAM,mBAAmB,CAAC;AAEpC,eAAe;IACb,YAAY,EAAE,SAAS;IACvB,oBAAoB,EAAE,iBAA6D;IACnF,MAAM;IACN,KAAK;IACL,cAAc,EAAE,WAAW;IAC3B,KAAK;IACL,GAAG;CACK,CAAC"}
1
+ {"version":3,"file":"plugins.js","sourceRoot":"","sources":["../src/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AACjE,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,aAAa,MAAM,6BAA6B,CAAC;AACxD,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,GAAG,MAAM,mBAAmB,CAAC;AAEpC,eAAe;IACb,YAAY,EAAE,SAAS;IACvB,oBAAoB,EAAE,iBAA6D;IACnF,MAAM;IACN,KAAK;IACL,eAAe,EAAE,aAAa;IAC9B,cAAc,EAAE,WAAW;IAC3B,KAAK;IACL,GAAG;CACK,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "_schemaVersion": "22.11.0",
3
3
  "name": "linted",
4
- "version": "23.1.1",
4
+ "version": "23.2.0",
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,14 +62,15 @@
62
62
  }
63
63
  },
64
64
  "dependencies": {
65
- "@eslinted/core": "13.5.0",
66
- "@eslinted/defaults": "3.4.0",
65
+ "@eslinted/core": "14.0.0",
66
+ "@eslinted/defaults": "4.1.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",
70
70
  "@typescript-eslint/eslint-plugin": "8.14.0",
71
71
  "@typescript-eslint/parser": "8.14.0",
72
- "eslint-plugin-jsonc": "2.18.1",
72
+ "eslint-plugin-chai-friendly": "1.0.1",
73
+ "eslint-plugin-jsonc": "2.18.2",
73
74
  "eslint-plugin-mocha": "10.5.0",
74
75
  "eslint-plugin-svelte": "2.46.0",
75
76
  "eslint-plugin-yml": "1.15.0",
package/src/index.spec.ts CHANGED
@@ -1,25 +1,20 @@
1
1
  import { expect } from "chai";
2
2
  import linted from ".";
3
- import { ignores } from "@eslinted/defaults";
4
3
 
5
- const configs = linted(),
6
- numScopes = Object.keys(ignores).length - 1;
4
+ const configs = linted();
7
5
 
8
6
  describe("Linted", function () {
9
7
  describe("shape", function () {
10
- it("is function", function () {
8
+ it("is a function", function () {
11
9
  expect(linted)
12
10
  .a("function");
13
11
  });
14
12
  });
15
13
  describe("output", function () {
16
- it("is array", function () {
14
+ it("is a non-empty array", function () {
17
15
  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);
16
+ .an("array")
17
+ .not.empty;
23
18
  });
24
19
  });
25
20
  });
package/src/index.ts CHANGED
@@ -1,8 +1,7 @@
1
- import type { Input } from "@eslinted/core";
2
- import Core from "@eslinted/core";
1
+ import Core, { type Input } from "@eslinted/core";
2
+ import * as defaults from "@eslinted/defaults";
3
3
  import plugins from "./plugins";
4
4
  import parsers from "./parsers";
5
- import * as defaults from "@eslinted/defaults";
6
5
 
7
6
  export default function (extensions: Input["extensions"] = {}) {
8
7
  try {
package/src/plugins.ts CHANGED
@@ -2,6 +2,7 @@ import stylistic from "@stylistic/eslint-plugin";
2
2
  import typescript_eslint from "@typescript-eslint/eslint-plugin";
3
3
  import svelte from "eslint-plugin-svelte";
4
4
  import mocha from "eslint-plugin-mocha";
5
+ import chai_friendly from "eslint-plugin-chai-friendly";
5
6
  import html_eslint from "@html-eslint/eslint-plugin";
6
7
  import jsonc from "eslint-plugin-jsonc";
7
8
  import yml from "eslint-plugin-yml";
@@ -11,6 +12,7 @@ export default {
11
12
  "@typescript-eslint": typescript_eslint as unknown as { readonly configs: unknown },
12
13
  svelte,
13
14
  mocha,
15
+ "chai-friendly": chai_friendly,
14
16
  "@html-eslint": html_eslint,
15
17
  jsonc,
16
18
  yml,
@@ -0,0 +1,3 @@
1
+ declare module "eslint-plugin-chai-friendly" {
2
+ export const configs: unknown;
3
+ }