@isentinel/eslint-config 5.0.2 → 5.1.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.
Files changed (2) hide show
  1. package/dist/index.mjs +6 -2
  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;
@@ -1706,7 +1711,6 @@ async function packageJson(options = {}) {
1706
1711
  ...type === "package" && !roblox ? {
1707
1712
  "package-json/require-bin": ["error", { ignorePrivate: true }],
1708
1713
  "package-json/require-engines": "error",
1709
- "package-json/require-module": "error",
1710
1714
  "package-json/require-sideEffects": ["error", { ignorePrivate: true }]
1711
1715
  } : {}
1712
1716
  }
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.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.2"
125
+ "@isentinel/eslint-config": "5.1.1"
126
126
  },
127
127
  "peerDependencies": {
128
128
  "@vitest/eslint-plugin": "^1.6.4",