@zthun/janitor-options 19.2.2 → 19.2.4
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/index.cjs
CHANGED
|
@@ -369,7 +369,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
369
369
|
* This object.
|
|
370
370
|
*/ commonHtmlFiles() {
|
|
371
371
|
const extensions = "html,htm";
|
|
372
|
-
return this.htmlFile(`src/**/*.{${extensions}}`).htmlFile(`packages/**/src/**/*.{${extensions}}`);
|
|
372
|
+
return this.htmlFile(`src/**/*.{${extensions}}`).htmlFile(`packages/**/src/**/*.{${extensions}}`).htmlFile(`src/*.{${extensions}}`).htmlFile(`packages/*/*.{${extensions}}`);
|
|
373
373
|
}
|
|
374
374
|
/**
|
|
375
375
|
* Adds conventional markdown files.
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../src/options/janitor-options-lint.mts","../src/options/janitor-options.mts"],"sourcesContent":["/**\n * Represents options for linting in the zthunworks janitor system.\n */\nexport interface IZJanitorOptionsLint {\n /**\n * The path to the config file for eslint.\n */\n esConfig?: string;\n /**\n * The path to the config file for htmlhint.\n */\n htmlConfig?: string;\n /**\n * The path to the config file for markdownlint.\n */\n markdownConfig?: string;\n /**\n * The path to the config file for prettier.\n */\n prettyConfig?: string;\n /**\n * The path to the config file for cspell.\n */\n spellingConfig?: string;\n /**\n * The path to the config file for stylelint.\n */\n styleConfig?: string;\n\n /**\n * The file globs to lint with eslint.\n */\n esFiles?: string[];\n /**\n * The file globs to lint with htmlhint.\n */\n htmlFiles?: string[];\n /**\n * The file globs to lint with json.\n */\n jsonFiles?: string[];\n /**\n * The file globs to lint with markdownlint.\n */\n markdownFiles?: string[];\n /**\n * The file globs to lint with prettier.\n */\n prettyFiles?: string[];\n /**\n * The file globs to lint with cspell.\n */\n spellingFiles?: string[];\n /**\n * The file globs to lint with stylelint.\n */\n styleFiles?: string[];\n /**\n * The file globs to lint with yaml.\n */\n yamlFiles?: string[];\n\n /**\n * The files globs to exclude from linting with htmlhint.\n */\n htmlFilesExclude?: string[];\n /**\n * The files globs to exclude from linting with json.\n */\n jsonFilesExclude?: string[];\n /**\n * The files globs to exclude from linting with markdownlint.\n */\n markdownFilesExclude?: string[];\n /**\n * The files globs to exclude from linting with prettier.\n */\n prettyFilesExclude?: string[];\n /**\n * The files globs to exclude from linting with cspell.\n */\n spellingFilesExclude?: string[];\n /**\n * The files to exclude from linting with stylelint.\n */\n styleFilesExclude?: string[];\n /**\n * The files globs to exclude from linting with yaml.\n */\n yamlFilesExclude?: string[];\n}\n\n/**\n * A builder for creating linting options for the zthunworks janitor system.\n */\nexport class ZJanitorOptionsLintBuilder {\n private lint: IZJanitorOptionsLint = {};\n\n /**\n * Sets the path to the config file for eslint.\n *\n * @param esConfig -\n * The path to the config file for eslint.\n *\n * @returns\n * This object.\n */\n public esConfig(esConfig: string): ZJanitorOptionsLintBuilder {\n this.lint.esConfig = esConfig;\n return this;\n }\n\n /**\n * Sets the path to the config file for htmlhint.\n *\n * @param htmlConfig -\n * The path to the config file for htmlhint.\n *\n * @returns\n * This object.\n */\n public htmlConfig(htmlConfig: string): ZJanitorOptionsLintBuilder {\n this.lint.htmlConfig = htmlConfig;\n return this;\n }\n\n /**\n * Sets the path to the config file for markdownlint.\n *\n * @param markdownConfig -\n * The path to the config file for markdownlint.\n *\n * @returns\n * This object.\n */\n public markdownConfig(markdownConfig: string): ZJanitorOptionsLintBuilder {\n this.lint.markdownConfig = markdownConfig;\n return this;\n }\n\n /**\n * Sets the path to the config file for prettier.\n *\n * @param prettyConfig -\n * The path to the config file for prettier.\n *\n * @returns\n * This object.\n */\n public prettyConfig(prettyConfig: string): ZJanitorOptionsLintBuilder {\n this.lint.prettyConfig = prettyConfig;\n return this;\n }\n\n /**\n * Sets the path to the config file for cspell.\n *\n * @param spellingConfig -\n * The path to the config file for cspell.\n *\n * @returns\n * This object.\n */\n public spellingConfig(spellingConfig: string): ZJanitorOptionsLintBuilder {\n this.lint.spellingConfig = spellingConfig;\n return this;\n }\n\n /**\n * Sets the path to the config file for stylelint.\n *\n * @param styleConfig -\n * The path to the config file for stylelint.\n *\n * @returns\n * This object.\n */\n public styleConfig(styleConfig: string): ZJanitorOptionsLintBuilder {\n this.lint.styleConfig = styleConfig;\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with eslint.\n *\n * @param file -\n * The file globs to lint with eslint.\n *\n * @returns\n * This object.\n */\n public esFile(file: string | string[] = []) {\n const files = this.lint.esFiles ?? [];\n this.lint.esFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with htmlhint.\n *\n * @param file -\n * The file globs to lint with htmlhint.\n *\n * @returns\n * This object.\n */\n public htmlFile(file: string | string[] = []) {\n const files = this.lint.htmlFiles ?? [];\n this.lint.htmlFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with json.\n *\n * @param file -\n * The file globs to lint with json.\n *\n * @returns\n * This object.\n */\n public jsonFile(file: string | string[] = []) {\n const files = this.lint.jsonFiles ?? [];\n this.lint.jsonFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with markdownlint.\n *\n * @param file -\n * The globs to lint with markdownlint.\n *\n * @returns\n * This object.\n */\n public markdownFile(file: string | string[] = []) {\n const files = this.lint.markdownFiles ?? [];\n this.lint.markdownFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with prettier.\n *\n * @param file -\n * The globs to lint with prettier.\n *\n * @returns\n * This object.\n */\n public prettyFile(file: string | string[] = []) {\n const files = this.lint.prettyFiles ?? [];\n this.lint.prettyFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with cspell.\n *\n * @param file -\n * The file globs to lint with cspell.\n *\n * @returns\n * This object.\n */\n public spellingFile(file: string | string[] = []) {\n const files = this.lint.spellingFiles ?? [];\n this.lint.spellingFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with stylelint.\n *\n * @param file -\n * The file globs to lint with stylelint.\n *\n * @returns\n * This object.\n */\n public styleFile(file: string | string[] = []) {\n const files = this.lint.styleFiles ?? [];\n this.lint.styleFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with yaml.\n *\n * @param file -\n * The file globs to lint with yaml.\n *\n * @returns\n * This object.\n */\n public yamlFile(file: string | string[] = []) {\n const files = this.lint.yamlFiles ?? [];\n this.lint.yamlFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to exclude from linting with htmlhint.\n *\n * @param files -\n * The file globs to exclude from linting with htmlhint.\n *\n * @returns\n * This object.\n */\n public htmlExclude(files: string | string[] = []) {\n const excludes = this.lint.htmlFilesExclude ?? [];\n this.lint.htmlFilesExclude = excludes.concat(files);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to exclude from linting with json.\n *\n * @param file -\n * The globs to exclude from linting with json.\n *\n * @returns\n * This object.\n */\n public jsonExclude(file: string | string[] = []) {\n const excludes = this.lint.jsonFilesExclude ?? [];\n this.lint.jsonFilesExclude = excludes.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to exclude from linting with markdownlint.\n *\n * @param file -\n * The globs to exclude from linting with markdownlint.\n *\n * @returns\n * This object.\n */\n public markdownExclude(file: string | string[] = []) {\n const excludes = this.lint.markdownFilesExclude ?? [];\n this.lint.markdownFilesExclude = excludes.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to exclude from linting with prettier.\n *\n * @param file -\n * The globs to exclude from linting with prettier.\n *\n * @returns\n * This object.\n */\n public prettyExclude(file: string | string[] = []) {\n const excludes = this.lint.prettyFilesExclude ?? [];\n this.lint.prettyFilesExclude = excludes.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to exclude from linting with cspell.\n *\n * @param file -\n * The globs to exclude from linting with cspell.\n *\n * @returns\n * This object.\n */\n public spellingExclude(file: string | string[] = []) {\n const excludes = this.lint.spellingFilesExclude ?? [];\n this.lint.spellingFilesExclude = excludes.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to exclude from linting with stylelint.\n *\n * @param file -\n * The globs to exclude from linting with stylelint.\n *\n * @returns\n * This object.\n */\n public styleExclude(file: string | string[] = []) {\n const excludes = this.lint.styleFilesExclude ?? [];\n this.lint.styleFilesExclude = excludes.concat(file);\n return this;\n }\n\n /**\n * Adds a single file glob to the list of files to exclude from linting with yaml.\n *\n * @param file -\n * The file glob to exclude from linting with yaml.\n *\n * @returns\n * This object.\n */\n public yamlExclude(file: string | string[] = []) {\n const excludes = this.lint.yamlFilesExclude ?? [];\n this.lint.yamlFilesExclude = excludes.concat(file);\n return this;\n }\n\n /**\n * Adds a file to all exclusion lists.\n *\n * @param file -\n * The file to exclude from all linting.\n *\n * @returns\n * This object.\n */\n public excludeAll(file: string | string[] = []) {\n return this.htmlExclude(file)\n .jsonExclude(file)\n .markdownExclude(file)\n .prettyExclude(file)\n .spellingExclude(file)\n .styleExclude(file)\n .yamlExclude(file);\n }\n\n /**\n * Generates the spelling files based on the other files that have been set.\n *\n * @returns\n * This object.\n */\n public generateSpellingFiles() {\n return this.spellingFile(this.lint.esFiles)\n .spellingFile(this.lint.htmlFiles)\n .spellingFile(this.lint.jsonFiles)\n .spellingFile(this.lint.markdownFiles)\n .spellingFile(this.lint.styleFiles)\n .spellingFile(this.lint.yamlFiles);\n }\n\n /**\n * Generates the pretty files based on the other files that have been set.\n *\n * @returns\n * This object.\n */\n public generatePrettyFiles() {\n return this.prettyFile(this.lint.esFiles)\n .prettyFile(this.lint.htmlFiles)\n .prettyFile(this.lint.jsonFiles)\n .prettyFile(this.lint.markdownFiles)\n .prettyFile(this.lint.styleFiles)\n .prettyFile(this.lint.yamlFiles);\n }\n\n /**\n * Adds conventional es files.\n *\n * @returns\n * This object\n */\n public commonEsFiles() {\n const extensions = \"js,cjs,mjs,ts,mts,jsx,tsx\";\n\n return this.esFile(`*.{${extensions}}`)\n .esFile(`src/**/*.{${extensions}}`)\n .esFile(`features/**/*.{${extensions}}`)\n .esFile(`packages/**/src/**/*.{${extensions}}`)\n .esFile(`packages/**/features/**/*.{${extensions}}`)\n .esFile(`packages/*/vite.config.{${extensions}}`)\n .esFile(`packages/*/vitest.config.{${extensions}}`)\n .esFile(`.config/*.{${extensions}}`);\n }\n\n /**\n * Adds conventional css files.\n *\n * @returns\n * This object.\n */\n public commonCssFiles() {\n return this.styleFile(`src/**/*.css`)\n .styleFile(`packages/**/*.css`)\n .styleFile(\"styles/**/*.css\");\n }\n\n /**\n * Adds conventional sass files.\n *\n * @returns\n * This object.\n */\n public commonSassFiles() {\n return this.styleFile(`src/**/*.{sass,scss}`)\n .styleFile(`packages/**/src/**/*.{sass,scss}`)\n .styleFile(\"styles/**/*.{sass,scss}\");\n }\n\n /**\n * Adds conventional less files.\n *\n * @returns\n * This object.\n */\n public commonLessFiles() {\n return this.styleFile(`src/**/*.less`)\n .styleFile(\"packages/**/src/**/*.less\")\n .styleFile(\"styles/**/*.less\");\n }\n\n /**\n * Adds conventional less files.\n *\n * @returns\n * This object.\n */\n public commonHtmlFiles() {\n const extensions = \"html,htm\";\n return this.htmlFile(`src/**/*.{${extensions}}`).htmlFile(\n `packages/**/src/**/*.{${extensions}}`,\n );\n }\n\n /**\n * Adds conventional markdown files.\n *\n * @returns\n * This object.\n */\n public commonMarkdownFiles() {\n return this.markdownFile(`*.md`)\n .markdownFile(`src/**/*.md`)\n .markdownFile(`packages/**/*.md`);\n }\n\n /**\n * Add conventional json files.\n *\n * @returns\n * This object.\n */\n public commonJsonFiles() {\n return this.jsonFile(\"*.json\")\n .jsonFile(\"src/**/*.json\")\n .jsonFile(\"packages/**/*.json\")\n .jsonFile(\".config/*.json\");\n }\n\n /**\n * Adds conventional yaml files.\n *\n * @returns\n * This object.\n */\n public commonYamlFiles() {\n const extensions = \"yml,yaml\";\n return this.yamlFile(`*.{${extensions}}`)\n .yamlFile(`src/**/*.{${extensions}}`)\n .yamlFile(`packages/**/*.{${extensions}}`)\n .yamlFile(`.config/*.{${extensions}}`)\n .yamlFile(`.circleci/*.{${extensions}}`);\n }\n\n /**\n * Adds conventional exclude files.\n *\n * @returns\n * This object.\n */\n public commonExcludes() {\n return this.excludeAll(\"**/CHANGELOG.md\")\n .excludeAll(\"**/dist/**\")\n .excludeAll(\"**/node_modules/**\")\n .excludeAll(\"package-lock.json\")\n .excludeAll(\"lerna.json\")\n .excludeAll(\"**/cspell.json\");\n }\n\n /**\n * Returns the built linting options object.\n *\n * @returns\n * A clone of the current linting options object.\n */\n public build() {\n return structuredClone(this.lint);\n }\n}\n","import type { IZJanitorOptionsLint } from \"./janitor-options-lint.mjs\";\n\n/**\n * Options for the zthunworks janitor system.\n */\nexport interface IZJanitorOptions {\n /**\n * Linting options for janitor-lint.\n */\n lint?: IZJanitorOptionsLint;\n}\n\n/**\n * A builder for creating janitor options.\n */\nexport class ZJanitorOptionsBuilder {\n private options: IZJanitorOptions = {};\n\n /**\n * Sets the linting options for the janitor system.\n *\n * @param lint -\n * The linting options to set.\n *\n * @returns\n * This object.\n */\n public lint(lint: IZJanitorOptionsLint): ZJanitorOptionsBuilder {\n this.options.lint = lint;\n return this;\n }\n\n /**\n * Builds the options object.\n *\n * @returns\n * A clone of the current options object.\n */\n public build(): IZJanitorOptions {\n return structuredClone(this.options);\n }\n}\n"],"names":["_define_property","ZJanitorOptionsLintBuilder","esConfig","lint","htmlConfig","markdownConfig","prettyConfig","spellingConfig","styleConfig","esFile","file","files","esFiles","concat","htmlFile","htmlFiles","jsonFile","jsonFiles","markdownFile","markdownFiles","prettyFile","prettyFiles","spellingFile","spellingFiles","styleFile","styleFiles","yamlFile","yamlFiles","htmlExclude","excludes","htmlFilesExclude","jsonExclude","jsonFilesExclude","markdownExclude","markdownFilesExclude","prettyExclude","prettyFilesExclude","spellingExclude","spellingFilesExclude","styleExclude","styleFilesExclude","yamlExclude","yamlFilesExclude","excludeAll","extensions","structuredClone","ZJanitorOptionsBuilder","options"],"mappings":";;;;AAAA;;AAEC,IAAA,SAAAA,kBAAA,CAAA,GAAA,EAAA,GAAA,EAAA,KAAA,EAAA;;;;;;;;;;;;;AA0FD;;AAEC,IACM,MAAMC,0BAAAA,CAAAA;AAGX;;;;;;;;MASOC,QAASA,CAAAA,QAAgB,EAA8B;AAC5D,QAAA,IAAI,CAACC,IAAI,CAACD,QAAQ,GAAGA,QAAAA;AACrB,QAAA,OAAO,IAAI;AACb;AAEA;;;;;;;;MASOE,UAAWA,CAAAA,UAAkB,EAA8B;AAChE,QAAA,IAAI,CAACD,IAAI,CAACC,UAAU,GAAGA,UAAAA;AACvB,QAAA,OAAO,IAAI;AACb;AAEA;;;;;;;;MASOC,cAAeA,CAAAA,cAAsB,EAA8B;AACxE,QAAA,IAAI,CAACF,IAAI,CAACE,cAAc,GAAGA,cAAAA;AAC3B,QAAA,OAAO,IAAI;AACb;AAEA;;;;;;;;MASOC,YAAaA,CAAAA,YAAoB,EAA8B;AACpE,QAAA,IAAI,CAACH,IAAI,CAACG,YAAY,GAAGA,YAAAA;AACzB,QAAA,OAAO,IAAI;AACb;AAEA;;;;;;;;MASOC,cAAeA,CAAAA,cAAsB,EAA8B;AACxE,QAAA,IAAI,CAACJ,IAAI,CAACI,cAAc,GAAGA,cAAAA;AAC3B,QAAA,OAAO,IAAI;AACb;AAEA;;;;;;;;MASOC,WAAYA,CAAAA,WAAmB,EAA8B;AAClE,QAAA,IAAI,CAACL,IAAI,CAACK,WAAW,GAAGA,WAAAA;AACxB,QAAA,OAAO,IAAI;AACb;AAEA;;;;;;;;AAQC,MACD,MAAOC,CAAOC,IAA0B,GAAA,EAAE,EAAE;AAC5B,QAAA,IAAA,kBAAA;QAAd,MAAMC,KAAAA,GAAQ,CAAA,kBAAA,GAAA,IAAI,CAACR,IAAI,CAACS,OAAO,MAAA,IAAA,IAAjB,kBA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tB,QAAA,OAAO,IAAI,CAACD,UAAU,CAAC,iBACpBA,CAAAA,CAAAA,UAAU,CAAC,YACXA,CAAAA,CAAAA,UAAU,CAAC,oBAAA,CAAA,CACXA,UAAU,CAAC,mBAAA,CAAA,CACXA,UAAU,CAAC,YAAA,CAAA,CACXA,UAAU,CAAC,gBAAA,CAAA;AAChB;AAEA;;;;;AAKC,MACD,KAAe,GAAA;QACb,OAAOE,eAAAA,CAAgB,IAAI,CAAC1C,IAAI,CAAA;AAClC;;AA3eA,QAAAH,kBAAA,CAAA,IAAA,EAAQG,QAA6B,EAAC,CAAA;;AA4exC;;;;;;;;;;;;;;;AChkBA;;AAEC,IACM,MAAM2C,sBAAAA,CAAAA;AAGX;;;;;;;;MASO3C,IAAKA,CAAAA,IAA0B,EAA0B;AAC9D,QAAA,IAAI,CAAC4C,OAAO,CAAC5C,IAAI,GAAGA,IAAAA;AACpB,QAAA,OAAO,IAAI;AACb;AAEA;;;;;AAKC,MACD,KAAiC,GAAA;QAC/B,OAAO0C,eAAAA,CAAgB,IAAI,CAACE,OAAO,CAAA;AACrC;;AAxBA,QAAA,gBAAA,CAAA,IAAA,EAAQA,WAA4B,EAAC,CAAA;;AAyBvC;;;;;"}
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../src/options/janitor-options-lint.mts","../src/options/janitor-options.mts"],"sourcesContent":["/**\n * Represents options for linting in the zthunworks janitor system.\n */\nexport interface IZJanitorOptionsLint {\n /**\n * The path to the config file for eslint.\n */\n esConfig?: string;\n /**\n * The path to the config file for htmlhint.\n */\n htmlConfig?: string;\n /**\n * The path to the config file for markdownlint.\n */\n markdownConfig?: string;\n /**\n * The path to the config file for prettier.\n */\n prettyConfig?: string;\n /**\n * The path to the config file for cspell.\n */\n spellingConfig?: string;\n /**\n * The path to the config file for stylelint.\n */\n styleConfig?: string;\n\n /**\n * The file globs to lint with eslint.\n */\n esFiles?: string[];\n /**\n * The file globs to lint with htmlhint.\n */\n htmlFiles?: string[];\n /**\n * The file globs to lint with json.\n */\n jsonFiles?: string[];\n /**\n * The file globs to lint with markdownlint.\n */\n markdownFiles?: string[];\n /**\n * The file globs to lint with prettier.\n */\n prettyFiles?: string[];\n /**\n * The file globs to lint with cspell.\n */\n spellingFiles?: string[];\n /**\n * The file globs to lint with stylelint.\n */\n styleFiles?: string[];\n /**\n * The file globs to lint with yaml.\n */\n yamlFiles?: string[];\n\n /**\n * The files globs to exclude from linting with htmlhint.\n */\n htmlFilesExclude?: string[];\n /**\n * The files globs to exclude from linting with json.\n */\n jsonFilesExclude?: string[];\n /**\n * The files globs to exclude from linting with markdownlint.\n */\n markdownFilesExclude?: string[];\n /**\n * The files globs to exclude from linting with prettier.\n */\n prettyFilesExclude?: string[];\n /**\n * The files globs to exclude from linting with cspell.\n */\n spellingFilesExclude?: string[];\n /**\n * The files to exclude from linting with stylelint.\n */\n styleFilesExclude?: string[];\n /**\n * The files globs to exclude from linting with yaml.\n */\n yamlFilesExclude?: string[];\n}\n\n/**\n * A builder for creating linting options for the zthunworks janitor system.\n */\nexport class ZJanitorOptionsLintBuilder {\n private lint: IZJanitorOptionsLint = {};\n\n /**\n * Sets the path to the config file for eslint.\n *\n * @param esConfig -\n * The path to the config file for eslint.\n *\n * @returns\n * This object.\n */\n public esConfig(esConfig: string): ZJanitorOptionsLintBuilder {\n this.lint.esConfig = esConfig;\n return this;\n }\n\n /**\n * Sets the path to the config file for htmlhint.\n *\n * @param htmlConfig -\n * The path to the config file for htmlhint.\n *\n * @returns\n * This object.\n */\n public htmlConfig(htmlConfig: string): ZJanitorOptionsLintBuilder {\n this.lint.htmlConfig = htmlConfig;\n return this;\n }\n\n /**\n * Sets the path to the config file for markdownlint.\n *\n * @param markdownConfig -\n * The path to the config file for markdownlint.\n *\n * @returns\n * This object.\n */\n public markdownConfig(markdownConfig: string): ZJanitorOptionsLintBuilder {\n this.lint.markdownConfig = markdownConfig;\n return this;\n }\n\n /**\n * Sets the path to the config file for prettier.\n *\n * @param prettyConfig -\n * The path to the config file for prettier.\n *\n * @returns\n * This object.\n */\n public prettyConfig(prettyConfig: string): ZJanitorOptionsLintBuilder {\n this.lint.prettyConfig = prettyConfig;\n return this;\n }\n\n /**\n * Sets the path to the config file for cspell.\n *\n * @param spellingConfig -\n * The path to the config file for cspell.\n *\n * @returns\n * This object.\n */\n public spellingConfig(spellingConfig: string): ZJanitorOptionsLintBuilder {\n this.lint.spellingConfig = spellingConfig;\n return this;\n }\n\n /**\n * Sets the path to the config file for stylelint.\n *\n * @param styleConfig -\n * The path to the config file for stylelint.\n *\n * @returns\n * This object.\n */\n public styleConfig(styleConfig: string): ZJanitorOptionsLintBuilder {\n this.lint.styleConfig = styleConfig;\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with eslint.\n *\n * @param file -\n * The file globs to lint with eslint.\n *\n * @returns\n * This object.\n */\n public esFile(file: string | string[] = []) {\n const files = this.lint.esFiles ?? [];\n this.lint.esFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with htmlhint.\n *\n * @param file -\n * The file globs to lint with htmlhint.\n *\n * @returns\n * This object.\n */\n public htmlFile(file: string | string[] = []) {\n const files = this.lint.htmlFiles ?? [];\n this.lint.htmlFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with json.\n *\n * @param file -\n * The file globs to lint with json.\n *\n * @returns\n * This object.\n */\n public jsonFile(file: string | string[] = []) {\n const files = this.lint.jsonFiles ?? [];\n this.lint.jsonFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with markdownlint.\n *\n * @param file -\n * The globs to lint with markdownlint.\n *\n * @returns\n * This object.\n */\n public markdownFile(file: string | string[] = []) {\n const files = this.lint.markdownFiles ?? [];\n this.lint.markdownFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with prettier.\n *\n * @param file -\n * The globs to lint with prettier.\n *\n * @returns\n * This object.\n */\n public prettyFile(file: string | string[] = []) {\n const files = this.lint.prettyFiles ?? [];\n this.lint.prettyFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with cspell.\n *\n * @param file -\n * The file globs to lint with cspell.\n *\n * @returns\n * This object.\n */\n public spellingFile(file: string | string[] = []) {\n const files = this.lint.spellingFiles ?? [];\n this.lint.spellingFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with stylelint.\n *\n * @param file -\n * The file globs to lint with stylelint.\n *\n * @returns\n * This object.\n */\n public styleFile(file: string | string[] = []) {\n const files = this.lint.styleFiles ?? [];\n this.lint.styleFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with yaml.\n *\n * @param file -\n * The file globs to lint with yaml.\n *\n * @returns\n * This object.\n */\n public yamlFile(file: string | string[] = []) {\n const files = this.lint.yamlFiles ?? [];\n this.lint.yamlFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to exclude from linting with htmlhint.\n *\n * @param files -\n * The file globs to exclude from linting with htmlhint.\n *\n * @returns\n * This object.\n */\n public htmlExclude(files: string | string[] = []) {\n const excludes = this.lint.htmlFilesExclude ?? [];\n this.lint.htmlFilesExclude = excludes.concat(files);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to exclude from linting with json.\n *\n * @param file -\n * The globs to exclude from linting with json.\n *\n * @returns\n * This object.\n */\n public jsonExclude(file: string | string[] = []) {\n const excludes = this.lint.jsonFilesExclude ?? [];\n this.lint.jsonFilesExclude = excludes.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to exclude from linting with markdownlint.\n *\n * @param file -\n * The globs to exclude from linting with markdownlint.\n *\n * @returns\n * This object.\n */\n public markdownExclude(file: string | string[] = []) {\n const excludes = this.lint.markdownFilesExclude ?? [];\n this.lint.markdownFilesExclude = excludes.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to exclude from linting with prettier.\n *\n * @param file -\n * The globs to exclude from linting with prettier.\n *\n * @returns\n * This object.\n */\n public prettyExclude(file: string | string[] = []) {\n const excludes = this.lint.prettyFilesExclude ?? [];\n this.lint.prettyFilesExclude = excludes.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to exclude from linting with cspell.\n *\n * @param file -\n * The globs to exclude from linting with cspell.\n *\n * @returns\n * This object.\n */\n public spellingExclude(file: string | string[] = []) {\n const excludes = this.lint.spellingFilesExclude ?? [];\n this.lint.spellingFilesExclude = excludes.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to exclude from linting with stylelint.\n *\n * @param file -\n * The globs to exclude from linting with stylelint.\n *\n * @returns\n * This object.\n */\n public styleExclude(file: string | string[] = []) {\n const excludes = this.lint.styleFilesExclude ?? [];\n this.lint.styleFilesExclude = excludes.concat(file);\n return this;\n }\n\n /**\n * Adds a single file glob to the list of files to exclude from linting with yaml.\n *\n * @param file -\n * The file glob to exclude from linting with yaml.\n *\n * @returns\n * This object.\n */\n public yamlExclude(file: string | string[] = []) {\n const excludes = this.lint.yamlFilesExclude ?? [];\n this.lint.yamlFilesExclude = excludes.concat(file);\n return this;\n }\n\n /**\n * Adds a file to all exclusion lists.\n *\n * @param file -\n * The file to exclude from all linting.\n *\n * @returns\n * This object.\n */\n public excludeAll(file: string | string[] = []) {\n return this.htmlExclude(file)\n .jsonExclude(file)\n .markdownExclude(file)\n .prettyExclude(file)\n .spellingExclude(file)\n .styleExclude(file)\n .yamlExclude(file);\n }\n\n /**\n * Generates the spelling files based on the other files that have been set.\n *\n * @returns\n * This object.\n */\n public generateSpellingFiles() {\n return this.spellingFile(this.lint.esFiles)\n .spellingFile(this.lint.htmlFiles)\n .spellingFile(this.lint.jsonFiles)\n .spellingFile(this.lint.markdownFiles)\n .spellingFile(this.lint.styleFiles)\n .spellingFile(this.lint.yamlFiles);\n }\n\n /**\n * Generates the pretty files based on the other files that have been set.\n *\n * @returns\n * This object.\n */\n public generatePrettyFiles() {\n return this.prettyFile(this.lint.esFiles)\n .prettyFile(this.lint.htmlFiles)\n .prettyFile(this.lint.jsonFiles)\n .prettyFile(this.lint.markdownFiles)\n .prettyFile(this.lint.styleFiles)\n .prettyFile(this.lint.yamlFiles);\n }\n\n /**\n * Adds conventional es files.\n *\n * @returns\n * This object\n */\n public commonEsFiles() {\n const extensions = \"js,cjs,mjs,ts,mts,jsx,tsx\";\n\n return this.esFile(`*.{${extensions}}`)\n .esFile(`src/**/*.{${extensions}}`)\n .esFile(`features/**/*.{${extensions}}`)\n .esFile(`packages/**/src/**/*.{${extensions}}`)\n .esFile(`packages/**/features/**/*.{${extensions}}`)\n .esFile(`packages/*/vite.config.{${extensions}}`)\n .esFile(`packages/*/vitest.config.{${extensions}}`)\n .esFile(`.config/*.{${extensions}}`);\n }\n\n /**\n * Adds conventional css files.\n *\n * @returns\n * This object.\n */\n public commonCssFiles() {\n return this.styleFile(`src/**/*.css`)\n .styleFile(`packages/**/*.css`)\n .styleFile(\"styles/**/*.css\");\n }\n\n /**\n * Adds conventional sass files.\n *\n * @returns\n * This object.\n */\n public commonSassFiles() {\n return this.styleFile(`src/**/*.{sass,scss}`)\n .styleFile(`packages/**/src/**/*.{sass,scss}`)\n .styleFile(\"styles/**/*.{sass,scss}\");\n }\n\n /**\n * Adds conventional less files.\n *\n * @returns\n * This object.\n */\n public commonLessFiles() {\n return this.styleFile(`src/**/*.less`)\n .styleFile(\"packages/**/src/**/*.less\")\n .styleFile(\"styles/**/*.less\");\n }\n\n /**\n * Adds conventional less files.\n *\n * @returns\n * This object.\n */\n public commonHtmlFiles() {\n const extensions = \"html,htm\";\n return this.htmlFile(`src/**/*.{${extensions}}`)\n .htmlFile(`packages/**/src/**/*.{${extensions}}`)\n .htmlFile(`src/*.{${extensions}}`)\n .htmlFile(`packages/*/*.{${extensions}}`);\n }\n\n /**\n * Adds conventional markdown files.\n *\n * @returns\n * This object.\n */\n public commonMarkdownFiles() {\n return this.markdownFile(`*.md`)\n .markdownFile(`src/**/*.md`)\n .markdownFile(`packages/**/*.md`);\n }\n\n /**\n * Add conventional json files.\n *\n * @returns\n * This object.\n */\n public commonJsonFiles() {\n return this.jsonFile(\"*.json\")\n .jsonFile(\"src/**/*.json\")\n .jsonFile(\"packages/**/*.json\")\n .jsonFile(\".config/*.json\");\n }\n\n /**\n * Adds conventional yaml files.\n *\n * @returns\n * This object.\n */\n public commonYamlFiles() {\n const extensions = \"yml,yaml\";\n return this.yamlFile(`*.{${extensions}}`)\n .yamlFile(`src/**/*.{${extensions}}`)\n .yamlFile(`packages/**/*.{${extensions}}`)\n .yamlFile(`.config/*.{${extensions}}`)\n .yamlFile(`.circleci/*.{${extensions}}`);\n }\n\n /**\n * Adds conventional exclude files.\n *\n * @returns\n * This object.\n */\n public commonExcludes() {\n return this.excludeAll(\"**/CHANGELOG.md\")\n .excludeAll(\"**/dist/**\")\n .excludeAll(\"**/node_modules/**\")\n .excludeAll(\"package-lock.json\")\n .excludeAll(\"lerna.json\")\n .excludeAll(\"**/cspell.json\");\n }\n\n /**\n * Returns the built linting options object.\n *\n * @returns\n * A clone of the current linting options object.\n */\n public build() {\n return structuredClone(this.lint);\n }\n}\n","import type { IZJanitorOptionsLint } from \"./janitor-options-lint.mjs\";\n\n/**\n * Options for the zthunworks janitor system.\n */\nexport interface IZJanitorOptions {\n /**\n * Linting options for janitor-lint.\n */\n lint?: IZJanitorOptionsLint;\n}\n\n/**\n * A builder for creating janitor options.\n */\nexport class ZJanitorOptionsBuilder {\n private options: IZJanitorOptions = {};\n\n /**\n * Sets the linting options for the janitor system.\n *\n * @param lint -\n * The linting options to set.\n *\n * @returns\n * This object.\n */\n public lint(lint: IZJanitorOptionsLint): ZJanitorOptionsBuilder {\n this.options.lint = lint;\n return this;\n }\n\n /**\n * Builds the options object.\n *\n * @returns\n * A clone of the current options object.\n */\n public build(): IZJanitorOptions {\n return structuredClone(this.options);\n }\n}\n"],"names":["_define_property","ZJanitorOptionsLintBuilder","esConfig","lint","htmlConfig","markdownConfig","prettyConfig","spellingConfig","styleConfig","esFile","file","files","esFiles","concat","htmlFile","htmlFiles","jsonFile","jsonFiles","markdownFile","markdownFiles","prettyFile","prettyFiles","spellingFile","spellingFiles","styleFile","styleFiles","yamlFile","yamlFiles","htmlExclude","excludes","htmlFilesExclude","jsonExclude","jsonFilesExclude","markdownExclude","markdownFilesExclude","prettyExclude","prettyFilesExclude","spellingExclude","spellingFilesExclude","styleExclude","styleFilesExclude","yamlExclude","yamlFilesExclude","excludeAll","extensions","structuredClone","ZJanitorOptionsBuilder","options"],"mappings":";;;;AAAA;;AAEC,IAAA,SAAAA,kBAAA,CAAA,GAAA,EAAA,GAAA,EAAA,KAAA,EAAA;;;;;;;;;;;;;AA0FD;;AAEC,IACM,MAAMC,0BAAAA,CAAAA;AAGX;;;;;;;;MASOC,QAASA,CAAAA,QAAgB,EAA8B;AAC5D,QAAA,IAAI,CAACC,IAAI,CAACD,QAAQ,GAAGA,QAAAA;AACrB,QAAA,OAAO,IAAI;AACb;AAEA;;;;;;;;MASOE,UAAWA,CAAAA,UAAkB,EAA8B;AAChE,QAAA,IAAI,CAACD,IAAI,CAACC,UAAU,GAAGA,UAAAA;AACvB,QAAA,OAAO,IAAI;AACb;AAEA;;;;;;;;MASOC,cAAeA,CAAAA,cAAsB,EAA8B;AACxE,QAAA,IAAI,CAACF,IAAI,CAACE,cAAc,GAAGA,cAAAA;AAC3B,QAAA,OAAO,IAAI;AACb;AAEA;;;;;;;;MASOC,YAAaA,CAAAA,YAAoB,EAA8B;AACpE,QAAA,IAAI,CAACH,IAAI,CAACG,YAAY,GAAGA,YAAAA;AACzB,QAAA,OAAO,IAAI;AACb;AAEA;;;;;;;;MASOC,cAAeA,CAAAA,cAAsB,EAA8B;AACxE,QAAA,IAAI,CAACJ,IAAI,CAACI,cAAc,GAAGA,cAAAA;AAC3B,QAAA,OAAO,IAAI;AACb;AAEA;;;;;;;;MASOC,WAAYA,CAAAA,WAAmB,EAA8B;AAClE,QAAA,IAAI,CAACL,IAAI,CAACK,WAAW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
|
const extensions = "html,htm";
|
|
368
|
-
return this.htmlFile(`src/**/*.{${extensions}}`).htmlFile(`packages/**/src/**/*.{${extensions}}`);
|
|
368
|
+
return this.htmlFile(`src/**/*.{${extensions}}`).htmlFile(`packages/**/src/**/*.{${extensions}}`).htmlFile(`src/*.{${extensions}}`).htmlFile(`packages/*/*.{${extensions}}`);
|
|
369
369
|
}
|
|
370
370
|
/**
|
|
371
371
|
* Adds conventional markdown files.
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/options/janitor-options-lint.mts","../src/options/janitor-options.mts"],"sourcesContent":["/**\n * Represents options for linting in the zthunworks janitor system.\n */\nexport interface IZJanitorOptionsLint {\n /**\n * The path to the config file for eslint.\n */\n esConfig?: string;\n /**\n * The path to the config file for htmlhint.\n */\n htmlConfig?: string;\n /**\n * The path to the config file for markdownlint.\n */\n markdownConfig?: string;\n /**\n * The path to the config file for prettier.\n */\n prettyConfig?: string;\n /**\n * The path to the config file for cspell.\n */\n spellingConfig?: string;\n /**\n * The path to the config file for stylelint.\n */\n styleConfig?: string;\n\n /**\n * The file globs to lint with eslint.\n */\n esFiles?: string[];\n /**\n * The file globs to lint with htmlhint.\n */\n htmlFiles?: string[];\n /**\n * The file globs to lint with json.\n */\n jsonFiles?: string[];\n /**\n * The file globs to lint with markdownlint.\n */\n markdownFiles?: string[];\n /**\n * The file globs to lint with prettier.\n */\n prettyFiles?: string[];\n /**\n * The file globs to lint with cspell.\n */\n spellingFiles?: string[];\n /**\n * The file globs to lint with stylelint.\n */\n styleFiles?: string[];\n /**\n * The file globs to lint with yaml.\n */\n yamlFiles?: string[];\n\n /**\n * The files globs to exclude from linting with htmlhint.\n */\n htmlFilesExclude?: string[];\n /**\n * The files globs to exclude from linting with json.\n */\n jsonFilesExclude?: string[];\n /**\n * The files globs to exclude from linting with markdownlint.\n */\n markdownFilesExclude?: string[];\n /**\n * The files globs to exclude from linting with prettier.\n */\n prettyFilesExclude?: string[];\n /**\n * The files globs to exclude from linting with cspell.\n */\n spellingFilesExclude?: string[];\n /**\n * The files to exclude from linting with stylelint.\n */\n styleFilesExclude?: string[];\n /**\n * The files globs to exclude from linting with yaml.\n */\n yamlFilesExclude?: string[];\n}\n\n/**\n * A builder for creating linting options for the zthunworks janitor system.\n */\nexport class ZJanitorOptionsLintBuilder {\n private lint: IZJanitorOptionsLint = {};\n\n /**\n * Sets the path to the config file for eslint.\n *\n * @param esConfig -\n * The path to the config file for eslint.\n *\n * @returns\n * This object.\n */\n public esConfig(esConfig: string): ZJanitorOptionsLintBuilder {\n this.lint.esConfig = esConfig;\n return this;\n }\n\n /**\n * Sets the path to the config file for htmlhint.\n *\n * @param htmlConfig -\n * The path to the config file for htmlhint.\n *\n * @returns\n * This object.\n */\n public htmlConfig(htmlConfig: string): ZJanitorOptionsLintBuilder {\n this.lint.htmlConfig = htmlConfig;\n return this;\n }\n\n /**\n * Sets the path to the config file for markdownlint.\n *\n * @param markdownConfig -\n * The path to the config file for markdownlint.\n *\n * @returns\n * This object.\n */\n public markdownConfig(markdownConfig: string): ZJanitorOptionsLintBuilder {\n this.lint.markdownConfig = markdownConfig;\n return this;\n }\n\n /**\n * Sets the path to the config file for prettier.\n *\n * @param prettyConfig -\n * The path to the config file for prettier.\n *\n * @returns\n * This object.\n */\n public prettyConfig(prettyConfig: string): ZJanitorOptionsLintBuilder {\n this.lint.prettyConfig = prettyConfig;\n return this;\n }\n\n /**\n * Sets the path to the config file for cspell.\n *\n * @param spellingConfig -\n * The path to the config file for cspell.\n *\n * @returns\n * This object.\n */\n public spellingConfig(spellingConfig: string): ZJanitorOptionsLintBuilder {\n this.lint.spellingConfig = spellingConfig;\n return this;\n }\n\n /**\n * Sets the path to the config file for stylelint.\n *\n * @param styleConfig -\n * The path to the config file for stylelint.\n *\n * @returns\n * This object.\n */\n public styleConfig(styleConfig: string): ZJanitorOptionsLintBuilder {\n this.lint.styleConfig = styleConfig;\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with eslint.\n *\n * @param file -\n * The file globs to lint with eslint.\n *\n * @returns\n * This object.\n */\n public esFile(file: string | string[] = []) {\n const files = this.lint.esFiles ?? [];\n this.lint.esFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with htmlhint.\n *\n * @param file -\n * The file globs to lint with htmlhint.\n *\n * @returns\n * This object.\n */\n public htmlFile(file: string | string[] = []) {\n const files = this.lint.htmlFiles ?? [];\n this.lint.htmlFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with json.\n *\n * @param file -\n * The file globs to lint with json.\n *\n * @returns\n * This object.\n */\n public jsonFile(file: string | string[] = []) {\n const files = this.lint.jsonFiles ?? [];\n this.lint.jsonFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with markdownlint.\n *\n * @param file -\n * The globs to lint with markdownlint.\n *\n * @returns\n * This object.\n */\n public markdownFile(file: string | string[] = []) {\n const files = this.lint.markdownFiles ?? [];\n this.lint.markdownFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with prettier.\n *\n * @param file -\n * The globs to lint with prettier.\n *\n * @returns\n * This object.\n */\n public prettyFile(file: string | string[] = []) {\n const files = this.lint.prettyFiles ?? [];\n this.lint.prettyFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with cspell.\n *\n * @param file -\n * The file globs to lint with cspell.\n *\n * @returns\n * This object.\n */\n public spellingFile(file: string | string[] = []) {\n const files = this.lint.spellingFiles ?? [];\n this.lint.spellingFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with stylelint.\n *\n * @param file -\n * The file globs to lint with stylelint.\n *\n * @returns\n * This object.\n */\n public styleFile(file: string | string[] = []) {\n const files = this.lint.styleFiles ?? [];\n this.lint.styleFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with yaml.\n *\n * @param file -\n * The file globs to lint with yaml.\n *\n * @returns\n * This object.\n */\n public yamlFile(file: string | string[] = []) {\n const files = this.lint.yamlFiles ?? [];\n this.lint.yamlFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to exclude from linting with htmlhint.\n *\n * @param files -\n * The file globs to exclude from linting with htmlhint.\n *\n * @returns\n * This object.\n */\n public htmlExclude(files: string | string[] = []) {\n const excludes = this.lint.htmlFilesExclude ?? [];\n this.lint.htmlFilesExclude = excludes.concat(files);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to exclude from linting with json.\n *\n * @param file -\n * The globs to exclude from linting with json.\n *\n * @returns\n * This object.\n */\n public jsonExclude(file: string | string[] = []) {\n const excludes = this.lint.jsonFilesExclude ?? [];\n this.lint.jsonFilesExclude = excludes.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to exclude from linting with markdownlint.\n *\n * @param file -\n * The globs to exclude from linting with markdownlint.\n *\n * @returns\n * This object.\n */\n public markdownExclude(file: string | string[] = []) {\n const excludes = this.lint.markdownFilesExclude ?? [];\n this.lint.markdownFilesExclude = excludes.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to exclude from linting with prettier.\n *\n * @param file -\n * The globs to exclude from linting with prettier.\n *\n * @returns\n * This object.\n */\n public prettyExclude(file: string | string[] = []) {\n const excludes = this.lint.prettyFilesExclude ?? [];\n this.lint.prettyFilesExclude = excludes.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to exclude from linting with cspell.\n *\n * @param file -\n * The globs to exclude from linting with cspell.\n *\n * @returns\n * This object.\n */\n public spellingExclude(file: string | string[] = []) {\n const excludes = this.lint.spellingFilesExclude ?? [];\n this.lint.spellingFilesExclude = excludes.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to exclude from linting with stylelint.\n *\n * @param file -\n * The globs to exclude from linting with stylelint.\n *\n * @returns\n * This object.\n */\n public styleExclude(file: string | string[] = []) {\n const excludes = this.lint.styleFilesExclude ?? [];\n this.lint.styleFilesExclude = excludes.concat(file);\n return this;\n }\n\n /**\n * Adds a single file glob to the list of files to exclude from linting with yaml.\n *\n * @param file -\n * The file glob to exclude from linting with yaml.\n *\n * @returns\n * This object.\n */\n public yamlExclude(file: string | string[] = []) {\n const excludes = this.lint.yamlFilesExclude ?? [];\n this.lint.yamlFilesExclude = excludes.concat(file);\n return this;\n }\n\n /**\n * Adds a file to all exclusion lists.\n *\n * @param file -\n * The file to exclude from all linting.\n *\n * @returns\n * This object.\n */\n public excludeAll(file: string | string[] = []) {\n return this.htmlExclude(file)\n .jsonExclude(file)\n .markdownExclude(file)\n .prettyExclude(file)\n .spellingExclude(file)\n .styleExclude(file)\n .yamlExclude(file);\n }\n\n /**\n * Generates the spelling files based on the other files that have been set.\n *\n * @returns\n * This object.\n */\n public generateSpellingFiles() {\n return this.spellingFile(this.lint.esFiles)\n .spellingFile(this.lint.htmlFiles)\n .spellingFile(this.lint.jsonFiles)\n .spellingFile(this.lint.markdownFiles)\n .spellingFile(this.lint.styleFiles)\n .spellingFile(this.lint.yamlFiles);\n }\n\n /**\n * Generates the pretty files based on the other files that have been set.\n *\n * @returns\n * This object.\n */\n public generatePrettyFiles() {\n return this.prettyFile(this.lint.esFiles)\n .prettyFile(this.lint.htmlFiles)\n .prettyFile(this.lint.jsonFiles)\n .prettyFile(this.lint.markdownFiles)\n .prettyFile(this.lint.styleFiles)\n .prettyFile(this.lint.yamlFiles);\n }\n\n /**\n * Adds conventional es files.\n *\n * @returns\n * This object\n */\n public commonEsFiles() {\n const extensions = \"js,cjs,mjs,ts,mts,jsx,tsx\";\n\n return this.esFile(`*.{${extensions}}`)\n .esFile(`src/**/*.{${extensions}}`)\n .esFile(`features/**/*.{${extensions}}`)\n .esFile(`packages/**/src/**/*.{${extensions}}`)\n .esFile(`packages/**/features/**/*.{${extensions}}`)\n .esFile(`packages/*/vite.config.{${extensions}}`)\n .esFile(`packages/*/vitest.config.{${extensions}}`)\n .esFile(`.config/*.{${extensions}}`);\n }\n\n /**\n * Adds conventional css files.\n *\n * @returns\n * This object.\n */\n public commonCssFiles() {\n return this.styleFile(`src/**/*.css`)\n .styleFile(`packages/**/*.css`)\n .styleFile(\"styles/**/*.css\");\n }\n\n /**\n * Adds conventional sass files.\n *\n * @returns\n * This object.\n */\n public commonSassFiles() {\n return this.styleFile(`src/**/*.{sass,scss}`)\n .styleFile(`packages/**/src/**/*.{sass,scss}`)\n .styleFile(\"styles/**/*.{sass,scss}\");\n }\n\n /**\n * Adds conventional less files.\n *\n * @returns\n * This object.\n */\n public commonLessFiles() {\n return this.styleFile(`src/**/*.less`)\n .styleFile(\"packages/**/src/**/*.less\")\n .styleFile(\"styles/**/*.less\");\n }\n\n /**\n * Adds conventional less files.\n *\n * @returns\n * This object.\n */\n public commonHtmlFiles() {\n const extensions = \"html,htm\";\n return this.htmlFile(`src/**/*.{${extensions}}`).htmlFile(\n `packages/**/src/**/*.{${extensions}}`,\n );\n }\n\n /**\n * Adds conventional markdown files.\n *\n * @returns\n * This object.\n */\n public commonMarkdownFiles() {\n return this.markdownFile(`*.md`)\n .markdownFile(`src/**/*.md`)\n .markdownFile(`packages/**/*.md`);\n }\n\n /**\n * Add conventional json files.\n *\n * @returns\n * This object.\n */\n public commonJsonFiles() {\n return this.jsonFile(\"*.json\")\n .jsonFile(\"src/**/*.json\")\n .jsonFile(\"packages/**/*.json\")\n .jsonFile(\".config/*.json\");\n }\n\n /**\n * Adds conventional yaml files.\n *\n * @returns\n * This object.\n */\n public commonYamlFiles() {\n const extensions = \"yml,yaml\";\n return this.yamlFile(`*.{${extensions}}`)\n .yamlFile(`src/**/*.{${extensions}}`)\n .yamlFile(`packages/**/*.{${extensions}}`)\n .yamlFile(`.config/*.{${extensions}}`)\n .yamlFile(`.circleci/*.{${extensions}}`);\n }\n\n /**\n * Adds conventional exclude files.\n *\n * @returns\n * This object.\n */\n public commonExcludes() {\n return this.excludeAll(\"**/CHANGELOG.md\")\n .excludeAll(\"**/dist/**\")\n .excludeAll(\"**/node_modules/**\")\n .excludeAll(\"package-lock.json\")\n .excludeAll(\"lerna.json\")\n .excludeAll(\"**/cspell.json\");\n }\n\n /**\n * Returns the built linting options object.\n *\n * @returns\n * A clone of the current linting options object.\n */\n public build() {\n return structuredClone(this.lint);\n }\n}\n","import type { IZJanitorOptionsLint } from \"./janitor-options-lint.mjs\";\n\n/**\n * Options for the zthunworks janitor system.\n */\nexport interface IZJanitorOptions {\n /**\n * Linting options for janitor-lint.\n */\n lint?: IZJanitorOptionsLint;\n}\n\n/**\n * A builder for creating janitor options.\n */\nexport class ZJanitorOptionsBuilder {\n private options: IZJanitorOptions = {};\n\n /**\n * Sets the linting options for the janitor system.\n *\n * @param lint -\n * The linting options to set.\n *\n * @returns\n * This object.\n */\n public lint(lint: IZJanitorOptionsLint): ZJanitorOptionsBuilder {\n this.options.lint = lint;\n return this;\n }\n\n /**\n * Builds the options object.\n *\n * @returns\n * A clone of the current options object.\n */\n public build(): IZJanitorOptions {\n return structuredClone(this.options);\n }\n}\n"],"names":["_define_property","ZJanitorOptionsLintBuilder","esConfig","lint","htmlConfig","markdownConfig","prettyConfig","spellingConfig","styleConfig","esFile","file","files","esFiles","concat","htmlFile","htmlFiles","jsonFile","jsonFiles","markdownFile","markdownFiles","prettyFile","prettyFiles","spellingFile","spellingFiles","styleFile","styleFiles","yamlFile","yamlFiles","htmlExclude","excludes","htmlFilesExclude","jsonExclude","jsonFilesExclude","markdownExclude","markdownFilesExclude","prettyExclude","prettyFilesExclude","spellingExclude","spellingFilesExclude","styleExclude","styleFilesExclude","yamlExclude","yamlFilesExclude","excludeAll","extensions","structuredClone","ZJanitorOptionsBuilder","options"],"mappings":"AAAA;;AAEC,IAAA,SAAAA,kBAAA,CAAA,GAAA,EAAA,GAAA,EAAA,KAAA,EAAA;;;;;;;;;;;;;AA0FD;;AAEC,IACM,MAAMC,0BAAAA,CAAAA;AAGX;;;;;;;;MASOC,QAASA,CAAAA,Q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E,eAAAA,CAAgB,IAAI,CAAC1C,IAAI,CAAA;AAClC;;AA3eA,QAAAH,kBAAA,CAAA,IAAA,EAAQG,QAA6B,EAAC,CAAA;;AA4exC;;;;;;;;;;;;;;;AChkBA;;AAEC,IACM,MAAM2C,sBAAAA,CAAAA;AAGX;;;;;;;;MASO3C,IAAKA,CAAAA,IAA0B,EAA0B;AAC9D,QAAA,IAAI,CAAC4C,OAAO,CAAC5C,IAAI,GAAGA,IAAAA;AACpB,QAAA,OAAO,IAAI;AACb;AAEA;;;;;AAKC,MACD,KAAiC,GAAA;QAC/B,OAAO0C,eAAAA,CAAgB,IAAI,CAACE,OAAO,CAAA;AACrC;;AAxBA,QAAA,gBAAA,CAAA,IAAA,EAAQA,WAA4B,EAAC,CAAA;;AAyBvC;;;;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/options/janitor-options-lint.mts","../src/options/janitor-options.mts"],"sourcesContent":["/**\n * Represents options for linting in the zthunworks janitor system.\n */\nexport interface IZJanitorOptionsLint {\n /**\n * The path to the config file for eslint.\n */\n esConfig?: string;\n /**\n * The path to the config file for htmlhint.\n */\n htmlConfig?: string;\n /**\n * The path to the config file for markdownlint.\n */\n markdownConfig?: string;\n /**\n * The path to the config file for prettier.\n */\n prettyConfig?: string;\n /**\n * The path to the config file for cspell.\n */\n spellingConfig?: string;\n /**\n * The path to the config file for stylelint.\n */\n styleConfig?: string;\n\n /**\n * The file globs to lint with eslint.\n */\n esFiles?: string[];\n /**\n * The file globs to lint with htmlhint.\n */\n htmlFiles?: string[];\n /**\n * The file globs to lint with json.\n */\n jsonFiles?: string[];\n /**\n * The file globs to lint with markdownlint.\n */\n markdownFiles?: string[];\n /**\n * The file globs to lint with prettier.\n */\n prettyFiles?: string[];\n /**\n * The file globs to lint with cspell.\n */\n spellingFiles?: string[];\n /**\n * The file globs to lint with stylelint.\n */\n styleFiles?: string[];\n /**\n * The file globs to lint with yaml.\n */\n yamlFiles?: string[];\n\n /**\n * The files globs to exclude from linting with htmlhint.\n */\n htmlFilesExclude?: string[];\n /**\n * The files globs to exclude from linting with json.\n */\n jsonFilesExclude?: string[];\n /**\n * The files globs to exclude from linting with markdownlint.\n */\n markdownFilesExclude?: string[];\n /**\n * The files globs to exclude from linting with prettier.\n */\n prettyFilesExclude?: string[];\n /**\n * The files globs to exclude from linting with cspell.\n */\n spellingFilesExclude?: string[];\n /**\n * The files to exclude from linting with stylelint.\n */\n styleFilesExclude?: string[];\n /**\n * The files globs to exclude from linting with yaml.\n */\n yamlFilesExclude?: string[];\n}\n\n/**\n * A builder for creating linting options for the zthunworks janitor system.\n */\nexport class ZJanitorOptionsLintBuilder {\n private lint: IZJanitorOptionsLint = {};\n\n /**\n * Sets the path to the config file for eslint.\n *\n * @param esConfig -\n * The path to the config file for eslint.\n *\n * @returns\n * This object.\n */\n public esConfig(esConfig: string): ZJanitorOptionsLintBuilder {\n this.lint.esConfig = esConfig;\n return this;\n }\n\n /**\n * Sets the path to the config file for htmlhint.\n *\n * @param htmlConfig -\n * The path to the config file for htmlhint.\n *\n * @returns\n * This object.\n */\n public htmlConfig(htmlConfig: string): ZJanitorOptionsLintBuilder {\n this.lint.htmlConfig = htmlConfig;\n return this;\n }\n\n /**\n * Sets the path to the config file for markdownlint.\n *\n * @param markdownConfig -\n * The path to the config file for markdownlint.\n *\n * @returns\n * This object.\n */\n public markdownConfig(markdownConfig: string): ZJanitorOptionsLintBuilder {\n this.lint.markdownConfig = markdownConfig;\n return this;\n }\n\n /**\n * Sets the path to the config file for prettier.\n *\n * @param prettyConfig -\n * The path to the config file for prettier.\n *\n * @returns\n * This object.\n */\n public prettyConfig(prettyConfig: string): ZJanitorOptionsLintBuilder {\n this.lint.prettyConfig = prettyConfig;\n return this;\n }\n\n /**\n * Sets the path to the config file for cspell.\n *\n * @param spellingConfig -\n * The path to the config file for cspell.\n *\n * @returns\n * This object.\n */\n public spellingConfig(spellingConfig: string): ZJanitorOptionsLintBuilder {\n this.lint.spellingConfig = spellingConfig;\n return this;\n }\n\n /**\n * Sets the path to the config file for stylelint.\n *\n * @param styleConfig -\n * The path to the config file for stylelint.\n *\n * @returns\n * This object.\n */\n public styleConfig(styleConfig: string): ZJanitorOptionsLintBuilder {\n this.lint.styleConfig = styleConfig;\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with eslint.\n *\n * @param file -\n * The file globs to lint with eslint.\n *\n * @returns\n * This object.\n */\n public esFile(file: string | string[] = []) {\n const files = this.lint.esFiles ?? [];\n this.lint.esFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with htmlhint.\n *\n * @param file -\n * The file globs to lint with htmlhint.\n *\n * @returns\n * This object.\n */\n public htmlFile(file: string | string[] = []) {\n const files = this.lint.htmlFiles ?? [];\n this.lint.htmlFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with json.\n *\n * @param file -\n * The file globs to lint with json.\n *\n * @returns\n * This object.\n */\n public jsonFile(file: string | string[] = []) {\n const files = this.lint.jsonFiles ?? [];\n this.lint.jsonFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with markdownlint.\n *\n * @param file -\n * The globs to lint with markdownlint.\n *\n * @returns\n * This object.\n */\n public markdownFile(file: string | string[] = []) {\n const files = this.lint.markdownFiles ?? [];\n this.lint.markdownFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with prettier.\n *\n * @param file -\n * The globs to lint with prettier.\n *\n * @returns\n * This object.\n */\n public prettyFile(file: string | string[] = []) {\n const files = this.lint.prettyFiles ?? [];\n this.lint.prettyFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with cspell.\n *\n * @param file -\n * The file globs to lint with cspell.\n *\n * @returns\n * This object.\n */\n public spellingFile(file: string | string[] = []) {\n const files = this.lint.spellingFiles ?? [];\n this.lint.spellingFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with stylelint.\n *\n * @param file -\n * The file globs to lint with stylelint.\n *\n * @returns\n * This object.\n */\n public styleFile(file: string | string[] = []) {\n const files = this.lint.styleFiles ?? [];\n this.lint.styleFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to lint with yaml.\n *\n * @param file -\n * The file globs to lint with yaml.\n *\n * @returns\n * This object.\n */\n public yamlFile(file: string | string[] = []) {\n const files = this.lint.yamlFiles ?? [];\n this.lint.yamlFiles = files.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to exclude from linting with htmlhint.\n *\n * @param files -\n * The file globs to exclude from linting with htmlhint.\n *\n * @returns\n * This object.\n */\n public htmlExclude(files: string | string[] = []) {\n const excludes = this.lint.htmlFilesExclude ?? [];\n this.lint.htmlFilesExclude = excludes.concat(files);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to exclude from linting with json.\n *\n * @param file -\n * The globs to exclude from linting with json.\n *\n * @returns\n * This object.\n */\n public jsonExclude(file: string | string[] = []) {\n const excludes = this.lint.jsonFilesExclude ?? [];\n this.lint.jsonFilesExclude = excludes.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to exclude from linting with markdownlint.\n *\n * @param file -\n * The globs to exclude from linting with markdownlint.\n *\n * @returns\n * This object.\n */\n public markdownExclude(file: string | string[] = []) {\n const excludes = this.lint.markdownFilesExclude ?? [];\n this.lint.markdownFilesExclude = excludes.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to exclude from linting with prettier.\n *\n * @param file -\n * The globs to exclude from linting with prettier.\n *\n * @returns\n * This object.\n */\n public prettyExclude(file: string | string[] = []) {\n const excludes = this.lint.prettyFilesExclude ?? [];\n this.lint.prettyFilesExclude = excludes.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to exclude from linting with cspell.\n *\n * @param file -\n * The globs to exclude from linting with cspell.\n *\n * @returns\n * This object.\n */\n public spellingExclude(file: string | string[] = []) {\n const excludes = this.lint.spellingFilesExclude ?? [];\n this.lint.spellingFilesExclude = excludes.concat(file);\n return this;\n }\n\n /**\n * Adds a list of globs to the list of files to exclude from linting with stylelint.\n *\n * @param file -\n * The globs to exclude from linting with stylelint.\n *\n * @returns\n * This object.\n */\n public styleExclude(file: string | string[] = []) {\n const excludes = this.lint.styleFilesExclude ?? [];\n this.lint.styleFilesExclude = excludes.concat(file);\n return this;\n }\n\n /**\n * Adds a single file glob to the list of files to exclude from linting with yaml.\n *\n * @param file -\n * The file glob to exclude from linting with yaml.\n *\n * @returns\n * This object.\n */\n public yamlExclude(file: string | string[] = []) {\n const excludes = this.lint.yamlFilesExclude ?? [];\n this.lint.yamlFilesExclude = excludes.concat(file);\n return this;\n }\n\n /**\n * Adds a file to all exclusion lists.\n *\n * @param file -\n * The file to exclude from all linting.\n *\n * @returns\n * This object.\n */\n public excludeAll(file: string | string[] = []) {\n return this.htmlExclude(file)\n .jsonExclude(file)\n .markdownExclude(file)\n .prettyExclude(file)\n .spellingExclude(file)\n .styleExclude(file)\n .yamlExclude(file);\n }\n\n /**\n * Generates the spelling files based on the other files that have been set.\n *\n * @returns\n * This object.\n */\n public generateSpellingFiles() {\n return this.spellingFile(this.lint.esFiles)\n .spellingFile(this.lint.htmlFiles)\n .spellingFile(this.lint.jsonFiles)\n .spellingFile(this.lint.markdownFiles)\n .spellingFile(this.lint.styleFiles)\n .spellingFile(this.lint.yamlFiles);\n }\n\n /**\n * Generates the pretty files based on the other files that have been set.\n *\n * @returns\n * This object.\n */\n public generatePrettyFiles() {\n return this.prettyFile(this.lint.esFiles)\n .prettyFile(this.lint.htmlFiles)\n .prettyFile(this.lint.jsonFiles)\n .prettyFile(this.lint.markdownFiles)\n .prettyFile(this.lint.styleFiles)\n .prettyFile(this.lint.yamlFiles);\n }\n\n /**\n * Adds conventional es files.\n *\n * @returns\n * This object\n */\n public commonEsFiles() {\n const extensions = \"js,cjs,mjs,ts,mts,jsx,tsx\";\n\n return this.esFile(`*.{${extensions}}`)\n .esFile(`src/**/*.{${extensions}}`)\n .esFile(`features/**/*.{${extensions}}`)\n .esFile(`packages/**/src/**/*.{${extensions}}`)\n .esFile(`packages/**/features/**/*.{${extensions}}`)\n .esFile(`packages/*/vite.config.{${extensions}}`)\n .esFile(`packages/*/vitest.config.{${extensions}}`)\n .esFile(`.config/*.{${extensions}}`);\n }\n\n /**\n * Adds conventional css files.\n *\n * @returns\n * This object.\n */\n public commonCssFiles() {\n return this.styleFile(`src/**/*.css`)\n .styleFile(`packages/**/*.css`)\n .styleFile(\"styles/**/*.css\");\n }\n\n /**\n * Adds conventional sass files.\n *\n * @returns\n * This object.\n */\n public commonSassFiles() {\n return this.styleFile(`src/**/*.{sass,scss}`)\n .styleFile(`packages/**/src/**/*.{sass,scss}`)\n .styleFile(\"styles/**/*.{sass,scss}\");\n }\n\n /**\n * Adds conventional less files.\n *\n * @returns\n * This object.\n */\n public commonLessFiles() {\n return this.styleFile(`src/**/*.less`)\n .styleFile(\"packages/**/src/**/*.less\")\n .styleFile(\"styles/**/*.less\");\n }\n\n /**\n * Adds conventional less files.\n *\n * @returns\n * This object.\n */\n public commonHtmlFiles() {\n const extensions = \"html,htm\";\n return this.htmlFile(`src/**/*.{${extensions}}`)\n .htmlFile(`packages/**/src/**/*.{${extensions}}`)\n .htmlFile(`src/*.{${extensions}}`)\n .htmlFile(`packages/*/*.{${extensions}}`);\n }\n\n /**\n * Adds conventional markdown files.\n *\n * @returns\n * This object.\n */\n public commonMarkdownFiles() {\n return this.markdownFile(`*.md`)\n .markdownFile(`src/**/*.md`)\n .markdownFile(`packages/**/*.md`);\n }\n\n /**\n * Add conventional json files.\n *\n * @returns\n * This object.\n */\n public commonJsonFiles() {\n return this.jsonFile(\"*.json\")\n .jsonFile(\"src/**/*.json\")\n .jsonFile(\"packages/**/*.json\")\n .jsonFile(\".config/*.json\");\n }\n\n /**\n * Adds conventional yaml files.\n *\n * @returns\n * This object.\n */\n public commonYamlFiles() {\n const extensions = \"yml,yaml\";\n return this.yamlFile(`*.{${extensions}}`)\n .yamlFile(`src/**/*.{${extensions}}`)\n .yamlFile(`packages/**/*.{${extensions}}`)\n .yamlFile(`.config/*.{${extensions}}`)\n .yamlFile(`.circleci/*.{${extensions}}`);\n }\n\n /**\n * Adds conventional exclude files.\n *\n * @returns\n * This object.\n */\n public commonExcludes() {\n return this.excludeAll(\"**/CHANGELOG.md\")\n .excludeAll(\"**/dist/**\")\n .excludeAll(\"**/node_modules/**\")\n .excludeAll(\"package-lock.json\")\n .excludeAll(\"lerna.json\")\n .excludeAll(\"**/cspell.json\");\n }\n\n /**\n * Returns the built linting options object.\n *\n * @returns\n * A clone of the current linting options object.\n */\n public build() {\n return structuredClone(this.lint);\n }\n}\n","import type { IZJanitorOptionsLint } from \"./janitor-options-lint.mjs\";\n\n/**\n * Options for the zthunworks janitor system.\n */\nexport interface IZJanitorOptions {\n /**\n * Linting options for janitor-lint.\n */\n lint?: IZJanitorOptionsLint;\n}\n\n/**\n * A builder for creating janitor options.\n */\nexport class ZJanitorOptionsBuilder {\n private options: IZJanitorOptions = {};\n\n /**\n * Sets the linting options for the janitor system.\n *\n * @param lint -\n * The linting options to set.\n *\n * @returns\n * This object.\n */\n public lint(lint: IZJanitorOptionsLint): ZJanitorOptionsBuilder {\n this.options.lint = lint;\n return this;\n }\n\n /**\n * Builds the options object.\n *\n * @returns\n * A clone of the current options object.\n */\n public build(): IZJanitorOptions {\n return structuredClone(this.options);\n }\n}\n"],"names":["_define_property","ZJanitorOptionsLintBuilder","esConfig","lint","htmlConfig","markdownConfig","prettyConfig","spellingConfig","styleConfig","esFile","file","files","esFiles","concat","htmlFile","htmlFiles","jsonFile","jsonFiles","markdownFile","markdownFiles","prettyFile","prettyFiles","spellingFile","spellingFiles","styleFile","styleFiles","yamlFile","yamlFiles","htmlExclude","excludes","htmlFilesExclude","jsonExclude","jsonFilesExclude","markdownExclude","markdownFilesExclude","prettyExclude","prettyFilesExclude","spellingExclude","spellingFilesExclude","styleExclude","styleFilesExclude","yamlExclude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,CAAC,CAAC,aAAa,EAAEkB,UAAW,CAAA,CAAC,CAAC,CAAA;AAC3C;AAEA;;;;;AAKC,MACD,cAAwB,GAAA;AACtB,QAAA,OAAO,IAAI,CAACD,UAAU,CAAC,iBACpBA,CAAAA,CAAAA,UAAU,CAAC,YACXA,CAAAA,CAAAA,UAAU,CAAC,oBAAA,CAAA,CACXA,UAAU,CAAC,mBAAA,CAAA,CACXA,UAAU,CAAC,YAAA,CAAA,CACXA,UAAU,CAAC,gBAAA,CAAA;AAChB;AAEA;;;;;AAKC,MACD,KAAe,GAAA;QACb,OAAOE,eAAAA,CAAgB,IAAI,CAAC1C,IAAI,CAAA;AAClC;;AA5eA,QAAAH,kBAAA,CAAA,IAAA,EAAQG,QAA6B,EAAC,CAAA;;AA6exC;;;;;;;;;;;;;;;ACjkBA;;AAEC,IACM,MAAM2C,sBAAAA,CAAAA;AAGX;;;;;;;;MASO3C,IAAKA,CAAAA,IAA0B,EAA0B;AAC9D,QAAA,IAAI,CAAC4C,OAAO,CAAC5C,IAAI,GAAGA,IAAAA;AACpB,QAAA,OAAO,IAAI;AACb;AAEA;;;;;AAKC,MACD,KAAiC,GAAA;QAC/B,OAAO0C,eAAAA,CAAgB,IAAI,CAACE,OAAO,CAAA;AACrC;;AAxBA,QAAA,gBAAA,CAAA,IAAA,EAAQA,WAA4B,EAAC,CAAA;;AAyBvC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zthun/janitor-options",
|
|
3
|
-
"version": "19.2.
|
|
3
|
+
"version": "19.2.4",
|
|
4
4
|
"description": "Option builders and interfaces for the zthunworks janitor system.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"linters"
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"dist"
|
|
32
32
|
],
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@zthun/janitor-build-config": "^19.2.
|
|
34
|
+
"@zthun/janitor-build-config": "^19.2.4",
|
|
35
35
|
"typescript": "~5.8.3",
|
|
36
36
|
"vite": "^6.3.5",
|
|
37
37
|
"vitest": "^3.2.4"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "24a9f86fd4ef64c787d21e6de607718f739ad38f"
|
|
40
40
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|