@isentinel/eslint-config 6.0.0 → 6.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.
package/dist/oxlint.d.mts CHANGED
@@ -1382,7 +1382,10 @@ interface OxlintMainRuleDefaults {
1382
1382
  "*": "off";
1383
1383
  };
1384
1384
  "prefer-const": {
1385
- "*": "error";
1385
+ "*": ["error", {
1386
+ "destructuring": "all";
1387
+ "ignoreReadBeforeAssign": true;
1388
+ }];
1386
1389
  };
1387
1390
  "prefer-destructuring": {
1388
1391
  "*": "off";
@@ -2080,7 +2083,9 @@ interface OxlintMainRuleDefaults {
2080
2083
  "*": "off";
2081
2084
  };
2082
2085
  "typescript/no-empty-object-type": {
2083
- "*": "error";
2086
+ "*": ["error", {
2087
+ "allowInterfaces": "always";
2088
+ }];
2084
2089
  };
2085
2090
  "typescript/no-explicit-any": {
2086
2091
  "*": "off";
package/dist/oxlint.mjs CHANGED
@@ -8479,11 +8479,15 @@ function sonarjsTestRules({ jest = false, roblox = true } = {}) {
8479
8479
  }
8480
8480
  //#endregion
8481
8481
  //#region src/oxlint/configs/sonarjs.ts
8482
- function oxlintSonarjs(options) {
8482
+ function oxlintSonarjs({ excludeFiles, isInEditor, roblox }) {
8483
8483
  return createOxlintConfigs({
8484
- name: "isentinel/sonarjs",
8484
+ name: excludeFiles ? "isentinel/sonarjs/complement" : "isentinel/sonarjs",
8485
+ ...excludeFiles ? { excludeFiles } : {},
8485
8486
  files: [GLOB_SRC],
8486
- rules: sonarjsRules(options)
8487
+ rules: sonarjsRules({
8488
+ isInEditor,
8489
+ roblox
8490
+ })
8487
8491
  });
8488
8492
  }
8489
8493
  //#endregion
@@ -9006,7 +9010,6 @@ function typescriptTypeAwareRules({ roblox = true } = {}) {
9006
9010
  "ts/no-confusing-void-expression": "error",
9007
9011
  "ts/no-deprecated": "error",
9008
9012
  "ts/no-duplicate-type-constituents": "error",
9009
- "ts/no-empty-object-type": "error",
9010
9013
  "ts/no-floating-promises": ["error", {
9011
9014
  checkThenables: roblox,
9012
9015
  ignoreVoid: true
@@ -9107,7 +9110,6 @@ function typescriptRecommendedOverrides() {
9107
9110
  "no-unsafe-negation": "off",
9108
9111
  "no-var": "error",
9109
9112
  "no-with": "off",
9110
- "prefer-const": "error",
9111
9113
  "prefer-rest-params": "error",
9112
9114
  "prefer-spread": "error"
9113
9115
  };
@@ -9488,7 +9490,21 @@ function isentinel(factoryOptions, ...userConfigs) {
9488
9490
  componentExts: componentExtensions,
9489
9491
  stylistic: stylisticOptions
9490
9492
  }));
9491
- if (needsComplementOverlay) configs.push(oxlintTypescript({
9493
+ if (needsComplementOverlay) configs.push(oxlintJavascript({
9494
+ ...getOverrides(options, "javascript"),
9495
+ excludeFiles: robloxScopedFiles,
9496
+ isInEditor,
9497
+ roblox: false,
9498
+ stylistic: stylisticOptions
9499
+ }), oxlintImports({
9500
+ excludeFiles: robloxScopedFiles,
9501
+ roblox: false,
9502
+ stylistic: stylisticOptions
9503
+ }), oxlintSonarjs({
9504
+ excludeFiles: robloxScopedFiles,
9505
+ isInEditor,
9506
+ roblox: false
9507
+ }), oxlintTypescript({
9492
9508
  ...resolveSubOptions(options, "typescript"),
9493
9509
  ...getOverrides(options, "typescript"),
9494
9510
  componentExts: componentExtensions,
@@ -9496,21 +9512,11 @@ function isentinel(factoryOptions, ...userConfigs) {
9496
9512
  roblox: false,
9497
9513
  stylistic: stylisticOptions,
9498
9514
  typeAware
9499
- }), oxlintJavascript({
9500
- ...getOverrides(options, "javascript"),
9501
- excludeFiles: robloxScopedFiles,
9502
- isInEditor,
9503
- roblox: false,
9504
- stylistic: stylisticOptions
9505
9515
  }), oxlintUnicorn({
9506
9516
  ...resolveSubOptions(options, "unicorn"),
9507
9517
  excludeFiles: robloxScopedFiles,
9508
9518
  roblox: false,
9509
9519
  stylistic: stylisticOptions
9510
- }), oxlintImports({
9511
- excludeFiles: robloxScopedFiles,
9512
- roblox: false,
9513
- stylistic: stylisticOptions
9514
9520
  }));
9515
9521
  if (enableE18e !== false && hasComplement) configs.push(oxlintE18e({
9516
9522
  excludeFiles: robloxScopedFiles,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isentinel/eslint-config",
3
- "version": "6.0.0",
3
+ "version": "6.1.0",
4
4
  "description": "iSentinel's ESLint config",
5
5
  "keywords": [
6
6
  "eslint-config",
@@ -67,7 +67,7 @@
67
67
  "@typescript-eslint/eslint-plugin": "8.65.0",
68
68
  "@typescript-eslint/parser": "8.65.0",
69
69
  "ansis": "4.3.1",
70
- "concurrently": "10.0.4",
70
+ "concurrently": "10.0.6",
71
71
  "eslint-config-flat-gitignore": "2.3.0",
72
72
  "eslint-config-prettier": "10.1.8",
73
73
  "eslint-flat-config-utils": "3.2.0",
@@ -98,7 +98,7 @@
98
98
  "globals": "17.7.0",
99
99
  "jsonc-eslint-parser": "3.1.0",
100
100
  "local-pkg": "1.2.1",
101
- "oxfmt": "0.63.0",
101
+ "oxfmt": "0.72.0",
102
102
  "oxlint-plugin-eslint": "1.78.0",
103
103
  "oxlint-plugin-oxlint-comments": "0.1.0",
104
104
  "prettier": "3.9.6",
@@ -145,7 +145,7 @@
145
145
  "typescript": "6.0.3",
146
146
  "unplugin-unused": "0.5.7",
147
147
  "vitest": "4.1.10",
148
- "@isentinel/eslint-config": "6.0.0"
148
+ "@isentinel/eslint-config": "6.1.0"
149
149
  },
150
150
  "peerDependencies": {
151
151
  "@vitest/eslint-plugin": "^1.6.4",