@isentinel/eslint-config 5.0.0 → 5.0.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.
package/dist/index.d.mts CHANGED
@@ -17995,6 +17995,18 @@ interface OptionsJest {
17995
17995
  * @default ["**\/*.{test,spec}.{ts,tsx,js,jsx}"]
17996
17996
  */
17997
17997
  files?: Array<Array<string> | string>;
17998
+ /**
17999
+ * Glob patterns for test files that the Jest rules should not apply to.
18000
+ *
18001
+ * Excludes matching files from the Jest config only (not globally).
18002
+ */
18003
+ ignores?: Array<string>;
18004
+ /**
18005
+ * Rule overrides applied to the Jest config only.
18006
+ *
18007
+ * Takes precedence over the shared `test.overrides`.
18008
+ */
18009
+ overrides?: TypedFlatConfigItem["rules"];
17998
18010
  }
17999
18011
  interface OptionsVitest {
18000
18012
  /**
@@ -18011,6 +18023,18 @@ interface OptionsVitest {
18011
18023
  * @default ["**\/*.{test,spec}.{ts,tsx,js,jsx}"]
18012
18024
  */
18013
18025
  files?: Array<Array<string> | string>;
18026
+ /**
18027
+ * Glob patterns for test files that the Vitest rules should not apply to.
18028
+ *
18029
+ * Excludes matching files from the Vitest config only (not globally).
18030
+ */
18031
+ ignores?: Array<string>;
18032
+ /**
18033
+ * Rule overrides applied to the Vitest config only.
18034
+ *
18035
+ * Takes precedence over the shared `test.overrides`.
18036
+ */
18037
+ overrides?: TypedFlatConfigItem["rules"];
18014
18038
  /**
18015
18039
  * Enable typecheck rules for Vitest.
18016
18040
  *
package/dist/index.mjs CHANGED
@@ -3432,6 +3432,7 @@ async function test(options = {}) {
3432
3432
  }, {
3433
3433
  name: "isentinel/test/jest/rules",
3434
3434
  files: jestOptions.files ?? files,
3435
+ ...jestOptions.ignores ? { ignores: jestOptions.ignores } : {},
3435
3436
  rules: {
3436
3437
  "test/consistent-test-it": "error",
3437
3438
  "test/expect-expect": "warn",
@@ -3493,7 +3494,8 @@ async function test(options = {}) {
3493
3494
  "jest-extended/prefer-to-have-been-called-once": "error"
3494
3495
  } : {},
3495
3496
  ...stylistic !== false ? { "test/padding-around-all": "warn" } : {},
3496
- ...overrides
3497
+ ...overrides,
3498
+ ...jestOptions.overrides
3497
3499
  },
3498
3500
  settings: { jest: {
3499
3501
  globalPackage: "@rbxts/jest-globals",
@@ -3521,6 +3523,7 @@ async function test(options = {}) {
3521
3523
  }, {
3522
3524
  name: "isentinel/test/vitest/rules",
3523
3525
  files: vitestOptions.files ?? files,
3526
+ ...vitestOptions.ignores ? { ignores: vitestOptions.ignores } : {},
3524
3527
  rules: {
3525
3528
  "vitest/consistent-each-for": ["error", {
3526
3529
  describe: "for",
@@ -3604,7 +3607,8 @@ async function test(options = {}) {
3604
3607
  "jest-extended/prefer-to-have-been-called-once": "error"
3605
3608
  } : {},
3606
3609
  ...stylistic !== false ? { "vitest/padding-around-all": "warn" } : {},
3607
- ...overrides
3610
+ ...overrides,
3611
+ ...vitestOptions.overrides
3608
3612
  },
3609
3613
  settings: {
3610
3614
  ...useJestExtended ? { jest: { globalPackage: "vitest" } } : {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isentinel/eslint-config",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "description": "iSentinel's ESLint config",
5
5
  "keywords": [
6
6
  "eslint-config",
@@ -122,7 +122,7 @@
122
122
  "type-fest": "5.4.4",
123
123
  "typescript": "5.9.3",
124
124
  "unplugin-unused": "0.5.7",
125
- "@isentinel/eslint-config": "5.0.0"
125
+ "@isentinel/eslint-config": "5.0.1"
126
126
  },
127
127
  "peerDependencies": {
128
128
  "@vitest/eslint-plugin": "^1.6.4",