@isentinel/eslint-config 6.0.0-beta.21 → 6.0.0-beta.22

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/index.mjs CHANGED
@@ -3338,6 +3338,7 @@ async function pnpm(options) {
3338
3338
  trustPolicy: "no-downgrade",
3339
3339
  trustPolicyIgnoreAfter: 10080
3340
3340
  } }],
3341
+ "pnpm/yaml-no-anonymous-catalog": ["error"],
3341
3342
  "pnpm/yaml-no-duplicate-catalog-item": "error",
3342
3343
  "pnpm/yaml-no-unused-catalog-item": "error"
3343
3344
  }
@@ -4808,7 +4809,7 @@ async function stylistic(options = {}) {
4808
4809
  //#endregion
4809
4810
  //#region src/rules/test.ts
4810
4811
  /**
4811
- * Rules that make no sense in a type test (`*.test-d.ts`): these files assert
4812
+ * Rules that make no sense in a type test (`*.spec-d.ts`): these files assert
4812
4813
  * with `expectTypeOf`/`assertType` at compile time, run no expectations, and
4813
4814
  * name their blocks after the types under test.
4814
4815
  *
@@ -4817,6 +4818,13 @@ async function stylistic(options = {}) {
4817
4818
  */
4818
4819
  function typeTestRules(prefix) {
4819
4820
  return {
4821
+ ...prefix === "vitest" ? {
4822
+ "flawless/prefer-ending-with-an-expect": "off",
4823
+ "vitest/consistent-test-filename": ["error", {
4824
+ allTestPattern: ".*\\.(test|spec)-d\\.[tj]sx?$",
4825
+ pattern: ".*\\.spec-d\\.[tj]sx?$"
4826
+ }]
4827
+ } : {},
4820
4828
  [`${prefix}/expect-expect`]: "off",
4821
4829
  [`${prefix}/prefer-expect-assertions`]: "off",
4822
4830
  [`${prefix}/prefer-lowercase-title`]: "off"
@@ -4849,6 +4857,7 @@ function jestExtendedRules() {
4849
4857
  */
4850
4858
  function jestRules({ extended = false, isInEditor = false, roblox: isRoblox = true, stylistic = true } = {}) {
4851
4859
  return {
4860
+ "flawless/prefer-expect-assertions-count": "error",
4852
4861
  "jest/consistent-test-it": "error",
4853
4862
  "jest/expect-expect": "warn",
4854
4863
  "jest/max-expects": "error",
@@ -4925,6 +4934,13 @@ function jestRules({ extended = false, isInEditor = false, roblox: isRoblox = tr
4925
4934
  */
4926
4935
  function vitestRules({ extended = false, isInEditor = false, stylistic = true } = {}) {
4927
4936
  return {
4937
+ "flawless/no-conditional-in-test": ["error", { allowOptionalChaining: false }],
4938
+ "flawless/prefer-ending-with-an-expect": ["warn", { assertFunctionNames: [
4939
+ "expect",
4940
+ "expectTypeOf",
4941
+ "assertType"
4942
+ ] }],
4943
+ "flawless/prefer-expect-assertions-count": "warn",
4928
4944
  "vitest/consistent-each-for": ["error", {
4929
4945
  describe: "for",
4930
4946
  it: "for",
@@ -4944,7 +4960,6 @@ function vitestRules({ extended = false, isInEditor = false, stylistic = true }
4944
4960
  "vitest/no-alias-methods": "error",
4945
4961
  "vitest/no-commented-out-tests": "warn",
4946
4962
  "vitest/no-conditional-expect": "error",
4947
- "vitest/no-conditional-in-test": "error",
4948
4963
  "vitest/no-conditional-tests": "error",
4949
4964
  "vitest/no-disabled-tests": isInEditor ? "off" : "error",
4950
4965
  "vitest/no-duplicate-hooks": "error",
@@ -15319,11 +15334,14 @@ const oxlintRuleMapping = {
15319
15334
  "flawless/jsx-shorthand-boolean": "js-plugin",
15320
15335
  "flawless/jsx-shorthand-fragment": "js-plugin",
15321
15336
  "flawless/max-lines-per-function": "js-plugin",
15337
+ "flawless/no-conditional-in-test": "js-plugin",
15322
15338
  "flawless/no-export-default-arrow": "js-plugin",
15323
15339
  "flawless/no-unnecessary-use-callback": "js-plugin",
15324
15340
  "flawless/no-unnecessary-use-memo": "js-plugin",
15325
15341
  "flawless/padding-after-expect-assertions": "js-plugin",
15326
15342
  "flawless/prefer-destructuring-assignment": "js-plugin",
15343
+ "flawless/prefer-ending-with-an-expect": "js-plugin",
15344
+ "flawless/prefer-expect-assertions-count": "js-plugin",
15327
15345
  "flawless/prefer-parameter-destructuring": "js-plugin",
15328
15346
  "flawless/purity": "js-plugin",
15329
15347
  "react/error-boundaries": "js-plugin",
@@ -15443,7 +15461,6 @@ const oxlintRuleMapping = {
15443
15461
  "vitest/no-alias-methods": "native",
15444
15462
  "vitest/no-commented-out-tests": "native",
15445
15463
  "vitest/no-conditional-expect": "native",
15446
- "vitest/no-conditional-in-test": "native",
15447
15464
  "vitest/no-conditional-tests": "native",
15448
15465
  "vitest/no-disabled-tests": "native",
15449
15466
  "vitest/no-duplicate-hooks": "native",
package/dist/lint-cli.mjs CHANGED
@@ -36,7 +36,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
36
36
  }) : target, mod));
37
37
  //#endregion
38
38
  //#region package.json
39
- var version = "6.0.0-beta.21";
39
+ var version = "6.0.0-beta.22";
40
40
  //#endregion
41
41
  //#region src/lint-cli/lib/cli/types.ts
42
42
  /**