@storm-software/eslint 0.170.71 → 0.170.73

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/types.d.cts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { DepConstraint } from '@nx/eslint-plugin/src/utils/runtime-lint-utils';
2
- import { Options } from '@storm-software/eslint-plugin-banner/rules/banner';
3
2
  import { StylisticCustomizeOptions } from '@stylistic/eslint-plugin';
4
3
  import { ParserOptions } from '@typescript-eslint/parser';
5
4
  import { Linter } from 'eslint';
@@ -835,6 +834,11 @@ Backward pagination arguments
835
834
  * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/valid-compile/
836
835
  */
837
836
  'astro/valid-compile'?: Linter.RuleEntry<[]>
837
+ /**
838
+ * Ensures the file has a organization specific banner at the top of source code files
839
+ * @see https://docs.stormsoftware.com/projects/shell-shock/eslint/rules/banner.md
840
+ */
841
+ 'banner/banner'?: Linter.RuleEntry<BannerBanner>
838
842
  /**
839
843
  * Enforce the use of variables within the scope they are defined
840
844
  * @see https://eslint.org/docs/latest/rules/block-scoped-var
@@ -8399,6 +8403,29 @@ type AstroSortAttributes = []|[{
8399
8403
  ignoreCase?: boolean
8400
8404
  order?: ("asc" | "desc")
8401
8405
  }]
8406
+ // ----- banner/banner -----
8407
+ type BannerBanner = []|[{
8408
+
8409
+ name: string
8410
+
8411
+ license?: string
8412
+
8413
+ organization?: string
8414
+
8415
+ licensing?: string
8416
+
8417
+ repository?: string
8418
+
8419
+ docs?: string
8420
+
8421
+ homepage?: string
8422
+
8423
+ commentStyle?: string
8424
+
8425
+ newlines?: number
8426
+
8427
+ lineEndings?: ("unix" | "windows")
8428
+ }]
8402
8429
  // ----- block-spacing -----
8403
8430
  type BlockSpacing = []|[("always" | "never")]
8404
8431
  // ----- brace-style -----
@@ -18104,7 +18131,22 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
18104
18131
  onlyEquality?: boolean
18105
18132
  }]
18106
18133
  // Names of all the configs
18107
- type ConfigNames = 'storm/cspell/rules' | 'storm/astro/setup' | 'storm/astro/rules' | 'storm/formatter/setup' | 'storm/imports/rules' | 'storm/graphql/setup' | 'storm/graphql/rules' | 'storm/graphql/relay' | 'storm/javascript/setup' | 'storm/javascript/rules' | 'storm/jsx/rules' | 'storm/jsdoc/rules' | 'storm/jsonc/setup' | 'storm/jsonc/rules' | 'storm/markdown/setup' | 'storm/markdown/processor' | 'storm/markdown/parser' | 'mdx/flat' | 'storm/node/rules' | 'storm/nx/setup' | 'storm/nx/schema' | 'storm/nx/dependency-check' | 'storm/nx/module-boundaries' | 'storm/next/rules' | 'storm/prettier' | 'storm/perfectionist/rules' | 'storm/pnpm/setup' | 'storm/pnpm/package-json' | 'storm/pnpm/pnpm-workspace-yaml' | 'storm/react/setup' | 'storm/react/rules' | 'storm/react-native/rules' | 'storm/sort/package-json' | 'storm/stylistic/rules' | 'storm/secrets/rules' | 'storm/storybook/setup' | 'storm/storybook/rules' | 'storm/storybook/main' | 'storm/test/setup' | 'storm/test/rules' | 'storm/tsdoc/rules' | 'storm/toml/setup' | 'storm/toml/rules' | 'storm/typescript/setup' | 'storm/typescript/parser' | 'storm/typescript/type-aware-parser' | 'storm/typescript/rules' | 'storm/typescript/rules-type-aware' | 'storm/regexp/rules' | 'storm/unicorn/rules' | 'storm/unocss' | 'storm/yaml/setup' | 'storm/yaml/rules' | 'storm/zod/rules'
18134
+ type ConfigNames = 'storm/banner' | 'storm/cspell/rules' | 'storm/astro/setup' | 'storm/astro/rules' | 'storm/formatter/setup' | 'storm/imports/rules' | 'storm/graphql/setup' | 'storm/graphql/rules' | 'storm/graphql/relay' | 'storm/javascript/setup' | 'storm/javascript/rules' | 'storm/jsx/rules' | 'storm/jsdoc/rules' | 'storm/jsonc/setup' | 'storm/jsonc/rules' | 'storm/markdown/setup' | 'storm/markdown/processor' | 'storm/markdown/parser' | 'mdx/flat' | 'storm/node/rules' | 'storm/nx/setup' | 'storm/nx/schema' | 'storm/nx/dependency-check' | 'storm/nx/module-boundaries' | 'storm/next/rules' | 'storm/prettier' | 'storm/perfectionist/rules' | 'storm/pnpm/setup' | 'storm/pnpm/package-json' | 'storm/pnpm/pnpm-workspace-yaml' | 'storm/react/setup' | 'storm/react/rules' | 'storm/react-native/rules' | 'storm/sort/package-json' | 'storm/stylistic/rules' | 'storm/secrets/rules' | 'storm/storybook/setup' | 'storm/storybook/rules' | 'storm/storybook/main' | 'storm/test/setup' | 'storm/test/rules' | 'storm/tsdoc/rules' | 'storm/toml/setup' | 'storm/toml/rules' | 'storm/typescript/setup' | 'storm/typescript/parser' | 'storm/typescript/type-aware-parser' | 'storm/typescript/rules' | 'storm/typescript/rules-type-aware' | 'storm/regexp/rules' | 'storm/unicorn/rules' | 'storm/unocss' | 'storm/yaml/setup' | 'storm/yaml/rules' | 'storm/zod/rules'
18135
+
18136
+ type Options = [
18137
+ {
18138
+ name: string;
18139
+ license?: string;
18140
+ organization?: string;
18141
+ licensing?: string;
18142
+ repository?: string;
18143
+ docs?: string;
18144
+ homepage?: string;
18145
+ commentStyle?: "block" | "line" | string;
18146
+ newlines?: number;
18147
+ lineEndings?: "unix" | "windows";
18148
+ }
18149
+ ];
18108
18150
 
18109
18151
  /**
18110
18152
  * Vendor types from Prettier so we don't rely on the dependency.
package/dist/types.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { DepConstraint } from '@nx/eslint-plugin/src/utils/runtime-lint-utils';
2
- import { Options } from '@storm-software/eslint-plugin-banner/rules/banner';
3
2
  import { StylisticCustomizeOptions } from '@stylistic/eslint-plugin';
4
3
  import { ParserOptions } from '@typescript-eslint/parser';
5
4
  import { Linter } from 'eslint';
@@ -835,6 +834,11 @@ Backward pagination arguments
835
834
  * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/valid-compile/
836
835
  */
