lintmax 0.1.98 → 0.1.100
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import { S as OXLINT_CLI_ALLOW, b as DEFAULT_SHARED_IGNORE_PATTERNS, i as joinPath, l as isRecord, n as fromFileUrl, t as dirnamePath, w as PARSE_DIALECTS, x as ESLINT_TEST_FILE_PATTERNS } from "./path-
|
|
3
|
-
import { _ as resolveBin, a as PRETTIER_MD_ARGS, b as usage, c as cwd, d as envValue, f as lintmaxRoot, g as readVersion, h as readRequiredJson, i as CliExitError, l as decodeText, m as readJson, o as bunEnv, p as pathExists, r as sync, s as cacheDir, u as ensureDirectory, v as run, y as runCapture } from "./src-
|
|
2
|
+
import { S as OXLINT_CLI_ALLOW, b as DEFAULT_SHARED_IGNORE_PATTERNS, i as joinPath, l as isRecord, n as fromFileUrl, t as dirnamePath, w as PARSE_DIALECTS, x as ESLINT_TEST_FILE_PATTERNS } from "./path-Dgmf8CJi.mjs";
|
|
3
|
+
import { _ as resolveBin, a as PRETTIER_MD_ARGS, b as usage, c as cwd, d as envValue, f as lintmaxRoot, g as readVersion, h as readRequiredJson, i as CliExitError, l as decodeText, m as readJson, o as bunEnv, p as pathExists, r as sync, s as cacheDir, u as ensureDirectory, v as run, y as runCapture } from "./src-DlUsR71K.mjs";
|
|
4
4
|
import { $, Glob, env, file, write } from "bun";
|
|
5
5
|
import { lstat, unlink } from "node:fs/promises";
|
|
6
6
|
import { join } from "node:path";
|
|
@@ -936,11 +936,12 @@ const listCompactFiles = async ({ env, root }) => {
|
|
|
936
936
|
const symlinkFlags = await Promise.all(entries.map(async (e) => isSymlinkSafe(join(root, e))));
|
|
937
937
|
return entries.filter((_e, index) => !symlinkFlags[index]);
|
|
938
938
|
};
|
|
939
|
-
const runCompact = async ({ env, human = false, mode, root }) => {
|
|
940
|
-
const
|
|
939
|
+
const runCompact = async ({ env, human = false, isIgnored, mode, root }) => {
|
|
940
|
+
const listed = await listCompactFiles({
|
|
941
941
|
env,
|
|
942
942
|
root
|
|
943
943
|
});
|
|
944
|
+
const files = isIgnored === void 0 ? listed : listed.filter((one) => !isIgnored(one));
|
|
944
945
|
const results = await Promise.all(files.map(async (relativePath) => {
|
|
945
946
|
if (!isCompactCandidate({ relativePath })) return {
|
|
946
947
|
changed: false,
|
|
@@ -1812,11 +1813,12 @@ const createStepExecutor = ({ env, failures, root }) => {
|
|
|
1812
1813
|
throw error;
|
|
1813
1814
|
}
|
|
1814
1815
|
};
|
|
1815
|
-
const runCompactContinue = async ({ human = false, mode }) => {
|
|
1816
|
+
const runCompactContinue = async ({ human = false, isIgnored, mode }) => {
|
|
1816
1817
|
try {
|
|
1817
1818
|
await runCompact({
|
|
1818
1819
|
env,
|
|
1819
1820
|
human,
|
|
1821
|
+
isIgnored,
|
|
1820
1822
|
mode,
|
|
1821
1823
|
root
|
|
1822
1824
|
});
|
|
@@ -2372,8 +2374,12 @@ const runLint = async ({ command, human = false }) => {
|
|
|
2372
2374
|
failures,
|
|
2373
2375
|
root: cwd
|
|
2374
2376
|
});
|
|
2377
|
+
const oxlintIgnorePatternsEarly = await readOxlintIgnorePatterns({ dir });
|
|
2378
|
+
const ignoreGlobsEarly = oxlintIgnorePatternsEarly.map((p) => new Glob(p));
|
|
2379
|
+
const isIgnored = (filePath) => ignoreGlobsEarly.some((g) => g.match(filePath));
|
|
2375
2380
|
if (command === "fix" && runtime.compact === true) await runCompactContinue({
|
|
2376
2381
|
human,
|
|
2382
|
+
isIgnored,
|
|
2377
2383
|
mode: "fix"
|
|
2378
2384
|
});
|
|
2379
2385
|
const eslintArgs = ["--config", joinPath(dir, "eslint.generated.mjs")];
|
|
@@ -2387,13 +2393,11 @@ const runLint = async ({ command, human = false }) => {
|
|
|
2387
2393
|
env,
|
|
2388
2394
|
root: cwd
|
|
2389
2395
|
});
|
|
2390
|
-
const allGitFiles = gitWorkTree ? await listCompactFiles({
|
|
2396
|
+
const allGitFiles = (gitWorkTree ? await listCompactFiles({
|
|
2391
2397
|
env,
|
|
2392
2398
|
root: cwd
|
|
2393
|
-
}) : [];
|
|
2394
|
-
const oxlintIgnorePatterns =
|
|
2395
|
-
const ignoreGlobs = oxlintIgnorePatterns.map((p) => new Glob(p));
|
|
2396
|
-
const isIgnored = (filePath) => ignoreGlobs.some((g) => g.match(filePath));
|
|
2399
|
+
}) : []).filter((one) => !isIgnored(one));
|
|
2400
|
+
const oxlintIgnorePatterns = oxlintIgnorePatternsEarly;
|
|
2397
2401
|
const prettierMarkdownTargets = await createPrettierMarkdownTargets({
|
|
2398
2402
|
gitFiles: allGitFiles,
|
|
2399
2403
|
gitWorkTree,
|
package/dist/eslint.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as TAILWIND_ENTRY_CANDIDATES, T as SHARED_OVERRIDE_SYMBOL_KEY, b as DEFAULT_SHARED_IGNORE_PATTERNS, c as findUnknownRules, d as normalizeObjectListInput, f as normalizePathListInput, g as warnToError, i as joinPath, l as isRecord, m as normalizeTailwindOption, p as normalizeRulesOffInput, r as isAbsolutePath, x as ESLINT_TEST_FILE_PATTERNS } from "./path-
|
|
1
|
+
import { E as TAILWIND_ENTRY_CANDIDATES, T as SHARED_OVERRIDE_SYMBOL_KEY, b as DEFAULT_SHARED_IGNORE_PATTERNS, c as findUnknownRules, d as normalizeObjectListInput, f as normalizePathListInput, g as warnToError, i as joinPath, l as isRecord, m as normalizeTailwindOption, p as normalizeRulesOffInput, r as isAbsolutePath, x as ESLINT_TEST_FILE_PATTERNS } from "./path-Dgmf8CJi.mjs";
|
|
2
2
|
import { file } from "bun";
|
|
3
3
|
import eslintReact from "@eslint-react/eslint-plugin";
|
|
4
4
|
import { includeIgnoreFile } from "@eslint/compat";
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as eslintImport, r as sync, t as defineConfig } from "./src-
|
|
1
|
+
import { n as eslintImport, r as sync, t as defineConfig } from "./src-DlUsR71K.mjs";
|
|
2
2
|
export { defineConfig, eslintImport, sync };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as OXLINT_PATTERN_RULE_OVERRIDES, T as SHARED_OVERRIDE_SYMBOL_KEY, _ as BIOME_IGNORE_PATTERNS, a as assertJsonSerializable, b as DEFAULT_SHARED_IGNORE_PATTERNS, c as findUnknownRules, d as normalizeObjectListInput, f as normalizePathListInput, h as stripPluginNamespace, i as joinPath, l as isRecord, m as normalizeTailwindOption, n as fromFileUrl, o as assertObject, p as normalizeRulesOffInput, s as assertOptionalString, t as dirnamePath, u as normalizeIgnorePattern, v as BIOME_PATTERN_RULE_OVERRIDES, y as BIOME_RULES_OFF } from "./path-
|
|
1
|
+
import { C as OXLINT_PATTERN_RULE_OVERRIDES, T as SHARED_OVERRIDE_SYMBOL_KEY, _ as BIOME_IGNORE_PATTERNS, a as assertJsonSerializable, b as DEFAULT_SHARED_IGNORE_PATTERNS, c as findUnknownRules, d as normalizeObjectListInput, f as normalizePathListInput, h as stripPluginNamespace, i as joinPath, l as isRecord, m as normalizeTailwindOption, n as fromFileUrl, o as assertObject, p as normalizeRulesOffInput, s as assertOptionalString, t as dirnamePath, u as normalizeIgnorePattern, v as BIOME_PATTERN_RULE_OVERRIDES, y as BIOME_RULES_OFF } from "./path-Dgmf8CJi.mjs";
|
|
2
2
|
import { $, env as bunEnv, file, write } from "bun";
|
|
3
3
|
import { lstat } from "node:fs/promises";
|
|
4
4
|
import { join, relative } from "node:path";
|