@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.
- package/dist/rules/index.d.ts +5 -0
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/mocha/disable-ts.d.ts.map +1 -1
- package/dist/rules/mocha/disable-ts.js.map +1 -1
- package/dist/rules/mocha/enable-chai-expect.d.ts +7 -0
- package/dist/rules/mocha/enable-chai-expect.d.ts.map +1 -0
- package/dist/rules/mocha/enable-chai-expect.js +11 -0
- package/dist/rules/mocha/enable-chai-expect.js.map +1 -0
- package/dist/rules/mocha/enable-chai.d.ts.map +1 -1
- package/dist/rules/mocha/enable-chai.js.map +1 -1
- package/dist/rules/mocha/index.d.ts +5 -0
- package/dist/rules/mocha/index.d.ts.map +1 -1
- package/dist/rules/mocha/index.js +2 -0
- package/dist/rules/mocha/index.js.map +1 -1
- package/package.json +1 -1
- package/src/rules/mocha/disable-ts.ts +1 -0
- package/src/rules/mocha/enable-chai-expect.ts +16 -0
- package/src/rules/mocha/enable-chai.ts +2 -0
- package/src/rules/mocha/index.ts +2 -0
package/dist/rules/index.d.ts
CHANGED
|
@@ -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/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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;;;
|
|
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;
|
|
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;;;;;;;
|
|
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;
|
|
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":"
|
|
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;
|
|
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
|
@@ -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;
|
package/src/rules/mocha/index.ts
CHANGED
|
@@ -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
|
];
|