@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/README.md +1 -1
- package/dist/{chunk-WYU7W4UW.js → chunk-H5G3BZKC.js} +4 -1
- package/dist/{chunk-DMZFJCWX.js → chunk-KELTZLAL.js} +5 -2
- package/dist/chunk-W2N2UAU4.js +46 -0
- package/dist/{chunk-RU7GXBCG.js → chunk-XUA7TAHD.js} +3 -0
- package/dist/{chunk-C74DAXLP.js → chunk-ZKDKPCV5.js} +2 -0
- package/dist/preset.cjs +1844 -231
- package/dist/preset.d.cts +0 -1
- package/dist/preset.d.ts +0 -1
- package/dist/preset.js +1810 -234
- package/dist/types.d.cts +44 -2
- package/dist/types.d.ts +44 -2
- package/dist/types.js +4 -1
- package/dist/utils/combine.d.cts +0 -1
- package/dist/utils/combine.d.ts +0 -1
- package/dist/utils/combine.js +2 -1
- package/dist/utils/correct-paths.js +2 -2
- package/dist/utils/find-workspace-root.js +3 -3
- package/dist/utils/format-config.js +2 -1
- package/dist/utils/helpers.js +2 -2
- package/dist/utils/tsconfig-path.js +4 -4
- package/package.json +8 -8
- package/dist/chunk-WBEFFLSU.js +0 -13
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
package/dist/utils/combine.d.cts
CHANGED
|
@@ -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';
|
package/dist/utils/combine.d.ts
CHANGED
|
@@ -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';
|
package/dist/utils/combine.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { basename, correctPaths, dirname, extname, format, isAbsolute, joinPaths, normalizeString, normalizeWindowsPath, parse, relative, resolve, sep, toNamespacedPath } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
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-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { findWorkspaceRoot, findWorkspaceRootSafe } from '../chunk-H5G3BZKC.js';
|
|
2
|
+
import '../chunk-XUA7TAHD.js';
|
|
3
|
+
import '../chunk-W2N2UAU4.js';
|
package/dist/utils/helpers.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ensurePackages, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, parserPlain, renameRules } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
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-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
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.
|
|
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.
|
|
145
|
-
"@storm-software/config-tools": "1.190.
|
|
146
|
-
"@storm-software/
|
|
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": "
|
|
246
|
+
"gitHead": "cce4d713c2752b7e44b1aba48825e14d4157983c"
|
|
247
247
|
}
|
package/dist/chunk-WBEFFLSU.js
DELETED
|
@@ -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 };
|