837
836
  'astro/valid-compile'?: Linter.RuleEntry<[]>
837
+ /**
838
+ * Ensures the file has a organization specific banner at the top of source code files
839
+ * @see https://docs.stormsoftware.com/projects/shell-shock/eslint/rules/banner.md
840
+ */
841
+ 'banner/banner'?: Linter.RuleEntry<BannerBanner>
838
842
  /**
839
843
  * Enforce the use of variables within the scope they are defined
840
844
  * @see https://eslint.org/docs/latest/rules/block-scoped-var
@@ -8399,6 +8403,29 @@ type AstroSortAttributes = []|[{
8399
8403
  ignoreCase?: boolean
8400
8404
  order?: ("asc" | "desc")
8401
8405
  }]
8406
+ // ----- banner/banner -----
8407
+ type BannerBanner = []|[{
8408
+
8409
+ name: string
8410
+
8411
+ license?: string
8412
+
8413
+ organization?: string
8414
+
8415
+ licensing?: string
8416
+
8417
+ repository?: string
8418
+
8419
+ docs?: string
8420
+
8421
+ homepage?: string
8422
+
8423
+ commentStyle?: string
8424
+
8425
+ newlines?: number
8426
+
8427
+ lineEndings?: ("unix" | "windows")
8428
+ }]
8402
8429
  // ----- block-spacing -----
8403
8430
  type BlockSpacing = []|[("always" | "never")]
8404
8431
  // ----- brace-style -----
@@ -18104,7 +18131,22 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
18104
18131
  onlyEquality?: boolean
18105
18132
  }]
18106
18133
  // Names of all the configs
18107
- type ConfigNames = 'storm/cspell/rules' | 'storm/astro/setup' | 'storm/astro/rules' | 'storm/formatter/setup' | 'storm/imports/rules' | 'storm/graphql/setup' | 'storm/graphql/rules' | 'storm/graphql/relay' | 'storm/javascript/setup' | 'storm/javascript/rules' | 'storm/jsx/rules' | 'storm/jsdoc/rules' | 'storm/jsonc/setup' | 'storm/jsonc/rules' | 'storm/markdown/setup' | 'storm/markdown/processor' | 'storm/markdown/parser' | 'mdx/flat' | 'storm/node/rules' | 'storm/nx/setup' | 'storm/nx/schema' | 'storm/nx/dependency-check' | 'storm/nx/module-boundaries' | 'storm/next/rules' | 'storm/prettier' | 'storm/perfectionist/rules' | 'storm/pnpm/setup' | 'storm/pnpm/package-json' | 'storm/pnpm/pnpm-workspace-yaml' | 'storm/react/setup' | 'storm/react/rules' | 'storm/react-native/rules' | 'storm/sort/package-json' | 'storm/stylistic/rules' | 'storm/secrets/rules' | 'storm/storybook/setup' | 'storm/storybook/rules' | 'storm/storybook/main' | 'storm/test/setup' | 'storm/test/rules' | 'storm/tsdoc/rules' | 'storm/toml/setup' | 'storm/toml/rules' | 'storm/typescript/setup' | 'storm/typescript/parser' | 'storm/typescript/type-aware-parser' | 'storm/typescript/rules' | 'storm/typescript/rules-type-aware' | 'storm/regexp/rules' | 'storm/unicorn/rules' | 'storm/unocss' | 'storm/yaml/setup' | 'storm/yaml/rules' | 'storm/zod/rules'
18134
+ type ConfigNames = 'storm/banner' | 'storm/cspell/rules' | 'storm/astro/setup' | 'storm/astro/rules' | 'storm/formatter/setup' | 'storm/imports/rules' | 'storm/graphql/setup' | 'storm/graphql/rules' | 'storm/graphql/relay' | 'storm/javascript/setup' | 'storm/javascript/rules' | 'storm/jsx/rules' | 'storm/jsdoc/rules' | 'storm/jsonc/setup' | 'storm/jsonc/rules' | 'storm/markdown/setup' | 'storm/markdown/processor' | 'storm/markdown/parser' | 'mdx/flat' | 'storm/node/rules' | 'storm/nx/setup' | 'storm/nx/schema' | 'storm/nx/dependency-check' | 'storm/nx/module-boundaries' | 'storm/next/rules' | 'storm/prettier' | 'storm/perfectionist/rules' | 'storm/pnpm/setup' | 'storm/pnpm/package-json' | 'storm/pnpm/pnpm-workspace-yaml' | 'storm/react/setup' | 'storm/react/rules' | 'storm/react-native/rules' | 'storm/sort/package-json' | 'storm/stylistic/rules' | 'storm/secrets/rules' | 'storm/storybook/setup' | 'storm/storybook/rules' | 'storm/storybook/main' | 'storm/test/setup' | 'storm/test/rules' | 'storm/tsdoc/rules' | 'storm/toml/setup' | 'storm/toml/rules' | 'storm/typescript/setup' | 'storm/typescript/parser' | 'storm/typescript/type-aware-parser' | 'storm/typescript/rules' | 'storm/typescript/rules-type-aware' | 'storm/regexp/rules' | 'storm/unicorn/rules' | 'storm/unocss' | 'storm/yaml/setup' | 'storm/yaml/rules' | 'storm/zod/rules'
18135
+
18136
+ type Options = [
18137
+ {
18138
+ name: string;
18139
+ license?: string;
18140
+ organization?: string;
18141
+ licensing?: string;
18142
+ repository?: string;
18143
+ docs?: string;
18144
+ homepage?: string;
18145
+ commentStyle?: "block" | "line" | string;
18146
+ newlines?: number;
18147
+ lineEndings?: "unix" | "windows";
18148
+ }
18149
+ ];
18108
18150
 
18109
18151
  /**
18110
18152
  * Vendor types from Prettier so we don't rely on the dependency.
package/dist/types.js CHANGED
@@ -1 +1,4 @@
1
- import './chunk-WBEFFLSU.js';
1
+ import { init_esm_shims } from './chunk-W2N2UAU4.js';
2
+
3
+ // src/types.ts
4
+ init_esm_shims();
@@ -1,7 +1,6 @@
1
1
  import { Awaitable } from 'eslint-flat-config-utils';
2
2
  import { TypedFlatConfigItem } from '../types.cjs';
3
3
  import '@nx/eslint-plugin/src/utils/runtime-lint-utils';
4
- import '@storm-software/eslint-plugin-banner/rules/banner';
5
4
  import '@stylistic/eslint-plugin';
6
5
  import '@typescript-eslint/parser';
7
6
  import 'eslint';
@@ -1,7 +1,6 @@
1
1
  import { Awaitable } from 'eslint-flat-config-utils';
2
2
  import { TypedFlatConfigItem } from '../types.js';
3
3
  import '@nx/eslint-plugin/src/utils/runtime-lint-utils';
4
- import '@storm-software/eslint-plugin-banner/rules/banner';
5
4
  import '@stylistic/eslint-plugin';
6
5
  import '@typescript-eslint/parser';
7
6
  import 'eslint';
@@ -1,6 +1,7 @@
1
- import '../chunk-WBEFFLSU.js';
1
+ import { init_esm_shims } from '../chunk-W2N2UAU4.js';
2
2
 
3
3
  // src/utils/combine.ts
4
+ init_esm_shims();
4
5
  async function combine(...configs) {
5
6
  const resolved = await Promise.all(configs);
6
7
  return resolved.flat();
@@ -1,2 +1,2 @@
1
- export { basename, correctPaths, dirname, extname, format, isAbsolute, joinPaths, normalizeString, normalizeWindowsPath, parse, relative, resolve, sep, toNamespacedPath } from '../chunk-RU7GXBCG.js';
2
- import '../chunk-WBEFFLSU.js';
1
+ export { basename, correctPaths, dirname, extname, format, isAbsolute, joinPaths, normalizeString, normalizeWindowsPath, parse, relative, resolve, sep, toNamespacedPath } from '../chunk-XUA7TAHD.js';
2
+ import '../chunk-W2N2UAU4.js';
@@ -1,3 +1,3 @@
1
- export { findWorkspaceRoot, findWorkspaceRootSafe } from '../chunk-WYU7W4UW.js';
2
- import '../chunk-RU7GXBCG.js';
3
- import '../chunk-WBEFFLSU.js';
1
+ export { findWorkspaceRoot, findWorkspaceRootSafe } from '../chunk-H5G3BZKC.js';
2
+ import '../chunk-XUA7TAHD.js';
3
+ import '../chunk-W2N2UAU4.js';
@@ -1,6 +1,7 @@
1
- import '../chunk-WBEFFLSU.js';
1
+ import { init_esm_shims } from '../chunk-W2N2UAU4.js';
2
2
 
3
3
  // src/utils/format-config.ts
4
+ init_esm_shims();
4
5
  var formatConfig = (name, config = []) => {
5
6
  return config.map((config2, index) => {
6
7
  if (!config2 || config2.name) {
@@ -1,2 +1,2 @@
1
- export { ensurePackages, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, parserPlain, renameRules } from '../chunk-C74DAXLP.js';
2
- import '../chunk-WBEFFLSU.js';
1
+ export { ensurePackages, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, parserPlain, renameRules } from '../chunk-ZKDKPCV5.js';
2
+ import '../chunk-W2N2UAU4.js';
@@ -1,4 +1,4 @@
1
- export { checkTsConfigPath, getTsConfigPath } from '../chunk-DMZFJCWX.js';
2
- import '../chunk-WYU7W4UW.js';
3
- import '../chunk-RU7GXBCG.js';
4
- import '../chunk-WBEFFLSU.js';
1
+ export { checkTsConfigPath, getTsConfigPath } from '../chunk-KELTZLAL.js';
2
+ import '../chunk-H5G3BZKC.js';
3
+ import '../chunk-XUA7TAHD.js';
4
+ import '../chunk-W2N2UAU4.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.170.71",
3
+ "version": "0.170.73",
4
4
  "private": false,
5
5
  "description": "A package containing the base ESLint configuration used by Storm Software across many projects.",
6
6
  "keywords": [
@@ -141,12 +141,9 @@
141
141
  "@eslint/eslintrc": "^3.3.5",
142
142
  "@eslint/markdown": "^6.6.0",
143
143
  "@nx/eslint-plugin": "22.7.5",
144
- "@storm-software/config": "1.137.81",
145
- "@storm-software/config-tools": "1.190.49",
146
- "@storm-software/eslint-plugin-banner": "0.0.11",
147
- "@storm-software/eslint-plugin-pnpm": "0.0.11",
148
- "@storm-software/eslint-plugin-tsdoc": "0.0.11",
149
- "@storm-software/package-constants": "0.1.62",
144
+ "@storm-software/config": "1.137.83",
145
+ "@storm-software/config-tools": "1.190.51",
146
+ "@storm-software/package-constants": "0.1.64",
150
147
  "@stylistic/eslint-plugin": "^4.4.1",
151
148
  "@typescript-eslint/eslint-plugin": "^8.61.0",
152
149
  "@typescript-eslint/parser": "^8.61.0",
@@ -193,6 +190,9 @@
193
190
  "@next/eslint-plugin-next": "^15.5.19",
194
191
  "@nx/eslint": "22.7.5",
195
192
  "@prettier/plugin-xml": "^3.4.2",
193
+ "@storm-software/eslint-plugin-banner": "0.0.13",
194
+ "@storm-software/eslint-plugin-pnpm": "0.0.13",
195
+ "@storm-software/eslint-plugin-tsdoc": "0.0.13",
196
196
  "@stylistic/eslint-plugin-migrate": "^4.4.1",
197
197
  "@types/eslint": "^9.6.1",
198
198
  "@types/eslint__js": "^8.42.3",
@@ -243,5 +243,5 @@
243
243
  "prettier-plugin-astro": "^0.14.0"
244
244
  },
245
245
  "publishConfig": { "access": "public" },
246
- "gitHead": "e46d17f5911b4e7cac525e87bafdc19b43eab7ef"
246
+ "gitHead": "cce4d713c2752b7e44b1aba48825e14d4157983c"
247
247
  }
@@ -1,13 +0,0 @@
1
- import { fileURLToPath } from 'url';
2
- import 'path';
3
-
4
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
5
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
6
- }) : x)(function(x) {
7
- if (typeof require !== "undefined") return require.apply(this, arguments);
8
- throw Error('Dynamic require of "' + x + '" is not supported');
9
- });
10
- var getFilename = () => fileURLToPath(import.meta.url);
11
- var __filename$1 = /* @__PURE__ */ getFilename();
12
-
13
- export { __filename$1 as __filename, __require };