@isentinel/eslint-config 5.0.0-beta.4 → 5.0.0-beta.5
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.mjs +7 -10
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1872,20 +1872,17 @@ async function isentinel(options, ...userConfigs) {
|
|
|
1872
1872
|
let composer = new FlatConfigComposer();
|
|
1873
1873
|
composer = composer.append(...configs, ...userConfigs);
|
|
1874
1874
|
if (autoRenamePlugins) composer = composer.renamePlugins(defaultPluginRenaming);
|
|
1875
|
-
if (isInEditor) {
|
|
1876
|
-
const disableAutofixRules = [
|
|
1877
|
-
|
|
1878
|
-
"prefer-const",
|
|
1879
|
-
"
|
|
1880
|
-
|
|
1881
|
-
if (
|
|
1875
|
+
if (isInEditor || inAgentSession) {
|
|
1876
|
+
const disableAutofixRules = [];
|
|
1877
|
+
if (isInEditor) {
|
|
1878
|
+
disableAutofixRules.push("no-useless-return", "prefer-const", "unused-imports/no-unused-imports");
|
|
1879
|
+
if (enableRoblox) disableAutofixRules.push("unicorn/no-array-for-each");
|
|
1880
|
+
}
|
|
1881
|
+
if (inAgentSession) disableAutofixRules.push("ts/consistent-type-imports");
|
|
1882
1882
|
composer = composer.disableRulesFix(disableAutofixRules, { builtinRules: async () => {
|
|
1883
1883
|
return (await import("eslint/use-at-your-own-risk")).builtinRules;
|
|
1884
1884
|
} });
|
|
1885
1885
|
}
|
|
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
1886
|
if (defaultSeverity) composer = composer.onResolved((item) => {
|
|
1890
1887
|
for (const config of item) if (config.rules) config.rules = overrideRuleSeverity(config.rules, defaultSeverity);
|
|
1891
1888
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@isentinel/eslint-config",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.5",
|
|
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.
|
|
134
|
+
"@isentinel/eslint-config": "5.0.0-beta.5"
|
|
135
135
|
},
|
|
136
136
|
"peerDependencies": {
|
|
137
137
|
"@vitest/eslint-plugin": "^1.6.4",
|