@storm-software/eslint-plugin-banner 0.0.116 → 0.0.117

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.
@@ -1,5 +1,3 @@
1
1
  import { Linter } from "eslint";
2
- //#region src/configs/index.d.ts
3
2
  declare const configs: Record<string, Linter.Config>;
4
- //#endregion
5
3
  export { configs };
@@ -1,5 +1,4 @@
1
1
  import config from "./recommended.mjs";
2
- //#region src/configs/index.ts
2
+ // src/configs/index.ts
3
3
  const configs = { recommended: config };
4
- //#endregion
5
4
  export { configs };
@@ -1,5 +1,3 @@
1
1
  import { Linter } from "eslint";
2
- //#region src/configs/recommended.d.ts
3
2
  declare const config: Linter.Config;
4
- //#endregion
5
3
  export { config as default };
@@ -1,6 +1,6 @@
1
- import { t as plugin } from "../plugin-DG00jFAF.mjs";
1
+ import { t as plugin } from "../plugin-Dbtla_P6.mjs";
2
2
  import { GLOB_EXCLUDE, GLOB_SRC } from "@storm-software/package-constants/globs";
3
- //#region src/configs/recommended.ts
3
+ // src/configs/recommended.ts
4
4
  const config = {
5
5
  files: [GLOB_SRC],
6
6
  ignores: GLOB_EXCLUDE,
@@ -11,5 +11,4 @@ const config = {
11
11
  newlines: 2
12
12
  }] }
13
13
  };
14
- //#endregion
15
14
  export { config as default };
@@ -1,10 +1,8 @@
1
1
  import { Rule } from "eslint";
2
2
  import { RuleWithMetaAndName } from "@typescript-eslint/utils/eslint-utils";
3
- //#region src/helpers/create-rule.d.ts
4
3
  type RuleModule<T extends readonly unknown[]> = Rule.RuleModule & {
5
4
  defaultOptions: T;
6
5
  };
7
6
  declare const createRule: <TOptions extends readonly unknown[], TMessageIds extends string>({ name, meta, ...rule }: Readonly<RuleWithMetaAndName<TOptions, TMessageIds>>) => RuleModule<TOptions>;
8
7
  declare function warnOnce(message: string): void;
9
- //#endregion
10
8
  export { RuleModule, createRule, warnOnce };
@@ -1,5 +1,5 @@
1
1
  import defu from "defu";
2
- //#region src/helpers/create-rule.ts
2
+ // src/helpers/create-rule.ts
3
3
  /**
4
4
  * Creates reusable function to create rules with default options and docs URLs.
5
5
  *
@@ -44,5 +44,4 @@ function warnOnce(message) {
44
44
  warned.add(message);
45
45
  console.warn(message);
46
46
  }
47
- //#endregion
48
47
  export { createRule, warnOnce };
@@ -1,4 +1,3 @@
1
- //#region src/helpers/get-banner.d.ts
2
1
  interface BannerOptions {
3
2
  name: string;
4
3
  license?: string;
@@ -15,5 +14,4 @@ interface BannerOptions {
15
14
  * @returns The banner header
16
15
  */
17
16
  declare function getBanner(options: BannerOptions): string;
18
- //#endregion
19
17
  export { BannerOptions, getBanner };
@@ -1,5 +1,5 @@
1
1
  import { ACRONYMS_LIST } from "@storm-software/package-constants/acronyms";
