@storm-software/eslint 0.169.92 → 0.169.94
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-4CXNUMUG.js +2 -39
- package/dist/chunk-A32JZBPO.js +2 -6
- package/dist/chunk-DJ2ZXQYV.js +4 -10
- package/dist/chunk-FXLMJ2Y5.js +3 -9
- package/dist/{chunk-DPTIR64R.js → chunk-IWQLEJ77.js} +11 -19
- package/dist/chunk-O5CGESKJ.js +20 -29
- package/dist/chunk-PWQ34SJ2.js +4 -10
- package/dist/chunk-T4LUMNGJ.js +3 -21
- package/dist/chunk-UVJN4TQE.js +5 -12
- package/dist/preset.cjs +9387 -0
- package/dist/preset.d.cts +34 -0
- package/dist/preset.js +128 -329
- package/dist/types.cjs +2 -0
- package/dist/types.d.cts +18781 -0
- package/dist/types.js +1 -3
- package/dist/utils/banner-plugin.cjs +454 -0
- package/dist/utils/banner-plugin.d.cts +6 -0
- package/dist/utils/banner-plugin.js +4 -9
- package/dist/utils/combine.cjs +9 -0
- package/dist/utils/combine.d.cts +14 -0
- package/dist/utils/combine.js +3 -6
- package/dist/utils/constants.cjs +206 -0
- package/dist/utils/constants.d.cts +36 -0
- package/dist/utils/constants.js +2 -73
- package/dist/utils/correct-paths.cjs +232 -0
- package/dist/utils/correct-paths.d.cts +30 -0
- package/dist/utils/correct-paths.js +2 -33
- package/dist/utils/find-workspace-root.cjs +201 -0
- package/dist/utils/find-workspace-root.d.cts +16 -0
- package/dist/utils/find-workspace-root.js +3 -10
- package/dist/utils/format-config.cjs +20 -0
- package/dist/utils/format-config.d.cts +5 -0
- package/dist/utils/format-config.js +2 -7
- package/dist/utils/get-file-banner.cjs +103 -0
- package/dist/utils/get-file-banner.d.cts +12 -0
- package/dist/utils/get-file-banner.js +3 -8
- package/dist/utils/helpers.cjs +87 -0
- package/dist/utils/helpers.d.cts +55 -0
- package/dist/utils/helpers.js +2 -19
- package/dist/utils/index.cjs +224 -0
- package/dist/utils/index.d.cts +3 -0
- package/dist/utils/index.js +3 -79
- package/dist/utils/tsconfig-path.cjs +152 -0
- package/dist/utils/tsconfig-path.d.cts +3 -0
- package/dist/utils/tsconfig-path.js +3 -8
- package/package.json +46 -48
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Linter } from 'eslint';
|
|
2
|
+
import { FlatConfigComposer } from 'eslint-flat-config-utils';
|
|
3
|
+
import { OptionsConfig, TypedFlatConfigItem, Awaitable, ConfigNames, RuleOptions } from './types.cjs';
|
|
4
|
+
import '@nx/eslint-plugin/src/utils/runtime-lint-utils';
|
|
5
|
+
import '@stylistic/eslint-plugin';
|
|
6
|
+
import '@typescript-eslint/parser';
|
|
7
|
+
import 'eslint-config-flat-gitignore';
|
|
8
|
+
|
|
9
|
+
declare const defaultPluginRenaming: {
|
|
10
|
+
"@eslint-react": string;
|
|
11
|
+
"@eslint-react/dom": string;
|
|
12
|
+
"@eslint-react/hooks-extra": string;
|
|
13
|
+
"@eslint-react/naming-convention": string;
|
|
14
|
+
"@stylistic": string;
|
|
15
|
+
"@typescript-eslint": string;
|
|
16
|
+
"import-x": string;
|
|
17
|
+
n: string;
|
|
18
|
+
vitest: string;
|
|
19
|
+
yml: string;
|
|
20
|
+
};
|
|
21
|
+
type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
|
|
22
|
+
declare function resolveSubOptions<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): ResolvedOptions<OptionsConfig[K]>;
|
|
23
|
+
declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): Partial<Linter.RulesRecord & RuleOptions>;
|
|
24
|
+
/**
|
|
25
|
+
* Get the ESLint configuration for a Storm workspace.
|
|
26
|
+
*
|
|
27
|
+
* @param options - The preset options.
|
|
28
|
+
* @param userConfigs - Additional ESLint configurations.
|
|
29
|
+
*/
|
|
30
|
+
declare function getStormConfig(options: OptionsConfig & Omit<TypedFlatConfigItem, "files">, ...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<object, string> | Linter.Config[]>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
31
|
+
declare const getConfig: typeof getStormConfig;
|
|
32
|
+
declare const defineConfig: typeof getStormConfig;
|
|
33
|
+
|
|
34
|
+
export { type ResolvedOptions, getStormConfig as default, defaultPluginRenaming, defineConfig, getConfig, getOverrides, getStormConfig, resolveSubOptions };
|