@isentinel/eslint-config 5.0.0-beta.2 → 5.0.0-beta.3

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 +5 -1
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -1712,8 +1712,9 @@ async function isentinel(options, ...userConfigs) {
1712
1712
  const { autoRenamePlugins = true, componentExts: componentExtensions = [], eslintPlugin: enableEslintPlugin = false, formatters, gitignore: enableGitignore = true, jsdoc: enableJsdoc = true, jsx: enableJsx = true, pnpm: enableCatalogs = findUpSync("pnpm-workspace.yaml") !== void 0, react: enableReact = false, root: customRootGlobs, spellCheck: enableSpellCheck } = options;
1713
1713
  const rootGlobs = mergeGlobs(GLOB_ROOT, customRootGlobs);
1714
1714
  const enableRoblox = options.roblox !== false;
1715
+ const inAgentSession = isInAgentSession();
1715
1716
  let { defaultSeverity, isInEditor } = options;
1716
- if (defaultSeverity === void 0 && isInAgentSession()) defaultSeverity = "error";
1717
+ if (defaultSeverity === void 0 && inAgentSession) defaultSeverity = "error";
1717
1718
  if (isInEditor === void 0) {
1718
1719
  isInEditor = isInEditorEnvironment();
1719
1720
  if (isInEditor) console.log("[@isentinel/eslint-config] Detected running in editor, some rules are disabled.");
@@ -1881,6 +1882,9 @@ async function isentinel(options, ...userConfigs) {
1881
1882
  return (await import("eslint/use-at-your-own-risk")).builtinRules;
1882
1883
  } });
1883
1884
  }
1885
+ if (inAgentSession) composer = composer.disableRulesFix(["ts/consistent-type-imports"], { builtinRules: async () => {
1886
+ return (await import("eslint/use-at-your-own-risk")).builtinRules;
1887
+ } });
1884
1888
  if (defaultSeverity) composer = composer.onResolved((item) => {
1885
1889
  for (const config of item) if (config.rules) config.rules = overrideRuleSeverity(config.rules, defaultSeverity);
1886
1890
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isentinel/eslint-config",
3
- "version": "5.0.0-beta.2",
3
+ "version": "5.0.0-beta.3",
4
4
  "description": "iSentinel's ESLint config",
5
5
  "keywords": [
6
6
  "eslint-config",
@@ -131,7 +131,7 @@
131
131
  "type-fest": "5.4.4",
132
132
  "typescript": "5.9.3",
133
133
  "unplugin-unused": "0.5.7",
134
- "@isentinel/eslint-config": "5.0.0-beta.2"
134
+ "@isentinel/eslint-config": "5.0.0-beta.3"
135
135
  },
136
136
  "peerDependencies": {
137
137
  "@vitest/eslint-plugin": "^1.6.4",