2
- //#region src/helpers/get-banner.ts
2
+ // src/helpers/get-banner.ts
3
3
  /**
4
4
  * Get a banner header to display at the top of a file
5
5
  *
@@ -47,5 +47,4 @@ ${padding}🗲 ${formattedOrganization} ${titleName ? `- ${titleName}` : ""}
47
47
 
48
48
  ------------------------------------------------------------------- `;
49
49
  }
50
- //#endregion
51
50
  export { getBanner };
package/dist/index.d.mts CHANGED
@@ -3,7 +3,6 @@ import { RuleModule } from "./helpers/create-rule.mjs";
3
3
  import { Options } from "./rules/banner.mjs";
4
4
  import { plugin } from "./plugin.mjs";
5
5
  import { ESLint, Linter } from "eslint";
6
- //#region src/index.d.ts
7
6
  /**
8
7
  * ESLint plugin for Storm Software to enforce a consistent banner header across all source files in a project.
9
8
  *
@@ -30,5 +29,4 @@ declare const rules: {
30
29
  type RuleDefinitions = (typeof plugin)["rules"];
31
30
  type RuleOptions = { [K in keyof RuleDefinitions]: RuleDefinitions[K]["defaultOptions"]; };
32
31
  type Rules = { [K in keyof RuleOptions]: Linter.RuleEntry<RuleOptions[K]>; };
33
- //#endregion
34
32
  export { RuleOptions, Rules, configs, eslintPlugin as default, rules };
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { t as plugin } from "./plugin-DG00jFAF.mjs";
1
+ import { t as plugin } from "./plugin-Dbtla_P6.mjs";
2
2
  import { configs } from "./configs/index.mjs";
3
- //#region src/index.ts
3
+ // src/index.ts
4
4
  /**
5
5
  * ESLint plugin for Storm Software to enforce a consistent banner header across all source files in a project.
6
6
  *
@@ -25,5 +25,4 @@ const eslintPlugin = {
25
25
  configs
26
26
  };
27
27
  const rules = plugin.rules;
28
- //#endregion
29
28
  export { configs, eslintPlugin as default, rules };
@@ -1,12 +1,10 @@
1
1
  import banner_default from "./rules/banner.mjs";
2
- //#endregion
3
- //#region src/plugin.ts
2
+ // src/plugin.ts
4
3
  const plugin = {
5
4
  meta: {
6
5
  name: "banner",
7
- version: "0.0.115"
6
+ version: "0.0.116"
8
7
  },
9
8
  rules: { banner: banner_default }
10
9
  };
11
- //#endregion
12
10
  export { plugin as t };
package/dist/plugin.d.mts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { RuleModule } from "./helpers/create-rule.mjs";
2
2
  import { Options } from "./rules/banner.mjs";
3
- //#region src/plugin.d.ts
4
3
  declare const plugin: {
5
4
  meta: {
6
5
  name: string;
@@ -10,5 +9,4 @@ declare const plugin: {
10
9
  banner: RuleModule<Options>;
11
10
  };
12
11
  };
13
- //#endregion
14
12
  export { plugin };
package/dist/plugin.mjs CHANGED
@@ -1 +1 @@
1
- export { t as plugin } from "./plugin-DG00jFAF.mjs";
1
+ export { t as plugin } from "./plugin-Dbtla_P6.mjs";
@@ -1,5 +1,4 @@
1
1
  import { RuleModule } from "../helpers/create-rule.mjs";
2
- //#region src/rules/banner.d.ts
3
2
  declare const RULE_NAME = "banner";
4
3
  type MessageIds = "missingBanner" | "incorrectComment" | "incorrectBanner" | "noNewlineAfterBanner";
5
4
  type Options = [{
@@ -15,5 +14,4 @@ type Options = [{
15
14
  lineEndings?: "unix" | "windows";
16
15
  }];
17
16
  declare const _default: RuleModule<Options>;
18
- //#endregion
19
17
  export { MessageIds, Options, RULE_NAME, _default as default };
@@ -1,7 +1,7 @@
1
1
  import { createRule } from "../helpers/create-rule.mjs";
2
2
  import { getBanner } from "../helpers/get-banner.mjs";
3
3
  import { EOL } from "node:os";
4
- //#region src/rules/banner.ts
4
+ // src/rules/banner.ts
5
5
  const RULE_NAME = "banner";
6
6
  function match(actual, expected) {
7
7
  if (expected instanceof RegExp) return expected.test(actual);
@@ -249,5 +249,4 @@ var banner_default = createRule({
249
249
  } };
250
250
  }
251
251
  });
252
- //#endregion
253
252
  export { RULE_NAME, banner_default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint-plugin-banner",
3
- "version": "0.0.116",
3
+ "version": "0.0.117",
4
4
  "private": false,
5
5
  "description": "An ESLint Plugin that enforces the existence of file banners in Storm Software projects.",
6
6
  "keywords": ["eslint", "eslint-plugin", "storm-software"],
@@ -53,14 +53,14 @@
53
53
  "typings": "dist/index.d.mts",
54
54
  "files": ["dist", "docs"],
55
55
  "dependencies": {
56
- "@storm-software/package-constants": "0.1.163",
57
- "@typescript-eslint/utils": "^8.71.2",
56
+ "@storm-software/package-constants": "0.1.164",
57
+ "@typescript-eslint/utils": "^8.72.0",
58
58
  "defu": "^6.1.7"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@eslint/compat": "^2.1.1",
62
62
  "@eslint/config-inspector": "^1.5.0",
63
- "@storm-software/prettier": "0.59.204",
63
+ "@storm-software/prettier": "0.59.205",
64
64
  "@types/eslint": "^9.6.1",
65
65
  "@types/eslint__js": "^8.42.3",
66
66
  "@types/estree": "^1.0.9",
@@ -77,5 +77,5 @@
77
77
  "peerDependencies": { "eslint": ">=9.39.3" },
78
78
  "peerDependenciesMeta": { "eslint": { "optional": false } },
79
79
  "publishConfig": { "access": "public" },
80
- "gitHead": "87ef7f2f43493c436c1c7277f70cf0a48a567adb"
80
+ "gitHead": "3024fb5d376756064c200c95f2bc9978735d2a71"
81
81
  }