@eslinted/defaults 17.4.5 → 17.5.0-rc.1

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.
Files changed (38) hide show
  1. package/dist/files/index.d.ts +0 -1
  2. package/dist/files/index.d.ts.map +1 -1
  3. package/dist/files/index.js +0 -5
  4. package/dist/files/index.js.map +1 -1
  5. package/dist/index.d.ts +0 -39
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/rules/index.d.ts +0 -38
  8. package/dist/rules/index.d.ts.map +1 -1
  9. package/dist/rules/index.js +0 -2
  10. package/dist/rules/index.js.map +1 -1
  11. package/dist/tests/index.scopes.spec.d.ts +1 -1
  12. package/dist/tests/index.scopes.spec.d.ts.map +1 -1
  13. package/dist/tests/index.scopes.spec.js +0 -1
  14. package/dist/tests/index.scopes.spec.js.map +1 -1
  15. package/package.json +1 -1
  16. package/src/files/index.ts +0 -5
  17. package/src/rules/index.ts +0 -2
  18. package/tests/index.scopes.spec.ts +0 -1
  19. package/dist/rules/mocha/chai/expect.d.ts +0 -10
  20. package/dist/rules/mocha/chai/expect.d.ts.map +0 -1
  21. package/dist/rules/mocha/chai/expect.js +0 -8
  22. package/dist/rules/mocha/chai/expect.js.map +0 -1
  23. package/dist/rules/mocha/chai/index.d.ts +0 -15
  24. package/dist/rules/mocha/chai/index.d.ts.map +0 -1
  25. package/dist/rules/mocha/chai/index.js +0 -13
  26. package/dist/rules/mocha/chai/index.js.map +0 -1
  27. package/dist/rules/mocha/index.d.ts +0 -40
  28. package/dist/rules/mocha/index.d.ts.map +0 -1
  29. package/dist/rules/mocha/index.js +0 -9
  30. package/dist/rules/mocha/index.js.map +0 -1
  31. package/dist/rules/mocha/mocha.d.ts +0 -24
  32. package/dist/rules/mocha/mocha.d.ts.map +0 -1
  33. package/dist/rules/mocha/mocha.js +0 -22
  34. package/dist/rules/mocha/mocha.js.map +0 -1
  35. package/src/rules/mocha/chai/expect.ts +0 -11
  36. package/src/rules/mocha/chai/index.ts +0 -15
  37. package/src/rules/mocha/index.ts +0 -9
  38. package/src/rules/mocha/mocha.ts +0 -32
@@ -1,7 +1,6 @@
1
1
  declare const _default: {
2
2
  js: string[];
3
3
  ts: string[];
4
- mocha: string[];
5
4
  svelte: string[];
6
5
  html: string[];
7
6
  css: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/files/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,wBAsCE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/files/index.ts"],"names":[],"mappings":";;;;;;;;;;;AAGA,wBAiCE"}
@@ -7,11 +7,6 @@ export default {
7
7
  "cts",
8
8
  "mts",
9
9
  ]),
10
- mocha: pattern([
11
- "spec.ts",
12
- "spec.cts",
13
- "spec.mts",
14
- ]),
15
10
  svelte: pattern("svelte"),
16
11
  html: pattern("html"),
17
12
  css: pattern("css"),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/files/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,MAAM,QAAQ,CAAC;AAExB,eAAe;IACb,EAAE;IACF,EAAE,EAAE,OAAO,CAAC;QACV,IAAI;QACJ,KAAK;QACL,KAAK;KACN,CAAC;IACF,KAAK,EAAE,OAAO,CAAC;QACb,SAAS;QACT,UAAU;QACV,UAAU;KACX,CAAC;IACF,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC;IACzB,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC;IACrB,GAAG,EAAE,OAAO,CAAC,KAAK,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC;IACrB,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,OAAO,CACb,CAAC,OAAO,EAAE,eAAe,CAAC,EAC1B;QACE,KAAK,EAAE,CAAC,eAAe,EAAE,iBAAiB,CAAC;QAC3C,OAAO,EAAE,CAAC,SAAS,CAAC;QACpB,KAAK,EAAE,CAAC,mBAAmB,CAAC;KAC7B,CACF;IACD,GAAG,EAAE,OAAO,CACV;QACE,KAAK;QACL,MAAM;QACN,aAAa;QACb,cAAc;QACd,aAAa;QACb,cAAc;KACf,EACD;QACE,OAAO,EAAE,CAAC,SAAS,CAAC;KACrB,CACF;CACF,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/files/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,MAAM,QAAQ,CAAC;AAExB,eAAe;IACb,EAAE;IACF,EAAE,EAAE,OAAO,CAAC;QACV,IAAI;QACJ,KAAK;QACL,KAAK;KACN,CAAC;IACF,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC;IACzB,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC;IACrB,GAAG,EAAE,OAAO,CAAC,KAAK,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC;IACrB,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,OAAO,CACb,CAAC,OAAO,EAAE,eAAe,CAAC,EAC1B;QACE,KAAK,EAAE,CAAC,eAAe,EAAE,iBAAiB,CAAC;QAC3C,OAAO,EAAE,CAAC,SAAS,CAAC;QACpB,KAAK,EAAE,CAAC,mBAAmB,CAAC;KAC7B,CACF;IACD,GAAG,EAAE,OAAO,CACV;QACE,KAAK;QACL,MAAM;QACN,aAAa;QACb,cAAc;QACd,aAAa;QACb,cAAc;KACf,EACD;QACE,OAAO,EAAE,CAAC,SAAS,CAAC;KACrB,CACF;CACF,CAAC"}
