@zthun/janitor-options 19.4.3 → 19.5.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/dist/index.cjs CHANGED
@@ -101,8 +101,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
101
101
  * @returns
102
102
  * This object.
103
103
  */ esFile(file = []) {
104
- var _this_lint_esFiles;
105
- const files = (_this_lint_esFiles = this.lint.esFiles) !== null && _this_lint_esFiles !== void 0 ? _this_lint_esFiles : [];
104
+ const files = this.lint.esFiles ?? [];
106
105
  this.lint.esFiles = files.concat(file);
107
106
  return this;
108
107
  }
@@ -115,8 +114,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
115
114
  * @returns
116
115
  * This object.
117
116
  */ htmlFile(file = []) {
118
- var _this_lint_htmlFiles;
119
- const files = (_this_lint_htmlFiles = this.lint.htmlFiles) !== null && _this_lint_htmlFiles !== void 0 ? _this_lint_htmlFiles : [];
117
+ const files = this.lint.htmlFiles ?? [];
120
118
  this.lint.htmlFiles = files.concat(file);
121
119
  return this;
122
120
  }
@@ -129,8 +127,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
129
127
  * @returns
130
128
  * This object.
131
129
  */ jsonFile(file = []) {
132
- var _this_lint_jsonFiles;
133
- const files = (_this_lint_jsonFiles = this.lint.jsonFiles) !== null && _this_lint_jsonFiles !== void 0 ? _this_lint_jsonFiles : [];
130
+ const files = this.lint.jsonFiles ?? [];
134
131
  this.lint.jsonFiles = files.concat(file);
135
132
  return this;
136
133
  }
@@ -143,8 +140,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
143
140
  * @returns
144
141
  * This object.
145
142
  */ markdownFile(file = []) {
146
- var _this_lint_markdownFiles;
147
- const files = (_this_lint_markdownFiles = this.lint.markdownFiles) !== null && _this_lint_markdownFiles !== void 0 ? _this_lint_markdownFiles : [];
143
+ const files = this.lint.markdownFiles ?? [];
148
144
  this.lint.markdownFiles = files.concat(file);
149
145
  return this;
150
146
  }
@@ -157,8 +153,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
157
153
  * @returns
158
154
  * This object.
159
155
  */ prettyFile(file = []) {
160
- var _this_lint_prettyFiles;
161
- const files = (_this_lint_prettyFiles = this.lint.prettyFiles) !== null && _this_lint_prettyFiles !== void 0 ? _this_lint_prettyFiles : [];
156
+ const files = this.lint.prettyFiles ?? [];
162
157
  this.lint.prettyFiles = files.concat(file);
163
158
  return this;
164
159
  }
@@ -171,8 +166,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
171
166
  * @returns
172
167
  * This object.
173
168
  */ spellingFile(file = []) {
174
- var _this_lint_spellingFiles;
175
- const files = (_this_lint_spellingFiles = this.lint.spellingFiles) !== null && _this_lint_spellingFiles !== void 0 ? _this_lint_spellingFiles : [];
169
+ const files = this.lint.spellingFiles ?? [];
176
170
  this.lint.spellingFiles = files.concat(file);
177
171
  return this;
178
172
  }
@@ -185,8 +179,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
185
179
  * @returns
186
180
  * This object.
187
181
  */ styleFile(file = []) {
188
- var _this_lint_styleFiles;
189
- const files = (_this_lint_styleFiles = this.lint.styleFiles) !== null && _this_lint_styleFiles !== void 0 ? _this_lint_styleFiles : [];
182
+ const files = this.lint.styleFiles ?? [];
190
183
  this.lint.styleFiles = files.concat(file);
191
184
  return this;
192
185
  }
@@ -199,8 +192,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
199
192
  * @returns
200
193
  * This object.
201
194
  */ yamlFile(file = []) {
202
- var _this_lint_yamlFiles;
203
- const files = (_this_lint_yamlFiles = this.lint.yamlFiles) !== null && _this_lint_yamlFiles !== void 0 ? _this_lint_yamlFiles : [];
195
+ const files = this.lint.yamlFiles ?? [];
204
196
  this.lint.yamlFiles = files.concat(file);
205
197
  return this;
206
198
  }
