@isentinel/eslint-config 6.0.0-beta.18 → 6.0.0-beta.19

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/cli.mjs CHANGED
@@ -9,7 +9,7 @@ import path from "node:path";
9
9
  import { existsSync, readFileSync } from "fs";
10
10
  import { execSync } from "node:child_process";
11
11
  //#region package.json
12
- var version = "6.0.0-beta.18";
12
+ var version = "6.0.0-beta.19";
13
13
  var package_default = {
14
14
  name: "@isentinel/eslint-config",
15
15
  version,
package/dist/index.mjs CHANGED
@@ -223,6 +223,7 @@ const GLOB_EXCLUDE = [
223
223
  "**/temp",
224
224
  "**/tmp",
225
225
  "**/vite.config.*.timestamp-*",
226
+ "**/eslint-suppressions.json",
226
227
  "**/*.min.*",
227
228
  "**/CHANGELOG*.md",
228
229
  "**/LICENSE*",
@@ -14928,7 +14929,6 @@ const oxlintRuleMapping = {
14928
14929
  "ts/no-unused-expressions": "native",
14929
14930
  "ts/no-unused-private-class-members": "native",
14930
14931
  "ts/no-useless-constructor": "native",
14931
- "ts/prefer-destructuring": "native",
14932
14932
  "ts/array-type": "native",
14933
14933
  "ts/ban-ts-comment": "native",
14934
14934
  "ts/consistent-generic-constructors": "native",
@@ -15127,6 +15127,8 @@ const oxlintRuleMapping = {
15127
15127
  "unicorn/require-passive-events": "js-plugin",
15128
15128
  "import/first": "native",
15129
15129
  "import/newline-after-import": "native",
15130
+ "import/no-anonymous-default-export": "native",
15131
+ "import/no-default-export": "native",
15130
15132
  "import/no-mutable-exports": "native",
15131
15133
  "import/no-named-default": "native",
15132
15134
  "promise/always-return": "native",
@@ -15556,6 +15558,7 @@ const typeAwareJsPluginRules = /* @__PURE__ */ new Set([
15556
15558
  "sonar/no-redundant-optional",
15557
15559
  "sonar/no-try-promise",
15558
15560
  "sonar/prefer-immediate-return",
15561
+ "ts/prefer-destructuring",
15559
15562
  "unicorn/no-non-function-verb-prefix"
15560
15563
  ]);
15561
15564
  /**
package/dist/lint-cli.mjs CHANGED
@@ -36,7 +36,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
36
36
  }) : target, mod));
37
37
  //#endregion
38
38
  //#region package.json
39
- var version = "6.0.0-beta.18";
39
+ var version = "6.0.0-beta.19";
40
40
  //#endregion
41
41
  //#region src/lint-cli/lib/cli/types.ts
42
42
  /**
package/dist/oxlint.d.mts CHANGED
@@ -1305,12 +1305,6 @@ interface OxlintMainRuleDefaults {
1305
1305
  "prefer-const": {
1306
1306
  "*": "error";
1307
1307
  };
1308
- "prefer-destructuring": {
1309
- "*": ["error", {
1310
- "array": false;
1311
- "object": true;
1312
- }];
1313
- };
1314
1308
  "prefer-exponentiation-operator": {
1315
1309
  "*": "error";
1316
1310
  };
package/dist/oxlint.mjs CHANGED
@@ -26,7 +26,7 @@ const staysInEslint = {
26
26
  "react/* (type-aware)": "The @eslint-react type-aware rules (no-implicit-children/key/ref, no-leaked-conditional-rendering, no-unused-props) need type information but do NOT declare requiresTypeChecking, so the metadata-based parity test cannot catch them; they are excluded manually and stay in ESLint",
27
27
  "roblox/* (type-aware)": "Type-aware custom rules (lua-truthiness etc.); oxlint jsPlugins have no type information",
28
28
  "sentinel/explicit-size-check": "Type-aware custom rule; oxlint jsPlugins have no type information",
29
- "type-aware jsPlugin rules": "Rules whose meta.docs.requiresTypeChecking is true crash or silently no-op under oxlint's jsPlugin runtime (no type information): sonar/no-ignored-return, sonar/no-incompatible-assertion-types, sonar/no-redundant-optional, sonar/no-try-promise, sonar/prefer-immediate-return, unicorn/no-non-function-verb-prefix, eslint-plugin/no-property-in-node, jest/no-error-equal, jest/no-unnecessary-assertion, jest/unbound-method, jest/valid-expect-with-promise",
29
+ "type-aware jsPlugin rules": "Rules whose meta.docs.requiresTypeChecking is true crash or silently no-op under oxlint's jsPlugin runtime (no type information): sonar/no-ignored-return, sonar/no-incompatible-assertion-types, sonar/no-redundant-optional, sonar/no-try-promise, sonar/prefer-immediate-return, unicorn/no-non-function-verb-prefix, eslint-plugin/no-property-in-node, jest/no-error-equal, jest/no-unnecessary-assertion, jest/unbound-method, jest/valid-expect-with-promise, ts/prefer-destructuring (also has no native oxlint port)",
30
30
  "unicorn/no-unsafe-string-replacement": "False positives under oxlint's jsPlugin scope analysis (template-literal replacements are not resolved)",
31
31
  "unicorn/no-useless-coercion": "Optionally type-aware: values whose type is only known through TypeScript (a `string`-typed parameter, say) are missed without parser services, so it stays in ESLint (see optionallyTypeAwareRules)"
32
32
  };
@@ -163,7 +163,6 @@ const oxlintRuleMapping = {
163
163
  "ts/no-unused-expressions": "native",
164
164
  "ts/no-unused-private-class-members": "native",
165
165
  "ts/no-useless-constructor": "native",
166
- "ts/prefer-destructuring": "native",
167
166
  "ts/array-type": "native",
168
167
  "ts/ban-ts-comment": "native",
169
168
  "ts/consistent-generic-constructors": "native",
@@ -362,6 +361,8 @@ const oxlintRuleMapping = {
362
361
  "unicorn/require-passive-events": "js-plugin",
363
362
  "import/first": "native",
364
363
  "import/newline-after-import": "native",
364
+ "import/no-anonymous-default-export": "native",
365
+ "import/no-default-export": "native",
365
366
  "import/no-mutable-exports": "native",
366
367
  "import/no-named-default": "native",
367
368
  "promise/always-return": "native",
@@ -791,6 +792,7 @@ const typeAwareJsPluginRules = /* @__PURE__ */ new Set([
791
792
  "sonar/no-redundant-optional",
792
793
  "sonar/no-try-promise",
793
794
  "sonar/prefer-immediate-return",
795
+ "ts/prefer-destructuring",
794
796
  "unicorn/no-non-function-verb-prefix"
795
797
  ]);
796
798
  /**
@@ -849,8 +851,7 @@ const TS_EXTENSION_TO_CORE = /* @__PURE__ */ new Set([
849
851
  "no-shadow",
850
852
  "no-unused-expressions",
851
853
  "no-unused-private-class-members",
852
- "no-useless-constructor",
853
- "prefer-destructuring"
854
+ "no-useless-constructor"
854
855
  ]);
855
856
  /** Unicorn rules renamed in eslint-plugin-unicorn v70 but not in oxlint. */
856
857
  const UNICORN_NATIVE_RENAMES = { "no-for-each": "no-array-for-each" };
@@ -1056,6 +1057,7 @@ const GLOB_EXCLUDE = [
1056
1057
  "**/temp",
1057
1058
  "**/tmp",
1058
1059
  "**/vite.config.*.timestamp-*",
1060
+ "**/eslint-suppressions.json",
1059
1061
  "**/*.min.*",
1060
1062
  "**/CHANGELOG*.md",
1061
1063
  "**/LICENSE*",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isentinel/eslint-config",
3
- "version": "6.0.0-beta.18",
3
+ "version": "6.0.0-beta.19",
4
4
  "description": "iSentinel's ESLint config",
5
5
  "keywords": [
6
6
  "eslint-config",
@@ -142,7 +142,7 @@
142
142
  "typescript": "6.0.3",
143
143
  "unplugin-unused": "0.5.7",
144
144
  "vitest": "4.1.10",
145
- "@isentinel/eslint-config": "6.0.0-beta.18"
145
+ "@isentinel/eslint-config": "6.0.0-beta.19"
146
146
  },
147
147
  "peerDependencies": {
148
148
  "@vitest/eslint-plugin": "^1.6.4",