| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 79060a1 commit dd18383
8 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1234,6 +1234,7 @@ export interface DummyRuleMap { | |||
| 1234 | 1234 | "node/no-path-concat"?: RuleNoConfig; | |
| 1235 | 1235 | "node/no-process-env"?: RuleNoConfig | [AllowWarnDeny, NoProcessEnvConfig]; | |
| 1236 | 1236 | "node/no-sync"?: RuleNoConfig | [AllowWarnDeny, NoSyncConfig]; | |
| 1237 | + "node/no-top-level-await"?: RuleNoConfig | [AllowWarnDeny, NoTopLevelAwaitConfig]; | ||
| 1237 | 1238 | "object-shorthand"?: | |
| 1238 | 1239 | RuleNoConfig | [AllowWarnDeny, ShorthandType] | [AllowWarnDeny, ShorthandType, ObjectShorthandOptions]; | |
| 1239 | 1240 | "operator-assignment"?: RuleNoConfig | [AllowWarnDeny, AlwaysNever]; | |
@@ -4046,6 +4047,14 @@ export interface NoSyncConfig { | |||
| 4046 | 4047 | */ | |
| 4047 | 4048 | ignores?: string[]; | |
| 4048 | 4049 | } | |
| 4050 | + export interface NoTopLevelAwaitConfig { | ||
| 4051 | + /** | ||
| 4052 | + * If `true`, top-level `await` is allowed in files that start with a | ||
| 4053 | + * hashbang (`#!`), which marks them as executable scripts rather than | ||
| 4054 | + * importable modules. | ||
| 4055 | + */ | ||
| 4056 | + ignoreBin?: boolean; | ||
| 4057 | + } | ||
| 4049 | 4058 | export interface ObjectShorthandOptions { | |
| 4050 | 4059 | avoidExplicitReturnArrows?: boolean; | |
| 4051 | 4060 | avoidQuotes?: boolean; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -853,6 +853,7 @@ pub(crate) mod node { | |||
| 853 | 853 | pub mod no_path_concat; | |
| 854 | 854 | pub mod no_process_env; | |
| 855 | 855 | pub mod no_sync; | |
| 856 | + pub mod no_top_level_await; | ||
| 856 | 857 | } | |
| 857 | 858 | ||
| 858 | 859 | /// <https://github.com/vuejs/eslint-plugin-vue> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments