@isentinel/eslint-config 5.0.2 → 5.1.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.
Files changed (2) hide show
  1. package/dist/index.mjs +6 -1
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -137,7 +137,12 @@ async function interopDefault(dynamicImport) {
137
137
  return resolved;
138
138
  }
139
139
  function isInGitHooksOrLintStaged() {
140
- return [process.env["GIT_PARAMS"] ?? process.env["VSCODE_GIT_COMMAND"] ?? process.env["npm_lifecycle_script"]?.startsWith("lint-staged")].some(Boolean);
140
+ return [
141
+ process.env["GIT_HOOK"],
142
+ process.env["GIT_PARAMS"],
143
+ process.env["VSCODE_GIT_COMMAND"],
144
+ process.env["npm_lifecycle_script"]?.startsWith("lint-staged")
145
+ ].some(Boolean);
141
146
  }
142
147
  function isInAgentSession() {
143
148
  if (isInGitHooksOrLintStaged()) return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isentinel/eslint-config",
3
- "version": "5.0.2",
3
+ "version": "5.1.0",
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.2"
125
+ "@isentinel/eslint-config": "5.1.0"
126
126
  },
127
127
  "peerDependencies": {
128
128
  "@vitest/eslint-plugin": "^1.6.4",