@isentinel/eslint-config 4.7.4 → 4.7.6

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.
Files changed (3) hide show
  1. package/dist/index.d.mts +30 -14
  2. package/dist/index.mjs +3948 -3946
  3. package/package.json +15 -13
package/dist/index.d.mts CHANGED
@@ -7901,6 +7901,11 @@ interface RuleOptions {
7901
7901
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
7902
7902
  */
7903
7903
  'vitest/no-test-return-statement'?: Linter.RuleEntry<[]>;
7904
+ /**
7905
+ * Disallow unnecessary async function wrapper for expected promises
7906
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-unneeded-async-expect-function.md
7907
+ */
7908
+ 'vitest/no-unneeded-async-expect-function'?: Linter.RuleEntry<[]>;
7904
7909
  /**
7905
7910
  * Enforce padding around `afterAll` blocks
7906
7911
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-all-blocks.md
@@ -16860,7 +16865,7 @@ interface OptionsConfig extends OptionsComponentExtensions, OptionsProjectType {
16860
16865
  *
16861
16866
  * @default true
16862
16867
  */
16863
- roblox?: boolean | OptionsOverridesTypeAware;
16868
+ roblox?: boolean | (OptionsFilesTypeAware & OptionsOverridesTypeAware);
16864
16869
  /**
16865
16870
  * Customize root-level glob patterns.
16866
16871
  *
@@ -16913,7 +16918,7 @@ interface OptionsConfig extends OptionsComponentExtensions, OptionsProjectType {
16913
16918
  *
16914
16919
  * @default auto-detect based on the dependencies
16915
16920
  */
16916
- typescript?: OptionsOverridesTypeAware & OptionsTypescript;
16921
+ typescript?: OptionsTypescript;
16917
16922
  /**
16918
16923
  * Enable YAML support.
16919
16924
  *
@@ -16923,7 +16928,19 @@ interface OptionsConfig extends OptionsComponentExtensions, OptionsProjectType {
16923
16928
  }
16924
16929
  interface OptionsFiles {
16925
16930
  /** Override the `files` option to provide custom globs. */
16926
- files?: Array<string>;
16931
+ files?: Array<Array<string> | string>;
16932
+ }
16933
+ interface OptionsFilesTypeAware extends OptionsFiles {
16934
+ /**
16935
+ * Override the `filesTypeAware` option to provide custom globs for type
16936
+ * aware files.
16937
+ */
16938
+ filesTypeAware?: Array<Array<string> | string>;
16939
+ /**
16940
+ * Override the `ignoresTypeAware` option to provide custom globs for type
16941
+ * aware files.
16942
+ */
16943
+ ignoresTypeAware?: Array<string>;
16927
16944
  }
16928
16945
  interface OptionsFormatters {
16929
16946
  /**
@@ -16975,13 +16992,16 @@ interface OptionsFormatters {
16975
16992
  */
16976
16993
  yaml?: boolean;
16977
16994
  }
16995
+ interface OptionsHasRoblox {
16996
+ roblox?: boolean;
16997
+ }
16978
16998
  interface OptionsHasTypeScript {
16979
16999
  typescript?: boolean;
16980
17000
  }
16981
17001
  interface OptionsIsInEditor {
16982
17002
  isInEditor?: boolean;
16983
17003
  }
