@isentinel/eslint-config 6.0.1 → 6.2.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/README.md +115 -0
- package/dist/cli.mjs +231 -30
- package/dist/index.d.mts +84 -36
- package/dist/index.mjs +793 -200
- package/dist/lint-cli.mjs +527 -131
- package/dist/oxfmt.d.mts +132 -0
- package/dist/oxfmt.mjs +722 -0
- package/dist/oxlint.d.mts +21 -2
- package/dist/oxlint.mjs +462 -61
- package/package.json +10 -5
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";
|
|
@@ -25135,6 +25140,20 @@ interface OptionsConfig extends OptionsComponentExtensions, OptionsProjectType {
|
|
|
25135
25140
|
* @requires eslint-plugin-eslint-plugin
|
|
25136
25141
|
*/
|
|
25137
25142
|
eslintPlugin?: boolean | OptionsOverrides;
|
|
25143
|
+
/**
|
|
25144
|
+
* Where formatting runs.
|
|
25145
|
+
*
|
|
25146
|
+
* - `"eslint"`: oxfmt runs inside the linter as the `oxfmt/oxfmt` rule.
|
|
25147
|
+
* - `"standalone"`: oxfmt runs as its own tool (`oxfmt`, with an
|
|
25148
|
+
* `oxfmt.config.ts` built by `isentinelOxfmt` from
|
|
25149
|
+
* `@isentinel/eslint-config/oxfmt`). The linter keeps the
|
|
25150
|
+
* formatter-conflict disables and still reads the oxfmt config so
|
|
25151
|
+
* width-aware rules agree with it, but enables `oxfmt/oxfmt` nowhere.
|
|
25152
|
+
* Lua formatting (Stylua) stays in ESLint, as oxfmt does not format Lua.
|
|
25153
|
+
*
|
|
25154
|
+
* @default "eslint"
|
|
25155
|
+
*/
|
|
25156
|
+
formatter?: "eslint" | "standalone";
|
|
25138
25157
|
/**
|
|
25139
25158
|
* Use external formatters to format files.
|
|
25140
25159
|
*
|