@@ -213,8 +205,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
213
205
  * @returns
214
206
  * This object.
215
207
  */ htmlExclude(files = []) {
216
- var _this_lint_htmlFilesExclude;
217
- const excludes = (_this_lint_htmlFilesExclude = this.lint.htmlFilesExclude) !== null && _this_lint_htmlFilesExclude !== void 0 ? _this_lint_htmlFilesExclude : [];
208
+ const excludes = this.lint.htmlFilesExclude ?? [];
218
209
  this.lint.htmlFilesExclude = excludes.concat(files);
219
210
  return this;
220
211
  }
@@ -227,8 +218,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
227
218
  * @returns
228
219
  * This object.
229
220
  */ jsonExclude(file = []) {
230
- var _this_lint_jsonFilesExclude;
231
- const excludes = (_this_lint_jsonFilesExclude = this.lint.jsonFilesExclude) !== null && _this_lint_jsonFilesExclude !== void 0 ? _this_lint_jsonFilesExclude : [];
221
+ const excludes = this.lint.jsonFilesExclude ?? [];
232
222
  this.lint.jsonFilesExclude = excludes.concat(file);
233
223
  return this;
234
224
  }
@@ -241,8 +231,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
241
231
  * @returns
242
232
  * This object.
243
233
  */ markdownExclude(file = []) {
244
- var _this_lint_markdownFilesExclude;
245
- const excludes = (_this_lint_markdownFilesExclude = this.lint.markdownFilesExclude) !== null && _this_lint_markdownFilesExclude !== void 0 ? _this_lint_markdownFilesExclude : [];
234
+ const excludes = this.lint.markdownFilesExclude ?? [];
246
235
  this.lint.markdownFilesExclude = excludes.concat(file);
247
236
  return this;
248
237
  }
@@ -255,8 +244,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
255
244
  * @returns
256
245
  * This object.
257
246
  */ prettyExclude(file = []) {
258
- var _this_lint_prettyFilesExclude;
259
- const excludes = (_this_lint_prettyFilesExclude = this.lint.prettyFilesExclude) !== null && _this_lint_prettyFilesExclude !== void 0 ? _this_lint_prettyFilesExclude : [];
247
+ const excludes = this.lint.prettyFilesExclude ?? [];
260
248
  this.lint.prettyFilesExclude = excludes.concat(file);
261
249
  return this;
262
250
  }
@@ -269,8 +257,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
269
257
  * @returns
270
258
  * This object.
271
259
  */ spellingExclude(file = []) {
272
- var _this_lint_spellingFilesExclude;
273
- const excludes = (_this_lint_spellingFilesExclude = this.lint.spellingFilesExclude) !== null && _this_lint_spellingFilesExclude !== void 0 ? _this_lint_spellingFilesExclude : [];
260
+ const excludes = this.lint.spellingFilesExclude ?? [];
274
261
  this.lint.spellingFilesExclude = excludes.concat(file);
275
262
  return this;
276
263
  }
@@ -283,8 +270,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
283
270
  * @returns
284
271
  * This object.
285
272
  */ styleExclude(file = []) {
286
- var _this_lint_styleFilesExclude;
287
- const excludes = (_this_lint_styleFilesExclude = this.lint.styleFilesExclude) !== null && _this_lint_styleFilesExclude !== void 0 ? _this_lint_styleFilesExclude : [];
273
+ const excludes = this.lint.styleFilesExclude ?? [];
288
274
  this.lint.styleFilesExclude = excludes.concat(file);
289
275
  return this;
290
276
  }
@@ -297,8 +283,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
297
283
  * @returns
298
284
  * This object.
299
285
  */ yamlExclude(file = []) {
300
- var _this_lint_yamlFilesExclude;
301
- const excludes = (_this_lint_yamlFilesExclude = this.lint.yamlFilesExclude) !== null && _this_lint_yamlFilesExclude !== void 0 ? _this_lint_yamlFilesExclude : [];
286
+ const excludes = this.lint.yamlFilesExclude ?? [];
302
287
  this.lint.yamlFilesExclude = excludes.concat(file);
303
288
  return this;
304
289
  }