package/dist/index.d.ts CHANGED
@@ -2,7 +2,6 @@ declare const _default: {
2
2
  files: {
3
3
  js: string[];
4
4
  ts: string[];
5
- mocha: string[];
6
5
  svelte: string[];
7
6
  html: string[];
8
7
  css: string[];
@@ -824,44 +823,6 @@ declare const _default: {
824
823
  readonly "ts/require-await": import("./rules/state.js").State.ON;
825
824
  };
826
825
  })[];
827
- mocha: ({
828
- rules: {
829
- readonly "mocha/handle-done-callback": import("./rules/state.js").State.ON;
830
- readonly "mocha/max-top-level-suites": import("./rules/state.js").State.ON;
831
- readonly "mocha/no-async-suite": import("./rules/state.js").State.ON;
832
- readonly "mocha/no-empty-title": import("./rules/state.js").State.ON;
833
- readonly "mocha/no-exclusive-tests": import("./rules/state.js").State.ON;
834
- readonly "mocha/no-exports": import("./rules/state.js").State.ON;
835
- readonly "mocha/no-global-tests": import("./rules/state.js").State.ON;
836
- readonly "mocha/no-identical-title": import("./rules/state.js").State.ON;
837
- readonly "mocha/no-mocha-arrows": import("./rules/state.js").State.ON;
838
- readonly "mocha/no-nested-tests": import("./rules/state.js").State.ON;
839
- readonly "mocha/no-pending-tests": import("./rules/state.js").State.ON;
840
- readonly "mocha/no-return-and-callback": import("./rules/state.js").State.ON;
841
- readonly "mocha/no-return-from-async": import("./rules/state.js").State.ON;
842
- readonly "mocha/no-sibling-hooks": import("./rules/state.js").State.ON;
843
- readonly "mocha/no-top-level-hooks": import("./rules/state.js").State.ON;
844
- readonly "prefer-arrow-callback": import("./rules/state.js").State.OFF;
845
- readonly "mocha/prefer-arrow-callback": import("./rules/state.js").State.ON;
846
- };
847
- } | {
848
- rules: {
849
- readonly "no-unused-expressions": import("./rules/state.js").State.OFF;
850
- readonly "chai/no-unused-expressions": readonly [
851
- import("./rules/state.js").State.ON,
852
- {
853
- readonly allowShortCircuit: true;
854
- readonly allowTernary: true;
855
- }
856
- ];
857
- };
858
- } | {
859
- rules: {
860
- readonly "chai-expect/no-inner-compare": import("./rules/state.js").State.ON;
861
- readonly "chai-expect/no-inner-literal": import("./rules/state.js").State.ON;
862
- readonly "chai-expect/missing-assertion": import("./rules/state.js").State.ON;
863
- };
864
- })[];
865
826
  svelte: ({
866
827
  rules: {
867
828
  readonly "no-inner-declarations": import("./rules/state.js").State.OFF;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAIE"}
@@ -806,44 +806,6 @@ declare const _default: {
806
806
  readonly "ts/require-await": import("./state.js").State.ON;
807
807
  };
808
808
  })[];
809
- mocha: ({
810
- rules: {
811
- readonly "mocha/handle-done-callback": import("./state.js").State.ON;
812
- readonly "mocha/max-top-level-suites": import("./state.js").State.ON;
813
- readonly "mocha/no-async-suite": import("./state.js").State.ON;
814
- readonly "mocha/no-empty-title": import("./state.js").State.ON;
815
- readonly "mocha/no-exclusive-tests": import("./state.js").State.ON;
816
- readonly "mocha/no-exports": import("./state.js").State.ON;
817
- readonly "mocha/no-global-tests": import("./state.js").State.ON;
818
- readonly "mocha/no-identical-title": import("./state.js").State.ON;
819
- readonly "mocha/no-mocha-arrows": import("./state.js").State.ON;
820
- readonly "mocha/no-nested-tests": import("./state.js").State.ON;
821
- readonly "mocha/no-pending-tests": import("./state.js").State.ON;
822
- readonly "mocha/no-return-and-callback": import("./state.js").State.ON;
823
- readonly "mocha/no-return-from-async": import("./state.js").State.ON;
824
- readonly "mocha/no-sibling-hooks": import("./state.js").State.ON;
825
- readonly "mocha/no-top-level-hooks": import("./state.js").State.ON;
826
- readonly "prefer-arrow-callback": import("./state.js").State.OFF;
827
- readonly "mocha/prefer-arrow-callback": import("./state.js").State.ON;
828
- };
829
- } | {
830
- rules: {
831
- readonly "no-unused-expressions": import("./state.js").State.OFF;
832
- readonly "chai/no-unused-expressions": readonly [
833
- import("./state.js").State.ON,
834
- {
835
- readonly allowShortCircuit: true;
836
- readonly allowTernary: true;
837
- }
838
- ];
839
- };
840
- } | {
841
- rules: {
842
- readonly "chai-expect/no-inner-compare": import("./state.js").State.ON;
843
- readonly "chai-expect/no-inner-literal": import("./state.js").State.ON;
844
- readonly "chai-expect/missing-assertion": import("./state.js").State.ON;
845
- };
846
- })[];
847
809
  svelte: ({
848
810
  rules: {
849
811
  readonly "no-inner-declarations": import("./state.js").State.OFF;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,wBAUE"}
@@ -1,6 +1,5 @@
1
1
  import js from "./js.js";
2
2
  import ts from "./ts/index.js";
3
- import mocha from "./mocha/index.js";
4
3
  import svelte from "./svelte/index.js";
5
4
  import html from "./html/index.js";
6
5
  import css from "./css/index.js";
@@ -11,7 +10,6 @@ import yml from "./yml/index.js";
11
10
  export default {
12
11
  js,
13
12
  ts,
14
- mocha,
15
13
  svelte,
16
14
  html,
17
15
  css,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,GAAG,MAAM,OAAO,CAAC;AAExB,eAAe;IACb,EAAE;IACF,EAAE;IACF,KAAK;IACL,MAAM;IACN,IAAI;IACJ,GAAG;IACH,IAAI;IACJ,KAAK;IACL,MAAM;IACN,GAAG;CACJ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,GAAG,MAAM,OAAO,CAAC;AAExB,eAAe;IACb,EAAE;IACF,EAAE;IACF,MAAM;IACN,IAAI;IACJ,GAAG;IACH,IAAI;IACJ,KAAK;IACL,MAAM;IACN,GAAG;CACJ,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const scopes: readonly ["js", "ts", "mocha", "svelte", "html", "css", "json", "jsonc", "jsoncc", "yml"];
1
+ export declare const scopes: readonly ["js", "ts", "svelte", "html", "css", "json", "jsonc", "jsoncc", "yml"];
2
2
  //# sourceMappingURL=index.scopes.spec.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.scopes.spec.d.ts","sourceRoot":"","sources":["../../tests/index.scopes.spec.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,2FAWT,CAAC"}
1
+ {"version":3,"file":"index.scopes.spec.d.ts","sourceRoot":"","sources":["../../tests/index.scopes.spec.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,kFAUT,CAAC"}
@@ -1,7 +1,6 @@
1
1
  export const scopes = [
2
2
  "js",
3
3
  "ts",
4
- "mocha",
5
4
  "svelte",
6
5
  "html",
7
6
  "css",
@@ -1 +1 @@
1
- {"version":3,"file":"index.scopes.spec.js","sourceRoot":"","sources":["../../tests/index.scopes.spec.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,QAAQ;IACR,MAAM;IACN,KAAK;IACL,MAAM;IACN,OAAO;IACP,QAAQ;IACR,KAAK;CACG,CAAC"}
1
+ {"version":3,"file":"index.scopes.spec.js","sourceRoot":"","sources":["../../tests/index.scopes.spec.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI;IACJ,IAAI;IACJ,QAAQ;IACR,MAAM;IACN,KAAK;IACL,MAAM;IACN,OAAO;IACP,QAAQ;IACR,KAAK;CACG,CAAC"}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "$schema": "https://json.schemastore.org/package",
4
4
  "$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
5
5
  "name": "@eslinted/defaults",
6
- "version": "17.4.5",
6
+ "version": "17.5.0-rc.1",
7
7
  "repository": "github:jimmy-zhening-luo/linted-defaults",
8
8
  "description": "Default scopes for `linted`",
9
9
  "keywords": [],
@@ -8,11 +8,6 @@ export default {
8
8
  "cts",
9
9
  "mts",
10
10
  ]),
11
- mocha: pattern([
12
- "spec.ts",
13
- "spec.cts",
14
- "spec.mts",
15
- ]),
16
11
  svelte: pattern("svelte"),
17
12
  html: pattern("html"),
18
13
  css: pattern("css"),
@@ -1,6 +1,5 @@
1
1
  import js from "./js";
2
2
  import ts from "./ts";
3
- import mocha from "./mocha";
4
3
  import svelte from "./svelte";
5
4
  import html from "./html";
6
5
  import css from "./css";
@@ -12,7 +11,6 @@ import yml from "./yml";
12
11
  export default {
13
12
  js,
14
13
  ts,
15
- mocha,
16
14
  svelte,
17
15
  html,
18
16
  css,
@@ -1,7 +1,6 @@
1
1
  export const scopes = [
2
2
  "js",
3
3
  "ts",
4
- "mocha",
5
4
  "svelte",
6
5
  "html",
7
6
  "css",
@@ -1,10 +0,0 @@
1
- import { State } from "../../state.js";
2
- declare const _default: {
3
- rules: {
4
- readonly "chai-expect/no-inner-compare": State.ON;
5
- readonly "chai-expect/no-inner-literal": State.ON;
6
- readonly "chai-expect/missing-assertion": State.ON;
7
- };
8
- };
9
- export default _default;
10
- //# sourceMappingURL=expect.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"expect.d.ts","sourceRoot":"","sources":["../../../../src/rules/mocha/chai/expect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;;;;;;;;AAGpC,wBAOE"}
@@ -1,8 +0,0 @@
1
- export default {
2
- rules: {
3
- "chai-expect/no-inner-compare": 2,
4
- "chai-expect/no-inner-literal": 2,
5
- "chai-expect/missing-assertion": 2,
6
- },
7
- };
8
- //# sourceMappingURL=expect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"expect.js","sourceRoot":"","sources":["../../../../src/rules/mocha/chai/expect.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QACL,8BAA8B,GAAU;QACxC,8BAA8B,GAAU;QACxC,+BAA+B,GAAU;KAEjC;CACX,CAAC"}
@@ -1,15 +0,0 @@
1
- import { State } from "../../state.js";
2
- declare const _default: {
3
- rules: {
4
- readonly "no-unused-expressions": State.OFF;
5
- readonly "chai/no-unused-expressions": readonly [
6
- State.ON,
7
- {
8
- readonly allowShortCircuit: true;
9
- readonly allowTernary: true;
10
- }
11
- ];
12
- };
13
- };
14
- export default _default;
15
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rules/mocha/chai/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;;;;;;;;;;AAGpC,wBAWE"}
@@ -1,13 +0,0 @@
1
- export default {
2
- rules: {
3
- "no-unused-expressions": 0,
4
- "chai/no-unused-expressions": [
5
- 2,
6
- {
7
- allowShortCircuit: true,
8
- allowTernary: true,
9
- },
10
- ],
11
- },
12
- };
13
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rules/mocha/chai/index.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QACW,uBAAuB,GAAW;QAClD,4BAA4B,EAAE;;YAE5B;gBACE,iBAAiB,EAAE,IAAI;gBACvB,YAAY,EAAE,IAAI;aACnB;SACF;KACO;CACX,CAAC"}
@@ -1,40 +0,0 @@
1
- declare const _default: ({
2
- rules: {
3
- readonly "mocha/handle-done-callback": import("../state.js").State.ON;
4
- readonly "mocha/max-top-level-suites": import("../state.js").State.ON;
5
- readonly "mocha/no-async-suite": import("../state.js").State.ON;
6
- readonly "mocha/no-empty-title": import("../state.js").State.ON;
7
- readonly "mocha/no-exclusive-tests": import("../state.js").State.ON;
8
- readonly "mocha/no-exports": import("../state.js").State.ON;
9
- readonly "mocha/no-global-tests": import("../state.js").State.ON;
10
- readonly "mocha/no-identical-title": import("../state.js").State.ON;
11
- readonly "mocha/no-mocha-arrows": import("../state.js").State.ON;
12
- readonly "mocha/no-nested-tests": import("../state.js").State.ON;
13
- readonly "mocha/no-pending-tests": import("../state.js").State.ON;
14
- readonly "mocha/no-return-and-callback": import("../state.js").State.ON;
15
- readonly "mocha/no-return-from-async": import("../state.js").State.ON;
16
- readonly "mocha/no-sibling-hooks": import("../state.js").State.ON;
17
- readonly "mocha/no-top-level-hooks": import("../state.js").State.ON;
18
- readonly "prefer-arrow-callback": import("../state.js").State.OFF;
19
- readonly "mocha/prefer-arrow-callback": import("../state.js").State.ON;
20
- };
21
- } | {
22
- rules: {
23
- readonly "no-unused-expressions": import("../state.js").State.OFF;
24
- readonly "chai/no-unused-expressions": readonly [
25
- import("../state.js").State.ON,
26
- {
27
- readonly allowShortCircuit: true;
28
- readonly allowTernary: true;
29
- }
30
- ];
31
- };
32
- } | {
33
- rules: {
34
- readonly "chai-expect/no-inner-compare": import("../state.js").State.ON;
35
- readonly "chai-expect/no-inner-literal": import("../state.js").State.ON;
36
- readonly "chai-expect/missing-assertion": import("../state.js").State.ON;
37
- };
38
- })[];
39
- export default _default;
40
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/mocha/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAIE"}
@@ -1,9 +0,0 @@
1
- import mocha from "./mocha.js";
2
- import chai from "./chai/index.js";
3
- import chaiExpect from "./chai/expect.js";
4
- export default [
5
- mocha,
6
- chai,
7
- chaiExpect,
8
- ];
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/mocha/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,UAAU,MAAM,eAAe,CAAC;AAEvC,eAAe;IACb,KAAK;IACL,IAAI;IACJ,UAAU;CACX,CAAC"}
@@ -1,24 +0,0 @@
1
- import { State } from "../state.js";
2
- declare const _default: {
3
- rules: {
4
- readonly "mocha/handle-done-callback": State.ON;
5
- readonly "mocha/max-top-level-suites": State.ON;
6
- readonly "mocha/no-async-suite": State.ON;
7
- readonly "mocha/no-empty-title": State.ON;
8
- readonly "mocha/no-exclusive-tests": State.ON;
9
- readonly "mocha/no-exports": State.ON;
10
- readonly "mocha/no-global-tests": State.ON;
11
- readonly "mocha/no-identical-title": State.ON;
12
- readonly "mocha/no-mocha-arrows": State.ON;
13
- readonly "mocha/no-nested-tests": State.ON;
14
- readonly "mocha/no-pending-tests": State.ON;
15
- readonly "mocha/no-return-and-callback": State.ON;
16
- readonly "mocha/no-return-from-async": State.ON;
17
- readonly "mocha/no-sibling-hooks": State.ON;
18
- readonly "mocha/no-top-level-hooks": State.ON;
19
- readonly "prefer-arrow-callback": State.OFF;
20
- readonly "mocha/prefer-arrow-callback": State.ON;
21
- };
22
- };
23
- export default _default;
24
- //# sourceMappingURL=mocha.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mocha.d.ts","sourceRoot":"","sources":["../../../src/rules/mocha/mocha.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;AAGjC,wBA4BE"}
@@ -1,22 +0,0 @@
1
- export default {
2
- rules: {
3
- "mocha/handle-done-callback": 2,
4
- "mocha/max-top-level-suites": 2,
5
- "mocha/no-async-suite": 2,
6
- "mocha/no-empty-title": 2,
7
- "mocha/no-exclusive-tests": 2,
8
- "mocha/no-exports": 2,
9
- "mocha/no-global-tests": 2,
10
- "mocha/no-identical-title": 2,
11
- "mocha/no-mocha-arrows": 2,
12
- "mocha/no-nested-tests": 2,
13
- "mocha/no-pending-tests": 2,
14
- "mocha/no-return-and-callback": 2,
15
- "mocha/no-return-from-async": 2,
16
- "mocha/no-sibling-hooks": 2,
17
- "mocha/no-top-level-hooks": 2,
18
- "prefer-arrow-callback": 0,
19
- "mocha/prefer-arrow-callback": 2,
20
- },
21
- };
22
- //# sourceMappingURL=mocha.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mocha.js","sourceRoot":"","sources":["../../../src/rules/mocha/mocha.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QAGL,4BAA4B,GAAU;QACtC,4BAA4B,GAAU;QACtC,sBAAsB,GAAU;QAChC,sBAAsB,GAAU;QAChC,0BAA0B,GAAU;QACpC,kBAAkB,GAAU;QAC5B,uBAAuB,GAAU;QAGjC,0BAA0B,GAAU;QACpC,uBAAuB,GAAU;QACjC,uBAAuB,GAAU;QACjC,wBAAwB,GAAU;QAClC,8BAA8B,GAAU;QACxC,4BAA4B,GAAU;QAEtC,wBAAwB,GAAU;QAElC,0BAA0B,GAAU;QACpB,uBAAuB,GAAW;QAClD,6BAA6B,GAAU;KAG/B;CACX,CAAC"}
@@ -1,11 +0,0 @@
1
- import { State } from "../../state";
2
-
3
- // DOC: https://github.com/turbo87/eslint-plugin-chai-expect?tab=readme-ov-file#rules
4
- export default {
5
- rules: {
6
- "chai-expect/no-inner-compare": State.ON,
7
- "chai-expect/no-inner-literal": State.ON,
8
- "chai-expect/missing-assertion": State.ON,
9
- // "chai-expect/terminating-properties": State.OFF,
10
- } as const,
11
- };
@@ -1,15 +0,0 @@
1
- import { State } from "../../state";
2
-
3
- // DOC: https://github.com/ihordiachenko/eslint-plugin-chai-friendly?tab=readme-ov-file#usage
4
- export default {
5
- rules: {
6
- /* @OVERRIDE */ "no-unused-expressions": State.OFF /* INFO: looks like these guys got the hint too ;) https://github.com/ihordiachenko/eslint-plugin-chai-friendly/releases/tag/v1.1.0 */,
7
- "chai/no-unused-expressions": [
8
- State.ON,
9
- {
10
- allowShortCircuit: true,
11
- allowTernary: true,
12
- },
13
- ],
14
- } as const,
15
- };
@@ -1,9 +0,0 @@
1
- import mocha from "./mocha";
2
- import chai from "./chai";
3
- import chaiExpect from "./chai/expect";
4
-
5
- export default [
6
- mocha,
7
- chai,
8
- chaiExpect,
9
- ];
@@ -1,32 +0,0 @@
1
- import { State } from "../state";
2
-
3
- // DOC: https://github.com/lo1tuma/eslint-plugin-mocha/tree/main?tab=readme-ov-file#rules
4
- export default {
5
- rules: {
6
- // "mocha/consistent-interface": State.OFF /* unable, must choose BDD or TDD first */,
7
- // "mocha/consistent-spacing-between-blocks": State.OFF,
8
- "mocha/handle-done-callback": State.ON,
9
- "mocha/max-top-level-suites": State.ON,
10
- "mocha/no-async-suite": State.ON,
11
- "mocha/no-empty-title": State.ON,
12
- "mocha/no-exclusive-tests": State.ON,
13
- "mocha/no-exports": State.ON,
14
- "mocha/no-global-tests": State.ON,
15
- // "mocha/no-hooks-for-single-case": State.OFF,
16
- // "mocha/no-hooks": State.OFF,
17
- "mocha/no-identical-title": State.ON,
18
- "mocha/no-mocha-arrows": State.ON,
19
- "mocha/no-nested-tests": State.ON,
20
- "mocha/no-pending-tests": State.ON,
21
- "mocha/no-return-and-callback": State.ON,
22
- "mocha/no-return-from-async": State.ON,
23
- // "mocha/no-setup-in-describe": State.OFF /* pointless and arbitrary */,
24
- "mocha/no-sibling-hooks": State.ON,
25
- // "mocha/no-synchronous-tests": State.OFF,
26
- "mocha/no-top-level-hooks": State.ON,
27
- /* @OVERRIDE */ "prefer-arrow-callback": State.OFF /* TS-capable */,
28
- "mocha/prefer-arrow-callback": State.ON /* MUST match ../js/enable.ts, which is TS-capable -- is this?? */,
29
- // "mocha/valid-suite-title": State.OFF /* preference */,
30
- // "mocha/valid-test-title": State.OFF /* preference */,
31
- } as const,
32
- };