@eslinted/defaults 4.2.0 → 4.3.0

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.
@@ -1318,6 +1318,11 @@ export declare const rules: {
1318
1318
  readonly allowTaggedTemplates: true;
1319
1319
  readonly enforceForJSX: false;
1320
1320
  }];
1321
+ }] | readonly ["enable/chai/expect", {
1322
+ readonly "chai-expect/no-inner-compare": "error";
1323
+ readonly "chai-expect/no-inner-literal": "error";
1324
+ readonly "chai-expect/missing-assertion": "error";
1325
+ readonly "chai-expect/terminating-properties": "off";
1321
1326
  }])[];
1322
1327
  readonly html: (readonly ["enable", {
1323
1328
  readonly "@html-eslint/no-duplicate-attrs": "error";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASR,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"disable-ts.d.ts","sourceRoot":"","sources":["../../../src/rules/mocha/disable-ts.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,cAAc;;;EAMjB,CAAC"}
1
+ {"version":3,"file":"disable-ts.d.ts","sourceRoot":"","sources":["../../../src/rules/mocha/disable-ts.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,cAAc;;;EAOjB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"disable-ts.js","sourceRoot":"","sources":["../../../src/rules/mocha/disable-ts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,GAAG,GACJ,MAAM,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,EAAE,CAAC,SAAS;IACZ;QACE,uBAAuB,EAAE,GAAG;QAC5B,0CAA0C,EAAE,GAAG;KACvC;CACF,CAAC"}
1
+ {"version":3,"file":"disable-ts.js","sourceRoot":"","sources":["../../../src/rules/mocha/disable-ts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,GAAG,GACJ,MAAM,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,EAAE,CAAC,SAAS;IACZ;QAEE,uBAAuB,EAAE,GAAG;QAC5B,0CAA0C,EAAE,GAAG;KACvC;CACF,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const MochaEnableChaiExpect: readonly ["enable/chai/expect", {
2
+ readonly "chai-expect/no-inner-compare": "error";
3
+ readonly "chai-expect/no-inner-literal": "error";
4
+ readonly "chai-expect/missing-assertion": "error";
5
+ readonly "chai-expect/terminating-properties": "off";
6
+ }];
7
+ //# sourceMappingURL=enable-chai-expect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enable-chai-expect.d.ts","sourceRoot":"","sources":["../../../src/rules/mocha/enable-chai-expect.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,qBAAqB;;;;;EASxB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { ID, ERROR, OFF, } from "../../_strings/index.js";
2
+ export const MochaEnableChaiExpect = [
3
+ `${ID.Enable}/chai/expect`,
4
+ {
5
+ "chai-expect/no-inner-compare": ERROR,
6
+ "chai-expect/no-inner-literal": ERROR,
7
+ "chai-expect/missing-assertion": ERROR,
8
+ "chai-expect/terminating-properties": OFF,
9
+ },
10
+ ];
11
+ //# sourceMappingURL=enable-chai-expect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enable-chai-expect.js","sourceRoot":"","sources":["../../../src/rules/mocha/enable-chai-expect.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,KAAK,EACL,GAAG,GACJ,MAAM,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,GAAG,EAAE,CAAC,MAAM,cAAc;IAC1B;QAEE,8BAA8B,EAAE,KAAK;QACrC,8BAA8B,EAAE,KAAK;QACrC,+BAA+B,EAAE,KAAK;QACtC,oCAAoC,EAAE,GAAG;KACjC;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"enable-chai.d.ts","sourceRoot":"","sources":["../../../src/rules/mocha/enable-chai.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe;;;;;;;EAalB,CAAC"}
1
+ {"version":3,"file":"enable-chai.d.ts","sourceRoot":"","sources":["../../../src/rules/mocha/enable-chai.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe;;;;;;;EAelB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"enable-chai.js","sourceRoot":"","sources":["../../../src/rules/mocha/enable-chai.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,KAAK,GACN,MAAM,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,GAAG,EAAE,CAAC,MAAM,OAAO;IACnB;QACE,qCAAqC,EAAE;YACrC,KAAK;YACL;gBACE,iBAAiB,EAAE,IAAI;gBACvB,YAAY,EAAE,IAAI;gBAClB,oBAAoB,EAAE,IAAI;gBAC1B,aAAa,EAAE,KAAK;aACrB;SACF;KACO;CACF,CAAC"}
1
+ {"version":3,"file":"enable-chai.js","sourceRoot":"","sources":["../../../src/rules/mocha/enable-chai.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,KAAK,GACN,MAAM,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,GAAG,EAAE,CAAC,MAAM,OAAO;IACnB;QAGE,qCAAqC,EAAE;YACrC,KAAK;YACL;gBACE,iBAAiB,EAAE,IAAI;gBACvB,YAAY,EAAE,IAAI;gBAClB,oBAAoB,EAAE,IAAI;gBAC1B,aAAa,EAAE,KAAK;aACrB;SACF;KACO;CACF,CAAC"}
@@ -42,6 +42,11 @@ declare const _default: (readonly ["disable", {
42
42
  readonly allowTaggedTemplates: true;
43
43
  readonly enforceForJSX: false;
44
44
  }];
45
+ }] | readonly ["enable/chai/expect", {
46
+ readonly "chai-expect/no-inner-compare": "error";
47
+ readonly "chai-expect/no-inner-literal": "error";
48
+ readonly "chai-expect/missing-assertion": "error";
49
+ readonly "chai-expect/terminating-properties": "off";
45
50
  }])[];
46
51
  export default _default;
47
52
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/mocha/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,wBAKE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/mocha/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAME"}
@@ -2,10 +2,12 @@ import { MochaDisable } from "./disable.js";
2
2
  import { MochaDisableTs } from "./disable-ts.js";
3
3
  import { MochaEnable } from "./enable.js";
4
4
  import { MochaEnableChai } from "./enable-chai.js";
5
+ import { MochaEnableChaiExpect } from "./enable-chai-expect.js";
5
6
  export default [
6
7
  MochaDisable,
7
8
  MochaDisableTs,
8
9
  MochaEnable,
9
10
  MochaEnableChai,
11
+ MochaEnableChaiExpect,
10
12
  ];
11
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/mocha/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,eAAe;IACb,YAAY;IACZ,cAAc;IACd,WAAW;IACX,eAAe;CAChB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/mocha/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,eAAe;IACb,YAAY;IACZ,cAAc;IACd,WAAW;IACX,eAAe;IACf,qBAAqB;CACtB,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "_schemaVersion": "22.11.0",
3
3
  "name": "@eslinted/defaults",
4
- "version": "4.2.0",
4
+ "version": "4.3.0",
5
5
  "description": "Default scopes for `linted`.",
6
6
  "keywords": [],
7
7
  "repository": "github:jimmy-zhening-luo/linted-defaults",
@@ -6,6 +6,7 @@ import {
6
6
  export const MochaDisableTs = [
7
7
  ID.DisableTs,
8
8
  {
9
+ // DOC: https://github.com/ihordiachenko/eslint-plugin-chai-friendly?tab=readme-ov-file#usage
9
10
  "no-unused-expressions": OFF,
10
11
  "@typescript-eslint/no-unused-expressions": OFF,
11
12
  } as const,
@@ -0,0 +1,16 @@
1
+ import {
2
+ ID,
3
+ ERROR,
4
+ OFF,
5
+ } from "../../_strings";
6
+
7
+ export const MochaEnableChaiExpect = [
8
+ `${ID.Enable}/chai/expect`,
9
+ {
10
+ // DOC: https://github.com/turbo87/eslint-plugin-chai-expect?tab=readme-ov-file#rules
11
+ "chai-expect/no-inner-compare": ERROR,
12
+ "chai-expect/no-inner-literal": ERROR,
13
+ "chai-expect/missing-assertion": ERROR,
14
+ "chai-expect/terminating-properties": OFF,
15
+ } as const,
16
+ ] as const;
@@ -6,6 +6,8 @@ import {
6
6
  export const MochaEnableChai = [
7
7
  `${ID.Enable}/chai`,
8
8
  {
9
+
10
+ // DOC: https://github.com/ihordiachenko/eslint-plugin-chai-friendly?tab=readme-ov-file#usage
9
11
  "chai-friendly/no-unused-expressions": [
10
12
  ERROR,
11
13
  {
@@ -2,10 +2,12 @@ import { MochaDisable } from "./disable";
2
2
  import { MochaDisableTs } from "./disable-ts";
3
3
  import { MochaEnable } from "./enable";
4
4
  import { MochaEnableChai } from "./enable-chai";
5
+ import { MochaEnableChaiExpect } from "./enable-chai-expect";
5
6
 
6
7
  export default [
7
8
  MochaDisable,
8
9
  MochaDisableTs,
9
10
  MochaEnable,
10
11
  MochaEnableChai,
12
+ MochaEnableChaiExpect,
11
13
  ];