@@ -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}}`)\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","generateSpellingFiles","generatePrettyFiles","commonEsFiles","extensions","commonCssFiles","commonSassFiles","commonLessFiles","commonHtmlFiles","commonMarkdownFiles","commonJsonFiles","commonYamlFiles","commonExcludes","build","structuredClone","ZJanitorOptionsBuilder","options"],"mappings":";;;;AAAA;;AAEC,IAAA,SAAAA,kBAAA,CAAA,GAAA,EAAA,GAAA,EAAA,KAAA,EAAA;;;;;;;;;;;;;AA0FD;;AAEC,IACM,MAAMC,0BAAAA,CAAAA;AAGX;;;;;;;;MASOC,QAAAA,CAASA,QAAgB,EAA8B;AAC5D,QAAA,IAAI,CAACC,IAAI,CAACD,QAAQ,GAAGA,QAAAA;AACrB,QAAA,OAAO,IAAI;AACb,IAAA;AAEA;;;;;;;;MASOE,UAAAA,CAAWA,UAAkB,EAA8B;AAChE,QAAA,IAAI,CAACD,IAAI,CAACC,UAAU,GAAGA,UAAAA;AACvB,QAAA,OAAO,IAAI;AACb,IAAA;AAEA;;;;;;;;MASOC,cAAAA,CAAeA,cAAsB,EAA8B;AACxE,QAAA,IAAI,CAACF,IAAI,CAACE,cAAc,GAAGA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AAOa,GAAQ;QACb,OAAOC,eAAAA,CAAgB,IAAI,CAACtD,IAAI,CAAA;AAClC,IAAA;;AA5eA,QAAAH,kBAAA,CAAA,IAAA,EAAQG,QAA6B,EAAC,CAAA;;AA6exC;;;;;;;;;;;;;;;ACjkBA;;AAEC,IACM,MAAMuD,sBAAAA,CAAAA;AAGX;;;;;;;;MASOvD,IAAAA,CAAKA,IAA0B,EAA0B;AAC9D,QAAA,IAAI,CAACwD,OAAO,CAACxD,IAAI,GAAGA,IAAAA;AACpB,QAAA,OAAO,IAAI;AACb,IAAA;AAEA;;;;;AAKC,MACD,KAAOqD,GAA0B;QAC/B,OAAOC,eAAAA,CAAgB,IAAI,CAACE,OAAO,CAAA;AACrC,IAAA;;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","generateSpellingFiles","generatePrettyFiles","commonEsFiles","extensions","commonCssFiles","commonSassFiles","commonLessFiles","commonHtmlFiles","commonMarkdownFiles","commonJsonFiles","commonYamlFiles","commonExcludes","build","structuredClone","ZJanitorOptionsBuilder","options"],"mappings":";;;;AAAA;;AAEC,IAAA,SAAAA,kBAAA,CAAA,GAAA,EAAA,GAAA,EAAA,KAAA,EAAA;;;;;;;;;;;;;AA0FD;;AAEC,IACM,MAAMC,0BAAAA,CAAAA;AAGX;;;;;;;;MASOC,QAAAA,CAASA,QAAgB,EAA8B;AAC5D,QAAA,IAAI,CAACC,IAAI,CAACD,QAAQ,GAAGA,QAAAA;AACrB,QAAA,OAAO,IAAI;AACb,IAAA;AAEA;;;;;;;;MASOE,UAAAA,CAAWA,UAAkB,EAA8B;AAChE,QAAA,IAAI,CAACD,IAAI,CAACC,UAAU,GAAGA,UAAAA;AACvB,QAAA,OAAO,IAAI;AACb,IAAA;AAEA;;;;;;;;MASOC,cAAAA,CAAeA,cAAsB,EAA8B;AACxE,QAAA,IAAI,CAACF,IAAI,CAACE,cAAc,GAAGA,cAAAA;AAC3B,QAAA,OAAO,IAAI;AACb,IAAA;AAEA;;;;;;;;MASOC,YAAAA,CAAaA,YAAoB,EAA8B;AACpE,QAAA,IAAI,CAACH,IAAI,CAACG,YAAY,GAAGA,YAAAA;AACzB,QAAA,OAAO,IAAI;AACb,IAAA;AAEA;;;;;;;;MASOC,cAAAA,CAAeA,cAAsB,EAA8B;AACxE,QAAA,IAAI,CAACJ,IAAI,CAACI,cAAc,GAAGA,cAAAA;AAC3B,QAAA,OAAO,IAAI;AACb,IAAA;AAEA;;;;;;;;MASOC,WAAAA,CAAYA,WAAmB,EAA8B;AAClE,QAAA,IAAI,CAACL,IAAI,CAACK,WAAW,GAAGA,WAAAA;AACxB,QAAA,OAAO,IAAI;AACb,IAAA;AAEA;;;;;;;;AAQC,MACD,MAA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Q,CAAC,CAAC,eAAe,EAAEqB,WAAW,CAAC,CAAC,EACxCrB,QAAQ,CAAC,CAAC,WAAW,EAAEqB,WAAW,CAAC,CAAC,EACpCrB,QAAQ,CAAC,CAAC,aAAa,EAAEqB,UAAAA,CAAW,CAAC,CAAC,CAAA;AAC3C,IAAA;AAEA;;;;;AAKC,MACD,cAAOQ,GAAiB;AACtB,QAAA,OAAO,IAAI,CAACZ,UAAU,CAAC,iBAAA,CAAA,CACpBA,UAAU,CAAC,YAAA,CAAA,CACXA,UAAU,CAAC,oBAAA,CAAA,CACXA,UAAU,CAAC,mBAAA,CAAA,CACXA,UAAU,CAAC,YAAA,CAAA,CACXA,UAAU,CAAC,gBAAA,CAAA;AAChB,IAAA;AAEA;;;;;AAKC,MACD,KAAOa,GAAQ;QACb,OAAOC,eAAAA,CAAgB,IAAI,CAACtD,IAAI,CAAA;AAClC,IAAA;;AA5eA,QAAAH,kBAAA,CAAA,IAAA,EAAQG,QAA6B,EAAC,CAAA;;AA6exC;;;;;;;;;;;;;;;ACjkBA;;AAEC,IACM,MAAMuD,sBAAAA,CAAAA;AAGX;;;;;;;;MASOvD,IAAAA,CAAKA,IAA0B,EAA0B;AAC9D,QAAA,IAAI,CAACwD,OAAO,CAACxD,IAAI,GAAGA,IAAAA;AACpB,QAAA,OAAO,IAAI;AACb,IAAA;AAEA;;;;;AAKC,MACD,KAAOqD,GAA0B;QAC/B,OAAOC,eAAAA,CAAgB,IAAI,CAACE,OAAO,CAAA;AACrC,IAAA;;AAxBA,QAAA,gBAAA,CAAA,IAAA,EAAQA,WAA4B,EAAC,CAAA;;AAyBvC;;;;;"}
package/dist/index.js CHANGED
@@ -97,8 +97,7 @@
97
97
  * @returns
98
98
  * This object.
99
99
  */ esFile(file = []) {
100
- var _this_lint_esFiles;
101
- const files = (_this_lint_esFiles = this.lint.esFiles) !== null && _this_lint_esFiles !== void 0 ? _this_lint_esFiles : [];
100
+ const files = this.lint.esFiles ?? [];
102
101
  this.lint.esFiles = files.concat(file);
103
102
  return this;
104
103
  }
@@ -111,8 +110,7 @@
111
110
  * @returns
112
111
  * This object.
113
112
  */ htmlFile(file = []) {
114
- var _this_lint_htmlFiles;
115
- const files = (_this_lint_htmlFiles = this.lint.htmlFiles) !== null && _this_lint_htmlFiles !== void 0 ? _this_lint_htmlFiles : [];
113
+ const files = this.lint.htmlFiles ?? [];
116
114
  this.lint.htmlFiles = files.concat(file);
117
115
  return this;
118
116
  }
@@ -125,8 +123,7 @@
125
123
  * @returns
126
124
  * This object.
127
125
  */ jsonFile(file = []) {
128
- var _this_lint_jsonFiles;
129
- const files = (_this_lint_jsonFiles = this.lint.jsonFiles) !== null && _this_lint_jsonFiles !== void 0 ? _this_lint_jsonFiles : [];
126
+ const files = this.lint.jsonFiles ?? [];
130
127
  this.lint.jsonFiles = files.concat(file);
131
128
  return this;
132
129
  }
@@ -139,8 +136,7 @@
139
136
  * @returns
140
137
  * This object.
141
138
  */ markdownFile(file = []) {
142
- var _this_lint_markdownFiles;
143
- const files = (_this_lint_markdownFiles = this.lint.markdownFiles) !== null && _this_lint_markdownFiles !== void 0 ? _this_lint_markdownFiles : [];
139
+ const files = this.lint.markdownFiles ?? [];
144
140
  this.lint.markdownFiles = files.concat(file);
145
141
  return this;
146
142
  }
@@ -153,8 +149,7 @@
153
149
  * @returns
154
150
  * This object.
155
151
  */ prettyFile(file = []) {
156
- var _this_lint_prettyFiles;
157
- const files = (_this_lint_prettyFiles = this.lint.prettyFiles) !== null && _this_lint_prettyFiles !== void 0 ? _this_lint_prettyFiles : [];
152
+ const files = this.lint.prettyFiles ?? [];
158
153
  this.lint.prettyFiles = files.concat(file);
159
154
  return this;
160
155
  }
@@ -167,8 +162,7 @@
167
162
  * @returns
168
163
  * This object.
169
164
  */ spellingFile(file = []) {
170
- var _this_lint_spellingFiles;
171
- const files = (_this_lint_spellingFiles = this.lint.spellingFiles) !== null && _this_lint_spellingFiles !== void 0 ? _this_lint_spellingFiles : [];
165
+ const files = this.lint.spellingFiles ?? [];
172
166
  this.lint.spellingFiles = files.concat(file);
173
167
  return this;
174
168
  }
@@ -181,8 +175,7 @@
181
175
  * @returns
182
176
  * This object.
183
177
  */ styleFile(file = []) {
184
- var _this_lint_styleFiles;
185
- const files = (_this_lint_styleFiles = this.lint.styleFiles) !== null && _this_lint_styleFiles !== void 0 ? _this_lint_styleFiles : [];
178
+ const files = this.lint.styleFiles ?? [];
186
179
  this.lint.styleFiles = files.concat(file);
187
180
  return this;
188
181
  }
@@ -195,8 +188,7 @@
195
188
  * @returns
196
189
  * This object.
197
190
  */ yamlFile(file = []) {
198
- var _this_lint_yamlFiles;
199
- const files = (_this_lint_yamlFiles = this.lint.yamlFiles) !== null && _this_lint_yamlFiles !== void 0 ? _this_lint_yamlFiles : [];
191
+ const files = this.lint.yamlFiles ?? [];
200
192
  this.lint.yamlFiles = files.concat(file);
201
193
  return this;
202
194
  }
@@ -209,8 +201,7 @@
209
201
  * @returns
210
202
  * This object.
211
203
  */ htmlExclude(files = []) {
212
- var _this_lint_htmlFilesExclude;
213
- const excludes = (_this_lint_htmlFilesExclude = this.lint.htmlFilesExclude) !== null && _this_lint_htmlFilesExclude !== void 0 ? _this_lint_htmlFilesExclude : [];
204
+ const excludes = this.lint.htmlFilesExclude ?? [];
214
205
  this.lint.htmlFilesExclude = excludes.concat(files);
215
206
  return this;
216
207
  }
@@ -223,8 +214,7 @@
223
214
  * @returns
224
215
  * This object.
225
216
  */ jsonExclude(file = []) {
226
- var _this_lint_jsonFilesExclude;
227
- const excludes = (_this_lint_jsonFilesExclude = this.lint.jsonFilesExclude) !== null && _this_lint_jsonFilesExclude !== void 0 ? _this_lint_jsonFilesExclude : [];
217
+ const excludes = this.lint.jsonFilesExclude ?? [];
228
218
  this.lint.jsonFilesExclude = excludes.concat(file);
229
219
  return this;
230
220
  }
@@ -237,8 +227,7 @@
237
227
  * @returns
238
228
  * This object.
239
229
  */ markdownExclude(file = []) {
240
- var _this_lint_markdownFilesExclude;
241
- const excludes = (_this_lint_markdownFilesExclude = this.lint.markdownFilesExclude) !== null && _this_lint_markdownFilesExclude !== void 0 ? _this_lint_markdownFilesExclude : [];
230
+ const excludes = this.lint.markdownFilesExclude ?? [];
242
231
  this.lint.markdownFilesExclude = excludes.concat(file);
243
232
  return this;
244
233
  }
@@ -251,8 +240,7 @@
251
240
  * @returns
252
241
  * This object.
253
242
  */ prettyExclude(file = []) {
254
- var _this_lint_prettyFilesExclude;
255
- const excludes = (_this_lint_prettyFilesExclude = this.lint.prettyFilesExclude) !== null && _this_lint_prettyFilesExclude !== void 0 ? _this_lint_prettyFilesExclude : [];
243
+ const excludes = this.lint.prettyFilesExclude ?? [];
256
244
  this.lint.prettyFilesExclude = excludes.concat(file);
257
245
  return this;
258
246
  }
@@ -265,8 +253,7 @@
265
253
  * @returns
266
254
  * This object.
267
255
  */ spellingExclude(file = []) {
268
- var _this_lint_spellingFilesExclude;
269
- const excludes = (_this_lint_spellingFilesExclude = this.lint.spellingFilesExclude) !== null && _this_lint_spellingFilesExclude !== void 0 ? _this_lint_spellingFilesExclude : [];
256
+ const excludes = this.lint.spellingFilesExclude ?? [];
270
257
  this.lint.spellingFilesExclude = excludes.concat(file);
271
258
  return this;
272
259
  }
@@ -279,8 +266,7 @@
279
266
  * @returns
280
267
  * This object.
281
268
  */ styleExclude(file = []) {
282
- var _this_lint_styleFilesExclude;
283
- const excludes = (_this_lint_styleFilesExclude = this.lint.styleFilesExclude) !== null && _this_lint_styleFilesExclude !== void 0 ? _this_lint_styleFilesExclude : [];
269
+ const excludes = this.lint.styleFilesExclude ?? [];
284
270
  this.lint.styleFilesExclude = excludes.concat(file);
285
271
  return this;
286
272
  }
@@ -293,8 +279,7 @@
293
279
  * @returns
294
280
  * This object.
295
281
  */ yamlExclude(file = []) {
296
- var _this_lint_yamlFilesExclude;
297
- const excludes = (_this_lint_yamlFilesExclude = this.lint.yamlFilesExclude) !== null && _this_lint_yamlFilesExclude !== void 0 ? _this_lint_yamlFilesExclude : [];
282
+ const excludes = this.lint.yamlFilesExclude ?? [];
298
283
  this.lint.yamlFilesExclude = excludes.concat(file);
299
284
  return this;
300
285
  }
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}}`)\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","generateSpellingFiles","generatePrettyFiles","commonEsFiles","extensions","commonCssFiles","commonSassFiles","commonLessFiles","commonHtmlFiles","commonMarkdownFiles","commonJsonFiles","commonYamlFiles","commonExcludes","build","structuredClone","ZJanitorOptionsBuilder","options"],"mappings":"AAAA;;AAEC,IAAA,SAAAA,kBAAA,CAAA,GAAA,EAAA,GAAA,EAAA,KAAA,EAAA;;;;;;;;;;;;;AA0FD;;AAEC,IACM,MAAMC,0BAAAA,CAAAA;AAGX;;;;;;;;MASOC,QAAAA,CAASA,QAAgB,EAA8B;AAC5D,QAAA,IAA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CAAC,CAAC,CAAA;AAC3C,IAAA;AAEA;;;;;AAKC,MACD,cAAOQ,GAAiB;AACtB,QAAA,OAAO,IAAI,CAACZ,UAAU,CAAC,iBAAA,CAAA,CACpBA,UAAU,CAAC,YAAA,CAAA,CACXA,UAAU,CAAC,oBAAA,CAAA,CACXA,UAAU,CAAC,mBAAA,CAAA,CACXA,UAAU,CAAC,YAAA,CAAA,CACXA,UAAU,CAAC,gBAAA,CAAA;AAChB,IAAA;AAEA;;;;;AAKC,MACD,KAAOa,GAAQ;QACb,OAAOC,eAAAA,CAAgB,IAAI,CAACtD,IAAI,CAAA;AAClC,IAAA;;AA5eA,QAAAH,kBAAA,CAAA,IAAA,EAAQG,QAA6B,EAAC,CAAA;;AA6exC;;;;;;;;;;;;;;;ACjkBA;;AAEC,IACM,MAAMuD,sBAAAA,CAAAA;AAGX;;;;;;;;MASOvD,IAAAA,CAAKA,IAA0B,EAA0B;AAC9D,QAAA,IAAI,CAACwD,OAAO,CAACxD,IAAI,GAAGA,IAAAA;AACpB,QAAA,OAAO,IAAI;AACb,IAAA;AAEA;;;;;AAKC,MACD,KAAOqD,GAA0B;QAC/B,OAAOC,eAAAA,CAAgB,IAAI,CAACE,OAAO,CAAA;AACrC,IAAA;;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","yamlFilesExclude","excludeAll","generateSpellingFiles","generatePrettyFiles","commonEsFiles","extensions","commonCssFiles","commonSassFiles","commonLessFiles","commonHtmlFiles","commonMarkdownFiles","commonJsonFiles","commonYamlFiles","commonExcludes","build","structuredClone","ZJanitorOptionsBuilder","options"],"mappings":"AAAA;;AAEC,IAAA,SAAAA,kBAAA,CAAA,GAAA,EAAA,GAAA,EAAA,KAAA,EAAA;;;;;;;;;;;;;AA0FD;;AAEC,IACM,MAAMC,0BAAAA,CAAAA;AAGX;;;;;;;;MASOC,QAAAA,CAASA,QAAgB,EAA8B;AAC5D,QAAA,IAAI,CAACC,IAAI,CAACD,QAAQ,GAAGA,QAAAA;AACrB,QAAA,OAAO,IAAI;AACb,IAAA;AAEA;;;;;;;;MASOE,UAAAA,CAAWA,UAAkB,EAA8B;AAChE,QAAA,IAAI,CAACD,IAAI,CAACC,UAAU,GAAGA,UAAAA;AACvB,QAAA,OAAO,IAAI;AACb,IAAA;AAEA;;;;;;;;MASOC,cAAAA,CAAeA,cAAsB,EAA8B;AACxE,QAAA,IAAI,CAACF,IAAI,CAACE,cAAc,GAAGA,cAAAA;AAC3B,QAAA,OAAO,IAAI;AACb,IAAA;AAEA;;;;;;;;MASOC,YAAAA,CAAaA,YAAoB,EAA8B;AACpE,QAAA,IAAI,CAACH,IAAI,CAACG,YAAY,GAAGA,YAAAA;AACzB,QAAA,OAAO,IAAI;AACb,IAAA;AAEA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ACrC,IAAA;;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.4.3",
3
+ "version": "19.5.0",
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.4.3",
34
+ "@zthun/janitor-build-config": "^19.5.0",
35
35
  "typescript": "~5.9.3",
36
36
  "vite": "^7.2.2",
37
37
  "vitest": "^4.0.10"
38
38
  },
39
- "gitHead": "93eb960c8b89fbb9b084f8d4ed89c33c9f45147e"
39
+ "gitHead": "4fa19cda4d37c34db1b5aae9f4a958a247ce3f46"
40
40
  }