pasika 0.10.96 → 0.10.97
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.
|
@@ -271,8 +271,8 @@ declare const allPasikaRuleIds: string[];
|
|
|
271
271
|
/**
|
|
272
272
|
* TypeScript app preset: the framework-agnostic baseline — the package.json
|
|
273
273
|
* manifest (incl. husky hook and vulyk requirements), the zirka configuration
|
|
274
|
-
* contract,
|
|
275
|
-
*
|
|
274
|
+
* contract, the documentation markdown rules, and the repository-wide TypeScript
|
|
275
|
+
* file-length limit. Only the Next.js preset adds the full `src/**` source rules.
|
|
276
276
|
* Use this for a plain TypeScript repository that does not adopt the framework.
|
|
277
277
|
*/
|
|
278
278
|
declare const pasikaApp: Linter.Config[];
|
|
@@ -3302,7 +3302,7 @@ var fileLengthRule = {
|
|
|
3302
3302
|
schema: [],
|
|
3303
3303
|
type: "problem",
|
|
3304
3304
|
docs: {
|
|
3305
|
-
description: "Require application
|
|
3305
|
+
description: "Require TypeScript files and application JavaScript files to stay at or below 300 lines."
|
|
3306
3306
|
}
|
|
3307
3307
|
},
|
|
3308
3308
|
create(context) {
|
|
@@ -10653,6 +10653,12 @@ var pasikaAppLanguageOptions = {
|
|
|
10653
10653
|
ecmaFeatures: { jsx: true }
|
|
10654
10654
|
}
|
|
10655
10655
|
};
|
|
10656
|
+
var pasikaTypeScriptFileLengthConfig = {
|
|
10657
|
+
files: ["**/*.{cts,mts,ts,tsx}"],
|
|
10658
|
+
languageOptions: pasikaAppLanguageOptions,
|
|
10659
|
+
plugins: { pasika: pasikaPlugin },
|
|
10660
|
+
rules: { "pasika/file-length": "error" }
|
|
10661
|
+
};
|
|
10656
10662
|
var pasikaNextjsAppConfig = {
|
|
10657
10663
|
files: ["src/**/*.{cjs,cts,js,jsx,mjs,mts,ts,tsx}"],
|
|
10658
10664
|
languageOptions: pasikaAppLanguageOptions,
|
|
@@ -10725,7 +10731,12 @@ var documentationConfig = {
|
|
|
10725
10731
|
language: "markdown/gfm",
|
|
10726
10732
|
rules: Object.fromEntries(documentationRuleIds.map((id) => [id, "error"]))
|
|
10727
10733
|
};
|
|
10728
|
-
var pasikaApp = [
|
|
10734
|
+
var pasikaApp = [
|
|
10735
|
+
pasikaAppPackageJsonConfig,
|
|
10736
|
+
zirkaConfig,
|
|
10737
|
+
documentationConfig,
|
|
10738
|
+
pasikaTypeScriptFileLengthConfig
|
|
10739
|
+
];
|
|
10729
10740
|
var pasikaNextjsAppWithDiagnostic = (preset) => {
|
|
10730
10741
|
let checked = false;
|
|
10731
10742
|
return new Proxy(preset, {
|