@isentinel/eslint-config 5.0.0 → 5.0.2
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 +24 -0
- package/dist/index.mjs +7 -2
- package/package.json +2 -2
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
|
@@ -140,6 +140,7 @@ function isInGitHooksOrLintStaged() {
|
|
|
140
140
|
return [process.env["GIT_PARAMS"] ?? process.env["VSCODE_GIT_COMMAND"] ?? process.env["npm_lifecycle_script"]?.startsWith("lint-staged")].some(Boolean);
|
|
141
141
|
}
|
|
142
142
|
function isInAgentSession() {
|
|
143
|
+
if (isInGitHooksOrLintStaged()) return false;
|
|
143
144
|
return [
|
|
144
145
|
process.env["CLAUDECODE"],
|
|
145
146
|
process.env["CLAUDE_CODE_ENTRYPOINT"],
|
|
@@ -3432,6 +3433,7 @@ async function test(options = {}) {
|
|
|
3432
3433
|
}, {
|
|
3433
3434
|
name: "isentinel/test/jest/rules",
|
|
3434
3435
|
files: jestOptions.files ?? files,
|
|
3436
|
+
...jestOptions.ignores ? { ignores: jestOptions.ignores } : {},
|
|
3435
3437
|
rules: {
|
|
3436
3438
|
"test/consistent-test-it": "error",
|
|
3437
3439
|
"test/expect-expect": "warn",
|
|
@@ -3493,7 +3495,8 @@ async function test(options = {}) {
|
|
|
3493
3495
|
"jest-extended/prefer-to-have-been-called-once": "error"
|
|
3494
3496
|
} : {},
|
|
3495
3497
|
...stylistic !== false ? { "test/padding-around-all": "warn" } : {},
|
|
3496
|
-
...overrides
|
|
3498
|
+
...overrides,
|
|
3499
|
+
...jestOptions.overrides
|
|
3497
3500
|
},
|
|
3498
3501
|
settings: { jest: {
|
|
3499
3502
|
globalPackage: "@rbxts/jest-globals",
|
|
@@ -3521,6 +3524,7 @@ async function test(options = {}) {
|
|
|
3521
3524
|
}, {
|
|
3522
3525
|
name: "isentinel/test/vitest/rules",
|
|
3523
3526
|
files: vitestOptions.files ?? files,
|
|
3527
|
+
...vitestOptions.ignores ? { ignores: vitestOptions.ignores } : {},
|
|
3524
3528
|
rules: {
|
|
3525
3529
|
"vitest/consistent-each-for": ["error", {
|
|
3526
3530
|
describe: "for",
|
|
@@ -3604,7 +3608,8 @@ async function test(options = {}) {
|
|
|
3604
3608
|
"jest-extended/prefer-to-have-been-called-once": "error"
|
|
3605
3609
|
} : {},
|
|
3606
3610
|
...stylistic !== false ? { "vitest/padding-around-all": "warn" } : {},
|
|
3607
|
-
...overrides
|
|
3611
|
+
...overrides,
|
|
3612
|
+
...vitestOptions.overrides
|
|
3608
3613
|
},
|
|
3609
3614
|
settings: {
|
|
3610
3615
|
...useJestExtended ? { jest: { globalPackage: "vitest" } } : {},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@isentinel/eslint-config",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
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.
|
|
125
|
+
"@isentinel/eslint-config": "5.0.2"
|
|
126
126
|
},
|
|
127
127
|
"peerDependencies": {
|
|
128
128
|
"@vitest/eslint-plugin": "^1.6.4",
|