@isentinel/eslint-config 6.0.0-beta.17 → 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 +1 -1
- package/dist/index.d.mts +3 -0
- package/dist/index.mjs +10 -2
- package/dist/lint-cli.mjs +1 -1
- package/dist/oxlint.d.mts +3 -6
- package/dist/oxlint.mjs +12 -5
- package/package.json +2 -2
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.
|
|
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.d.mts
CHANGED
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*",
|
|
@@ -1218,6 +1219,7 @@ function disables({ root }) {
|
|
|
1218
1219
|
rules: {
|
|
1219
1220
|
"antfu/no-top-level-await": "off",
|
|
1220
1221
|
"no-console": "off",
|
|
1222
|
+
"small-rules/require-async-suffix": "off",
|
|
1221
1223
|
"ts/explicit-function-return-type": "off"
|
|
1222
1224
|
}
|
|
1223
1225
|
},
|
|
@@ -1235,6 +1237,7 @@ function disables({ root }) {
|
|
|
1235
1237
|
rules: {
|
|
1236
1238
|
"antfu/no-top-level-await": "off",
|
|
1237
1239
|
"no-console": "off",
|
|
1240
|
+
"small-rules/require-async-suffix": "off",
|
|
1238
1241
|
"ts/explicit-function-return-type": "off"
|
|
1239
1242
|
}
|
|
1240
1243
|
},
|
|
@@ -1244,7 +1247,8 @@ function disables({ root }) {
|
|
|
1244
1247
|
rules: {
|
|
1245
1248
|
"antfu/no-import-dist": "off",
|
|
1246
1249
|
"antfu/no-import-node-modules-by-path": "off",
|
|
1247
|
-
"antfu/no-top-level-await": "off"
|
|
1250
|
+
"antfu/no-top-level-await": "off",
|
|
1251
|
+
"small-rules/require-async-suffix": "off"
|
|
1248
1252
|
}
|
|
1249
1253
|
},
|
|
1250
1254
|
{
|
|
@@ -1278,6 +1282,7 @@ function disables({ root }) {
|
|
|
1278
1282
|
"ts/no-extraneous-class": "off",
|
|
1279
1283
|
"ts/no-non-null-assertion": "off",
|
|
1280
1284
|
"ts/no-unused-expressions": "off",
|
|
1285
|
+
"ts/require-await": "off",
|
|
1281
1286
|
"ts/unbound-method": "off",
|
|
1282
1287
|
"unicorn/consistent-function-scoping": "off"
|
|
1283
1288
|
}
|
|
@@ -1291,6 +1296,7 @@ function disables({ root }) {
|
|
|
1291
1296
|
name: "isentinel/disables/root",
|
|
1292
1297
|
files: [...root, `*.md/${GLOB_SRC}`],
|
|
1293
1298
|
rules: {
|
|
1299
|
+
"import/no-default-export": "off",
|
|
1294
1300
|
"small-rules/require-async-suffix": "off",
|
|
1295
1301
|
"sonar/file-name-differ-from-class": "off",
|
|
1296
1302
|
"unicorn/filename-case": "off"
|
|
@@ -14923,7 +14929,6 @@ const oxlintRuleMapping = {
|
|
|
14923
14929
|
"ts/no-unused-expressions": "native",
|
|
14924
14930
|
"ts/no-unused-private-class-members": "native",
|
|
14925
14931
|
"ts/no-useless-constructor": "native",
|
|
14926
|
-
"ts/prefer-destructuring": "native",
|
|
14927
14932
|
"ts/array-type": "native",
|
|
14928
14933
|
"ts/ban-ts-comment": "native",
|
|
14929
14934
|
"ts/consistent-generic-constructors": "native",
|
|
@@ -15122,6 +15127,8 @@ const oxlintRuleMapping = {
|
|
|
15122
15127
|
"unicorn/require-passive-events": "js-plugin",
|
|
15123
15128
|
"import/first": "native",
|
|
15124
15129
|
"import/newline-after-import": "native",
|
|
15130
|
+
"import/no-anonymous-default-export": "native",
|
|
15131
|
+
"import/no-default-export": "native",
|
|
15125
15132
|
"import/no-mutable-exports": "native",
|
|
15126
15133
|
"import/no-named-default": "native",
|
|
15127
15134
|
"promise/always-return": "native",
|
|
@@ -15551,6 +15558,7 @@ const typeAwareJsPluginRules = /* @__PURE__ */ new Set([
|
|
|
15551
15558
|
"sonar/no-redundant-optional",
|
|
15552
15559
|
"sonar/no-try-promise",
|
|
15553
15560
|
"sonar/prefer-immediate-return",
|
|
15561
|
+
"ts/prefer-destructuring",
|
|
15554
15562
|
"unicorn/no-non-function-verb-prefix"
|
|
15555
15563
|
]);
|
|
15556
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.
|
|
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
|
};
|
|
@@ -3315,6 +3309,9 @@ interface OxlintTestRuleDefaults {
|
|
|
3315
3309
|
"typescript/no-non-null-assertion": {
|
|
3316
3310
|
"*": "off";
|
|
3317
3311
|
};
|
|
3312
|
+
"typescript/require-await": {
|
|
3313
|
+
"*": "off";
|
|
3314
|
+
};
|
|
3318
3315
|
"typescript/unbound-method": {
|
|
3319
3316
|
"*": "off";
|
|
3320
3317
|
};
|
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*",
|
|
@@ -2053,6 +2055,7 @@ function oxlintDisables({ root }) {
|
|
|
2053
2055
|
rules: {
|
|
2054
2056
|
"antfu/no-top-level-await": "off",
|
|
2055
2057
|
"no-console": "off",
|
|
2058
|
+
"small-rules/require-async-suffix": "off",
|
|
2056
2059
|
"ts/explicit-function-return-type": "off"
|
|
2057
2060
|
}
|
|
2058
2061
|
}),
|
|
@@ -2070,6 +2073,7 @@ function oxlintDisables({ root }) {
|
|
|
2070
2073
|
rules: {
|
|
2071
2074
|
"antfu/no-top-level-await": "off",
|
|
2072
2075
|
"no-console": "off",
|
|
2076
|
+
"small-rules/require-async-suffix": "off",
|
|
2073
2077
|
"ts/explicit-function-return-type": "off"
|
|
2074
2078
|
}
|
|
2075
2079
|
}),
|
|
@@ -2079,7 +2083,8 @@ function oxlintDisables({ root }) {
|
|
|
2079
2083
|
rules: {
|
|
2080
2084
|
"antfu/no-import-dist": "off",
|
|
2081
2085
|
"antfu/no-import-node-modules-by-path": "off",
|
|
2082
|
-
"antfu/no-top-level-await": "off"
|
|
2086
|
+
"antfu/no-top-level-await": "off",
|
|
2087
|
+
"small-rules/require-async-suffix": "off"
|
|
2083
2088
|
}
|
|
2084
2089
|
}),
|
|
2085
2090
|
...createOxlintConfigs({
|
|
@@ -2120,6 +2125,7 @@ function oxlintDisables({ root }) {
|
|
|
2120
2125
|
"ts/no-empty-function": "off",
|
|
2121
2126
|
"ts/no-extraneous-class": "off",
|
|
2122
2127
|
"ts/no-non-null-assertion": "off",
|
|
2128
|
+
"ts/require-await": "off",
|
|
2123
2129
|
"ts/unbound-method": "off",
|
|
2124
2130
|
"unicorn/consistent-function-scoping": "off"
|
|
2125
2131
|
}
|
|
@@ -2133,6 +2139,7 @@ function oxlintDisables({ root }) {
|
|
|
2133
2139
|
name: "isentinel/disables/root",
|
|
2134
2140
|
files: [...root],
|
|
2135
2141
|
rules: {
|
|
2142
|
+
"import/no-default-export": "off",
|
|
2136
2143
|
"small-rules/require-async-suffix": "off",
|
|
2137
2144
|
"sonar/file-name-differ-from-class": "off",
|
|
2138
2145
|
"unicorn/filename-case": "off"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@isentinel/eslint-config",
|
|
3
|
-
"version": "6.0.0-beta.
|
|
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.
|
|
145
|
+
"@isentinel/eslint-config": "6.0.0-beta.19"
|
|
146
146
|
},
|
|
147
147
|
"peerDependencies": {
|
|
148
148
|
"@vitest/eslint-plugin": "^1.6.4",
|