@isentinel/eslint-config 5.0.0-beta.4 → 5.0.0-beta.6

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 +9 -11
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -242,7 +242,8 @@ async function resolveOxfmtConfigOptions() {
242
242
  const configPath = path.resolve(process.cwd(), filename);
243
243
  try {
244
244
  const content = await fs.promises.readFile(configPath, "utf-8");
245
- return JSON.parse(content);
245
+ const { $schema: _, ...config } = JSON.parse(content);
246
+ return config;
246
247
  } catch {
247
248
  continue;
248
249
  }
@@ -1872,20 +1873,17 @@ async function isentinel(options, ...userConfigs) {
1872
1873
  let composer = new FlatConfigComposer();
1873
1874
  composer = composer.append(...configs, ...userConfigs);
1874
1875
  if (autoRenamePlugins) composer = composer.renamePlugins(defaultPluginRenaming);
1875
- if (isInEditor) {
1876
- const disableAutofixRules = [
1877
- "no-useless-return",
1878
- "prefer-const",
1879
- "unused-imports/no-unused-imports"
1880
- ];
1881
- if (enableRoblox) disableAutofixRules.push("unicorn/no-array-for-each");
1876
+ if (isInEditor || inAgentSession) {
1877
+ const disableAutofixRules = [];
1878
+ if (isInEditor) {
1879
+ disableAutofixRules.push("no-useless-return", "prefer-const", "unused-imports/no-unused-imports");
1880
+ if (enableRoblox) disableAutofixRules.push("unicorn/no-array-for-each");
1881
+ }
1882
+ if (inAgentSession) disableAutofixRules.push("ts/consistent-type-imports");
1882
1883
  composer = composer.disableRulesFix(disableAutofixRules, { builtinRules: async () => {
1883
1884
  return (await import("eslint/use-at-your-own-risk")).builtinRules;
1884
1885
  } });
1885
1886
  }
1886
- if (inAgentSession) composer = composer.disableRulesFix(["ts/consistent-type-imports"], { builtinRules: async () => {
1887
- return (await import("eslint/use-at-your-own-risk")).builtinRules;
1888
- } });
1889
1887
  if (defaultSeverity) composer = composer.onResolved((item) => {
1890
1888
  for (const config of item) if (config.rules) config.rules = overrideRuleSeverity(config.rules, defaultSeverity);
1891
1889
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isentinel/eslint-config",
3
- "version": "5.0.0-beta.4",
3
+ "version": "5.0.0-beta.6",
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.4"
134
+ "@isentinel/eslint-config": "5.0.0-beta.6"
135
135
  },
136
136
  "peerDependencies": {
137
137
  "@vitest/eslint-plugin": "^1.6.4",