@antelopejs/tooling-configs 0.0.4 → 0.0.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/oxc/fmt.mjs
CHANGED
package/dist/oxc/lint.d.mts
CHANGED
|
@@ -53,15 +53,30 @@ interface AntelopePresetOptions {
|
|
|
53
53
|
});
|
|
54
54
|
/**
|
|
55
55
|
* Import sorting through `eslint-plugin-perfectionist`, autofixed by
|
|
56
|
-
* `oxlint --fix`.
|
|
57
|
-
*
|
|
56
|
+
* `oxlint --fix`.
|
|
57
|
+
*
|
|
58
|
+
* Off by default, because the sort moves value imports across side-effect
|
|
59
|
+
* imports and module evaluation order is load-bearing in an AntelopeJS
|
|
60
|
+
* module: `import "./components"` is what puts the decorated classes in the
|
|
61
|
+
* registry. Running it over the cms/dms repositories moved
|
|
62
|
+
* `import { CORE_SCHEMA_NAME } from ".../constants"` from before
|
|
63
|
+
* `import "./db"` to after `import "./routes"` -- in a file whose comment
|
|
64
|
+
* says the position is deliberate -- and broke the package at require time.
|
|
65
|
+
* Nothing in a typecheck or a build catches it.
|
|
66
|
+
*
|
|
67
|
+
* `sortSideEffects: false` is not enough: it keeps side-effect imports in
|
|
68
|
+
* place (verified across 1402 files, none moved) but lets everything else
|
|
69
|
+
* cross them. `partitionByNewLine`, which would fix that, is refused by
|
|
70
|
+
* perfectionist 5.11 -- it conflicts with both `newlinesBetween` and
|
|
71
|
+
* `newlinesInside`. Turn this back on when the rule can guarantee that no
|
|
72
|
+
* import crosses a side-effect import.
|
|
58
73
|
*
|
|
59
74
|
* The plugin is an optional peer dependency: it pulls ESLint and
|
|
60
|
-
* typescript-eslint in with it, which a repository
|
|
75
|
+
* typescript-eslint in with it, which a repository leaving this off has no
|
|
61
76
|
* reason to install. Add `eslint-plugin-perfectionist` alongside this package
|
|
62
|
-
* when
|
|
77
|
+
* when turning it on.
|
|
63
78
|
*
|
|
64
|
-
* @default
|
|
79
|
+
* @default false
|
|
65
80
|
*/
|
|
66
81
|
importSorting?: boolean;
|
|
67
82
|
/**
|
package/dist/oxc/lint.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as IGNORE_PATTERNS, t as AGENT_IGNORE_PATTERNS } from "../shared-
|
|
1
|
+
import { n as IGNORE_PATTERNS, t as AGENT_IGNORE_PATTERNS } from "../shared-COc6SJpd.mjs";
|
|
2
2
|
import { defineConfig } from "oxlint";
|
|
3
3
|
//#region src/oxc/lint.ts
|
|
4
4
|
/**
|
|
@@ -229,7 +229,7 @@ function antelopePreset(options = {}) {
|
|
|
229
229
|
options.typeAware === false ? null : typeAwarePreset(),
|
|
230
230
|
antiSlopSeverity === "off" ? null : antiSlopPreset(antiSlopSeverity),
|
|
231
231
|
complexitySeverity === "off" ? null : complexityPreset(complexityThresholds, complexitySeverity),
|
|
232
|
-
options.importSorting ===
|
|
232
|
+
options.importSorting === true ? importSortingPreset() : null
|
|
233
233
|
].filter((config) => config !== null),
|
|
234
234
|
rules: { "typescript/no-floating-promises": options.typeAware === false ? "off" : "error" }
|
|
235
235
|
});
|
|
@@ -10,7 +10,8 @@ const IGNORE_PATTERNS = [
|
|
|
10
10
|
"**/.output/**",
|
|
11
11
|
"**/output/**",
|
|
12
12
|
"**/generated-layers.json",
|
|
13
|
-
"**/i18n-registry.generated.ts"
|
|
13
|
+
"**/i18n-registry.generated.ts",
|
|
14
|
+
".github/ISSUE_TEMPLATE/**"
|
|
14
15
|
];
|
|
15
16
|
/** Agent tooling directories: assets we install, not source we own. */
|
|
16
17
|
const AGENT_IGNORE_PATTERNS = [
|