16984
- interface OptionsOverrides {
17004
+ interface OptionsOverrides extends OptionsFiles {
16985
17005
  overrides?: TypedFlatConfigItem["rules"];
16986
17006
  }
16987
17007
  interface OptionsOverridesTypeAware extends OptionsOverrides {
@@ -17002,10 +17022,6 @@ interface OptionsProjectType {
17002
17022
  */
17003
17023
  type?: "app" | "game" | "package";
17004
17024
  }
17005
- interface OptionsRoblox {
17006
- /** Enable or disable Roblox-specific rules. */
17007
- roblox?: boolean;
17008
- }
17009
17025
  interface OptionsStylistic {
17010
17026
  stylistic?: boolean | StylisticConfig;
17011
17027
  }
@@ -17031,7 +17047,7 @@ interface OptionsTypeScriptParserOptions {
17031
17047
  *
17032
17048
  * @default ["**\/*.{ts,tsx}"]
17033
17049
  */
17034
- filesTypeAware?: Array<string>;
17050
+ filesTypeAware?: Array<Array<string> | string>;
17035
17051
  /**
17036
17052
  * Glob patterns for files that should not be type aware. Used to exclude
17037
17053
  * virtual files created by processors (e.g., markdown TypeScript code
@@ -17175,7 +17191,7 @@ declare function ignores(userIgnores?: ((originals: Array<string>) => Array<stri
17175
17191
  declare function imports(options?: OptionsProjectType & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
17176
17192
  //#endregion
17177
17193
  //#region src/configs/javascript.d.ts
17178
- declare function javascript(options?: OptionsIsInEditor & OptionsOverrides & OptionsRoblox & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
17194
+ declare function javascript(options?: OptionsFiles & OptionsHasRoblox & OptionsIsInEditor & OptionsOverrides & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
17179
17195
  //#endregion
17180
17196
  //#region src/configs/jsdoc.d.ts
17181
17197
  declare function jsdoc(options?: JsdocOptions & OptionsProjectType & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
@@ -17190,7 +17206,7 @@ declare function markdown(options?: OptionsComponentExtensions & OptionsFiles &
17190
17206
  declare function node(): Promise<Array<TypedFlatConfigItem>>;
17191
17207
  //#endregion
17192
17208
  //#region src/configs/package-json.d.ts
17193
- declare function packageJson(options?: OptionsProjectType & OptionsRoblox & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
17209
+ declare function packageJson(options?: OptionsHasRoblox & OptionsProjectType & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
17194
17210
  //#endregion
17195
17211
  //#region src/configs/perfectionist.d.ts
17196
17212
  /**
@@ -17220,7 +17236,7 @@ declare function promise(): Promise<Array<TypedFlatConfigItem>>;
17220
17236
  declare function react(options?: OptionsComponentExtensions & OptionsFiles & OptionsStylistic & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes & ReactConfig): Promise<Array<TypedFlatConfigItem>>;
17221
17237
  //#endregion
17222
17238
  //#region src/configs/roblox.d.ts
17223
- declare function roblox(options?: OptionsComponentExtensions & OptionsFiles & OptionsOverridesTypeAware & OptionsStylistic & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes, formatLua?: boolean): Promise<Array<TypedFlatConfigItem>>;
17239
+ declare function roblox(options?: OptionsComponentExtensions & OptionsFilesTypeAware & OptionsOverridesTypeAware & OptionsStylistic & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes, formatLua?: boolean): Promise<Array<TypedFlatConfigItem>>;
17224
17240
  //#endregion
17225
17241
  //#region src/configs/shopify.d.ts
17226
17242
  declare function shopify(options?: OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
@@ -17263,7 +17279,7 @@ declare const StylisticConfigDefaults: StylisticConfig;
17263
17279
  declare function stylistic(options?: StylisticConfig, prettierOptions?: PrettierOptions): Promise<Array<TypedFlatConfigItem>>;
17264
17280
  //#endregion
17265
17281
  //#region src/configs/test.d.ts
17266
- declare function test(options?: OptionsFiles & OptionsIsInEditor & OptionsOverrides & OptionsProjectType & OptionsRoblox & OptionsStylistic & OptionsTestFramework): Promise<Array<TypedFlatConfigItem>>;
17282
+ declare function test(options?: OptionsFiles & OptionsHasRoblox & OptionsIsInEditor & OptionsOverrides & OptionsProjectType & OptionsStylistic & OptionsTestFramework): Promise<Array<TypedFlatConfigItem>>;
17267
17283
  //#endregion
17268
17284
  //#region src/configs/toml.d.ts
17269
17285
  declare function toml(options?: OptionsFiles & OptionsOverrides & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
@@ -17343,4 +17359,4 @@ declare const GLOB_BUILD_TOOLS: Array<string>;
17343
17359
  declare const GLOB_ALL_SRC: string[];
17344
17360
  declare const GLOB_EXCLUDE: string[];
17345
17361
  //#endregion
17346
- export { Awaitable, type ConfigNames, type FlatConfigComposer, GLOB_ALL_JSON, GLOB_ALL_SRC, GLOB_BUILD_TOOLS, GLOB_CSS, GLOB_DTS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LUA, GLOB_MARKDOWN, GLOB_MARKDOWN_BLOCKS, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_ROOT, GLOB_ROOT_SRC, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_XML, GLOB_YAML, GitignoreOptions, JsdocOptions, NamedFlatConfigItem, NamedOptionsConfig, OptionsComponentExtensions, OptionsConfig, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsOverridesTypeAware, OptionsPnpm, OptionsProjectType, OptionsRoblox, OptionsStylistic, OptionsTestFramework, OptionsTypeScriptErasableOnly, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsVitest, PerfectionistConfig, type PrettierOptions, PrettierRuleOptions, ReactConfig, Rules, SpellCheckConfig, StylisticConfig, StylisticConfigDefaults, TypedFlatConfigItem, comments, isentinel as default, isentinel, defaultPluginRenaming, disables, eslintPlugin, flawless, gitignore, ignores, imports, javascript, jsdoc, jsonc, markdown, node, packageJson, perfectionist, pnpm, prettier, promise, react, roblox, shopify, sonarjs, sortGithubAction, sortPnpmWorkspace, sortRojoProject, sortTsconfig, spelling, stylistic, test, toml, typescript, unicorn, yaml };
17362
+ export { Awaitable, type ConfigNames, type FlatConfigComposer, GLOB_ALL_JSON, GLOB_ALL_SRC, GLOB_BUILD_TOOLS, GLOB_CSS, GLOB_DTS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LUA, GLOB_MARKDOWN, GLOB_MARKDOWN_BLOCKS, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_ROOT, GLOB_ROOT_SRC, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_XML, GLOB_YAML, GitignoreOptions, JsdocOptions, NamedFlatConfigItem, NamedOptionsConfig, OptionsComponentExtensions, OptionsConfig, OptionsFiles, OptionsFilesTypeAware, OptionsFormatters, OptionsHasRoblox, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsOverridesTypeAware, OptionsPnpm, OptionsProjectType, OptionsStylistic, OptionsTestFramework, OptionsTypeScriptErasableOnly, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsVitest, PerfectionistConfig, type PrettierOptions, PrettierRuleOptions, ReactConfig, Rules, SpellCheckConfig, StylisticConfig, StylisticConfigDefaults, TypedFlatConfigItem, comments, isentinel as default, isentinel, defaultPluginRenaming, disables, eslintPlugin, flawless, gitignore, ignores, imports, javascript, jsdoc, jsonc, markdown, node, packageJson, perfectionist, pnpm, prettier, promise, react, roblox, shopify, sonarjs, sortGithubAction, sortPnpmWorkspace, sortRojoProject, sortTsconfig, spelling, stylistic, test, toml, typescript, unicorn, yaml };