@biomejs/wasm-nodejs
Advanced tools
Comparing version 1.5.3-nightly.24fcf19 to 1.5.3-nightly.4fa841c
@@ -8,6 +8,6 @@ /* tslint:disable */ | ||
feature: FeatureName[]; | ||
path: RomePath; | ||
path: BiomePath; | ||
} | ||
type FeatureName = "Format" | "Lint" | "OrganizeImports"; | ||
interface RomePath { | ||
interface BiomePath { | ||
path: string; | ||
@@ -25,3 +25,3 @@ } | ||
interface UpdateSettingsParams { | ||
configuration: Configuration; | ||
configuration: PartialConfiguration; | ||
gitignore_matches: string[]; | ||
@@ -31,3 +31,3 @@ vcs_base_path?: string; | ||
} | ||
interface Configuration { | ||
interface PartialConfiguration { | ||
/** | ||
@@ -40,3 +40,3 @@ * A field for the [JSON schema](https://json-schema.org/) specification | ||
*/ | ||
css?: CssConfiguration; | ||
css?: PartialCssConfiguration; | ||
/** | ||
@@ -49,23 +49,23 @@ * A list of paths to other JSON files, used to extends the current configuration. | ||
*/ | ||
files?: FilesConfiguration; | ||
files?: PartialFilesConfiguration; | ||
/** | ||
* The configuration of the formatter | ||
*/ | ||
formatter?: FormatterConfiguration; | ||
formatter?: PartialFormatterConfiguration; | ||
/** | ||
* Specific configuration for the JavaScript language | ||
*/ | ||
javascript?: JavascriptConfiguration; | ||
javascript?: PartialJavascriptConfiguration; | ||
/** | ||
* Specific configuration for the Json language | ||
*/ | ||
json?: JsonConfiguration; | ||
json?: PartialJsonConfiguration; | ||
/** | ||
* The configuration for the linter | ||
*/ | ||
linter?: LinterConfiguration; | ||
linter?: PartialLinterConfiguration; | ||
/** | ||
* The configuration of the import sorting | ||
*/ | ||
organizeImports?: OrganizeImports; | ||
organizeImports?: PartialOrganizeImports; | ||
/** | ||
@@ -78,16 +78,16 @@ * A list of granular patterns that should be applied only to a sub set of files | ||
*/ | ||
vcs?: VcsConfiguration; | ||
vcs?: PartialVcsConfiguration; | ||
} | ||
interface CssConfiguration { | ||
interface PartialCssConfiguration { | ||
/** | ||
* Formatting options | ||
*/ | ||
formatter?: CssFormatter; | ||
formatter?: PartialCssFormatter; | ||
/** | ||
* Parsing options | ||
*/ | ||
parser?: CssParser; | ||
parser?: PartialCssParser; | ||
} | ||
type StringSet = string[]; | ||
interface FilesConfiguration { | ||
interface PartialFilesConfiguration { | ||
/** | ||
@@ -110,3 +110,7 @@ * A list of Unix shell style patterns. Biome will ignore files/folders that will match these patterns. | ||
} | ||
interface FormatterConfiguration { | ||
interface PartialFormatterConfiguration { | ||
/** | ||
* The attribute position style. By default auto. | ||
*/ | ||
attributePosition?: AttributePosition; | ||
enabled?: boolean; | ||
@@ -146,7 +150,7 @@ /** | ||
} | ||
interface JavascriptConfiguration { | ||
interface PartialJavascriptConfiguration { | ||
/** | ||
* Formatting options | ||
*/ | ||
formatter?: JavascriptFormatter; | ||
formatter?: PartialJavascriptFormatter; | ||
/** | ||
@@ -158,19 +162,19 @@ * A list of global bindings that should be ignored by the analyzers | ||
globals?: StringSet; | ||
organize_imports?: JavascriptOrganizeImports; | ||
organize_imports?: PartialJavascriptOrganizeImports; | ||
/** | ||
* Parsing options | ||
*/ | ||
parser?: JavascriptParser; | ||
parser?: PartialJavascriptParser; | ||
} | ||
interface JsonConfiguration { | ||
interface PartialJsonConfiguration { | ||
/** | ||
* Formatting options | ||
*/ | ||
formatter?: JsonFormatter; | ||
formatter?: PartialJsonFormatter; | ||
/** | ||
* Parsing options | ||
*/ | ||
parser?: JsonParser; | ||
parser?: PartialJsonParser; | ||
} | ||
interface LinterConfiguration { | ||
interface PartialLinterConfiguration { | ||
/** | ||
@@ -193,3 +197,3 @@ * if `false`, it disables the feature and the linter won't be executed. `true` by default | ||
} | ||
interface OrganizeImports { | ||
interface PartialOrganizeImports { | ||
/** | ||
@@ -209,3 +213,3 @@ * Enables the organization of imports | ||
type Overrides = OverridePattern[]; | ||
interface VcsConfiguration { | ||
interface PartialVcsConfiguration { | ||
/** | ||
@@ -234,3 +238,3 @@ * The kind of client. | ||
} | ||
interface CssFormatter { | ||
interface PartialCssFormatter { | ||
/** | ||
@@ -262,3 +266,3 @@ * Control the formatter for CSS (and its super languages) files. | ||
} | ||
interface CssParser { | ||
interface PartialCssParser { | ||
/** | ||
@@ -269,6 +273,7 @@ * Allow comments to appear on incorrect lines in `.css` files | ||
} | ||
type AttributePosition = "auto" | "multiline"; | ||
type PlainIndentStyle = "tab" | "space"; | ||
type LineEnding = "lf" | "crlf" | "cr"; | ||
type LineWidth = number; | ||
interface JavascriptFormatter { | ||
interface PartialJavascriptFormatter { | ||
/** | ||
@@ -279,2 +284,6 @@ * Whether to add non-necessary parentheses to arrow functions. Defaults to "always". | ||
/** | ||
* The attribute position style in JavaScript code. Defaults to auto. | ||
*/ | ||
attributePosition?: AttributePosition; | ||
/** | ||
* Whether to hug the closing bracket of multiline HTML/JSX tags to the end of the last line, rather than being alone on the following line. Defaults to false. | ||
@@ -332,4 +341,4 @@ */ | ||
} | ||
interface JavascriptOrganizeImports {} | ||
interface JavascriptParser { | ||
interface PartialJavascriptOrganizeImports {} | ||
interface PartialJavascriptParser { | ||
/** | ||
@@ -342,3 +351,3 @@ * It enables the experimental and unsafe parsing of parameter decorators | ||
} | ||
interface JsonFormatter { | ||
interface PartialJsonFormatter { | ||
/** | ||
@@ -368,4 +377,8 @@ * Control the formatter for JSON (and its super languages) files. | ||
lineWidth?: LineWidth; | ||
/** | ||
* Print trailing commas wherever possible in multi-line comma-separated syntactic structures. Defaults to "omit". | ||
*/ | ||
trailingCommas?: TrailingCommas; | ||
} | ||
interface JsonParser { | ||
interface PartialJsonParser { | ||
/** | ||
@@ -402,3 +415,3 @@ * Allow parsing comments in `.json` files | ||
*/ | ||
css?: CssConfiguration; | ||
css?: PartialCssConfiguration; | ||
/** | ||
@@ -419,7 +432,7 @@ * Specific configuration for the Json language | ||
*/ | ||
javascript?: JavascriptConfiguration; | ||
javascript?: PartialJavascriptConfiguration; | ||
/** | ||
* Specific configuration for the Json language | ||
*/ | ||
json?: JsonConfiguration; | ||
json?: PartialJsonConfiguration; | ||
/** | ||
@@ -440,2 +453,3 @@ * Specific configuration for the Json language | ||
type TrailingComma = "all" | "es5" | "none"; | ||
type TrailingCommas = "none" | "all"; | ||
interface A11y { | ||
@@ -449,55 +463,55 @@ /** | ||
*/ | ||
noAccessKey?: RuleConfiguration; | ||
noAccessKey?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce that aria-hidden="true" is not set on focusable elements. | ||
*/ | ||
noAriaHiddenOnFocusable?: RuleConfiguration; | ||
noAriaHiddenOnFocusable?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce that elements that do not support ARIA roles, states, and properties do not have those attributes. | ||
*/ | ||
noAriaUnsupportedElements?: RuleConfiguration; | ||
noAriaUnsupportedElements?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce that autoFocus prop is not used on elements. | ||
*/ | ||
noAutofocus?: RuleConfiguration; | ||
noAutofocus?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow target="_blank" attribute without rel="noreferrer" | ||
*/ | ||
noBlankTarget?: RuleConfiguration; | ||
noBlankTarget?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforces that no distracting elements are used. | ||
*/ | ||
noDistractingElements?: RuleConfiguration; | ||
noDistractingElements?: RuleConfiguration_for_Null; | ||
/** | ||
* The scope prop should be used only on <th> elements. | ||
*/ | ||
noHeaderScope?: RuleConfiguration; | ||
noHeaderScope?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce that non-interactive ARIA roles are not assigned to interactive HTML elements. | ||
*/ | ||
noInteractiveElementToNoninteractiveRole?: RuleConfiguration; | ||
noInteractiveElementToNoninteractiveRole?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce that interactive ARIA roles are not assigned to non-interactive HTML elements. | ||
*/ | ||
noNoninteractiveElementToInteractiveRole?: RuleConfiguration; | ||
noNoninteractiveElementToInteractiveRole?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce that tabIndex is not assigned to non-interactive HTML elements. | ||
*/ | ||
noNoninteractiveTabindex?: RuleConfiguration; | ||
noNoninteractiveTabindex?: RuleConfiguration_for_Null; | ||
/** | ||
* Prevent the usage of positive integers on tabIndex property | ||
*/ | ||
noPositiveTabindex?: RuleConfiguration; | ||
noPositiveTabindex?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce img alt prop does not contain the word "image", "picture", or "photo". | ||
*/ | ||
noRedundantAlt?: RuleConfiguration; | ||
noRedundantAlt?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce explicit role property is not the same as implicit/default role property on an element. | ||
*/ | ||
noRedundantRoles?: RuleConfiguration; | ||
noRedundantRoles?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforces the usage of the title element for the svg element. | ||
*/ | ||
noSvgWithoutTitle?: RuleConfiguration; | ||
noSvgWithoutTitle?: RuleConfiguration_for_Null; | ||
/** | ||
@@ -510,63 +524,63 @@ * It enables the recommended rules for this group | ||
*/ | ||
useAltText?: RuleConfiguration; | ||
useAltText?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce that anchors have content and that the content is accessible to screen readers. | ||
*/ | ||
useAnchorContent?: RuleConfiguration; | ||
useAnchorContent?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce that tabIndex is assigned to non-interactive HTML elements with aria-activedescendant. | ||
*/ | ||
useAriaActivedescendantWithTabindex?: RuleConfiguration; | ||
useAriaActivedescendantWithTabindex?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce that elements with ARIA roles must have all required ARIA attributes for that role. | ||
*/ | ||
useAriaPropsForRole?: RuleConfiguration; | ||
useAriaPropsForRole?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforces the usage of the attribute type for the element button | ||
*/ | ||
useButtonType?: RuleConfiguration; | ||
useButtonType?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce that heading elements (h1, h2, etc.) have content and that the content is accessible to screen readers. Accessible means that it is not hidden using the aria-hidden prop. | ||
*/ | ||
useHeadingContent?: RuleConfiguration; | ||
useHeadingContent?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce that html element has lang attribute. | ||
*/ | ||
useHtmlLang?: RuleConfiguration; | ||
useHtmlLang?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforces the usage of the attribute title for the element iframe. | ||
*/ | ||
useIframeTitle?: RuleConfiguration; | ||
useIframeTitle?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce onClick is accompanied by at least one of the following: onKeyUp, onKeyDown, onKeyPress. | ||
*/ | ||
useKeyWithClickEvents?: RuleConfiguration; | ||
useKeyWithClickEvents?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce onMouseOver / onMouseOut are accompanied by onFocus / onBlur. | ||
*/ | ||
useKeyWithMouseEvents?: RuleConfiguration; | ||
useKeyWithMouseEvents?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforces that audio and video elements must have a track for captions. | ||
*/ | ||
useMediaCaption?: RuleConfiguration; | ||
useMediaCaption?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce that all anchors are valid, and they are navigable elements. | ||
*/ | ||
useValidAnchor?: RuleConfiguration; | ||
useValidAnchor?: RuleConfiguration_for_Null; | ||
/** | ||
* Ensures that ARIA properties aria-* are all valid. | ||
*/ | ||
useValidAriaProps?: RuleConfiguration; | ||
useValidAriaProps?: RuleConfiguration_for_Null; | ||
/** | ||
* Elements with ARIA roles must use a valid, non-abstract ARIA role. | ||
*/ | ||
useValidAriaRole?: RuleConfiguration; | ||
useValidAriaRole?: RuleConfiguration_for_ValidAriaRoleOptions; | ||
/** | ||
* Enforce that ARIA state and property values are valid. | ||
*/ | ||
useValidAriaValues?: RuleConfiguration; | ||
useValidAriaValues?: RuleConfiguration_for_Null; | ||
/** | ||
* Ensure that the attribute passed to the lang attribute is a correct ISO language and/or country. | ||
*/ | ||
useValidLang?: RuleConfiguration; | ||
useValidLang?: RuleConfiguration_for_Null; | ||
} | ||
@@ -581,71 +595,71 @@ interface Complexity { | ||
*/ | ||
noBannedTypes?: RuleConfiguration; | ||
noBannedTypes?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow functions that exceed a given Cognitive Complexity score. | ||
*/ | ||
noExcessiveCognitiveComplexity?: RuleConfiguration; | ||
noExcessiveCognitiveComplexity?: RuleConfiguration_for_ComplexityOptions; | ||
/** | ||
* Disallow unnecessary boolean casts | ||
*/ | ||
noExtraBooleanCast?: RuleConfiguration; | ||
noExtraBooleanCast?: RuleConfiguration_for_Null; | ||
/** | ||
* Prefer for...of statement instead of Array.forEach. | ||
*/ | ||
noForEach?: RuleConfiguration; | ||
noForEach?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow unclear usage of consecutive space characters in regular expression literals | ||
*/ | ||
noMultipleSpacesInRegularExpressionLiterals?: RuleConfiguration; | ||
noMultipleSpacesInRegularExpressionLiterals?: RuleConfiguration_for_Null; | ||
/** | ||
* This rule reports when a class has no non-static members, such as for a class used exclusively as a static namespace. | ||
*/ | ||
noStaticOnlyClass?: RuleConfiguration; | ||
noStaticOnlyClass?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow this and super in static contexts. | ||
*/ | ||
noThisInStatic?: RuleConfiguration; | ||
noThisInStatic?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow unnecessary catch clauses. | ||
*/ | ||
noUselessCatch?: RuleConfiguration; | ||
noUselessCatch?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow unnecessary constructors. | ||
*/ | ||
noUselessConstructor?: RuleConfiguration; | ||
noUselessConstructor?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow empty exports that don't change anything in a module file. | ||
*/ | ||
noUselessEmptyExport?: RuleConfiguration; | ||
noUselessEmptyExport?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow unnecessary fragments | ||
*/ | ||
noUselessFragments?: RuleConfiguration; | ||
noUselessFragments?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow unnecessary labels. | ||
*/ | ||
noUselessLabel?: RuleConfiguration; | ||
noUselessLabel?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow renaming import, export, and destructured assignments to the same name. | ||
*/ | ||
noUselessRename?: RuleConfiguration; | ||
noUselessRename?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow useless case in switch statements. | ||
*/ | ||
noUselessSwitchCase?: RuleConfiguration; | ||
noUselessSwitchCase?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow useless this aliasing. | ||
*/ | ||
noUselessThisAlias?: RuleConfiguration; | ||
noUselessThisAlias?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow using any or unknown as type constraint. | ||
*/ | ||
noUselessTypeConstraint?: RuleConfiguration; | ||
noUselessTypeConstraint?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow the use of void operators, which is not a familiar operator. | ||
*/ | ||
noVoid?: RuleConfiguration; | ||
noVoid?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow with statements in non-strict contexts. | ||
*/ | ||
noWith?: RuleConfiguration; | ||
noWith?: RuleConfiguration_for_Null; | ||
/** | ||
@@ -658,27 +672,27 @@ * It enables the recommended rules for this group | ||
*/ | ||
useArrowFunction?: RuleConfiguration; | ||
useArrowFunction?: RuleConfiguration_for_Null; | ||
/** | ||
* Promotes the use of .flatMap() when map().flat() are used together. | ||
*/ | ||
useFlatMap?: RuleConfiguration; | ||
useFlatMap?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce the usage of a literal access to properties over computed property access. | ||
*/ | ||
useLiteralKeys?: RuleConfiguration; | ||
useLiteralKeys?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce using concise optional chain instead of chained logical expressions. | ||
*/ | ||
useOptionalChain?: RuleConfiguration; | ||
useOptionalChain?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce the use of the regular expression literals instead of the RegExp constructor if possible. | ||
*/ | ||
useRegexLiterals?: RuleConfiguration; | ||
useRegexLiterals?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow number literal object member names which are not base10 or uses underscore as separator | ||
*/ | ||
useSimpleNumberKeys?: RuleConfiguration; | ||
useSimpleNumberKeys?: RuleConfiguration_for_Null; | ||
/** | ||
* Discard redundant terms from logical expressions. | ||
*/ | ||
useSimplifiedLogicExpression?: RuleConfiguration; | ||
useSimplifiedLogicExpression?: RuleConfiguration_for_Null; | ||
} | ||
@@ -693,111 +707,111 @@ interface Correctness { | ||
*/ | ||
noChildrenProp?: RuleConfiguration; | ||
noChildrenProp?: RuleConfiguration_for_Null; | ||
/** | ||
* Prevents from having const variables being re-assigned. | ||
*/ | ||
noConstAssign?: RuleConfiguration; | ||
noConstAssign?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow constant expressions in conditions | ||
*/ | ||
noConstantCondition?: RuleConfiguration; | ||
noConstantCondition?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow returning a value from a constructor. | ||
*/ | ||
noConstructorReturn?: RuleConfiguration; | ||
noConstructorReturn?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow empty character classes in regular expression literals. | ||
*/ | ||
noEmptyCharacterClassInRegex?: RuleConfiguration; | ||
noEmptyCharacterClassInRegex?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallows empty destructuring patterns. | ||
*/ | ||
noEmptyPattern?: RuleConfiguration; | ||
noEmptyPattern?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow calling global object properties as functions | ||
*/ | ||
noGlobalObjectCalls?: RuleConfiguration; | ||
noGlobalObjectCalls?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow function and var declarations that are accessible outside their block. | ||
*/ | ||
noInnerDeclarations?: RuleConfiguration; | ||
noInnerDeclarations?: RuleConfiguration_for_Null; | ||
/** | ||
* Prevents the incorrect use of super() inside classes. It also checks whether a call super() is missing from classes that extends other constructors. | ||
*/ | ||
noInvalidConstructorSuper?: RuleConfiguration; | ||
noInvalidConstructorSuper?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow new operators with global non-constructor functions. | ||
*/ | ||
noInvalidNewBuiltin?: RuleConfiguration; | ||
noInvalidNewBuiltin?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow new operators with the Symbol object. | ||
*/ | ||
noNewSymbol?: RuleConfiguration; | ||
noNewSymbol?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow \8 and \9 escape sequences in string literals. | ||
*/ | ||
noNonoctalDecimalEscape?: RuleConfiguration; | ||
noNonoctalDecimalEscape?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow literal numbers that lose precision | ||
*/ | ||
noPrecisionLoss?: RuleConfiguration; | ||
noPrecisionLoss?: RuleConfiguration_for_Null; | ||
/** | ||
* Prevent the usage of the return value of React.render. | ||
*/ | ||
noRenderReturnValue?: RuleConfiguration; | ||
noRenderReturnValue?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow assignments where both sides are exactly the same. | ||
*/ | ||
noSelfAssign?: RuleConfiguration; | ||
noSelfAssign?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow returning a value from a setter | ||
*/ | ||
noSetterReturn?: RuleConfiguration; | ||
noSetterReturn?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow comparison of expressions modifying the string case with non-compliant value. | ||
*/ | ||
noStringCaseMismatch?: RuleConfiguration; | ||
noStringCaseMismatch?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow lexical declarations in switch clauses. | ||
*/ | ||
noSwitchDeclarations?: RuleConfiguration; | ||
noSwitchDeclarations?: RuleConfiguration_for_Null; | ||
/** | ||
* Prevents the usage of variables that haven't been declared inside the document. | ||
*/ | ||
noUndeclaredVariables?: RuleConfiguration; | ||
noUndeclaredVariables?: RuleConfiguration_for_Null; | ||
/** | ||
* Avoid using unnecessary continue. | ||
*/ | ||
noUnnecessaryContinue?: RuleConfiguration; | ||
noUnnecessaryContinue?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow unreachable code | ||
*/ | ||
noUnreachable?: RuleConfiguration; | ||
noUnreachable?: RuleConfiguration_for_Null; | ||
/** | ||
* Ensures the super() constructor is called exactly once on every code path in a class constructor before this is accessed if the class has a superclass | ||
*/ | ||
noUnreachableSuper?: RuleConfiguration; | ||
noUnreachableSuper?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow control flow statements in finally blocks. | ||
*/ | ||
noUnsafeFinally?: RuleConfiguration; | ||
noUnsafeFinally?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow the use of optional chaining in contexts where the undefined value is not allowed. | ||
*/ | ||
noUnsafeOptionalChaining?: RuleConfiguration; | ||
noUnsafeOptionalChaining?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow unused labels. | ||
*/ | ||
noUnusedLabels?: RuleConfiguration; | ||
noUnusedLabels?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow unused variables. | ||
*/ | ||
noUnusedVariables?: RuleConfiguration; | ||
noUnusedVariables?: RuleConfiguration_for_Null; | ||
/** | ||
* This rules prevents void elements (AKA self-closing elements) from having children. | ||
*/ | ||
noVoidElementsWithChildren?: RuleConfiguration; | ||
noVoidElementsWithChildren?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow returning a value from a function with the return type 'void' | ||
*/ | ||
noVoidTypeReturn?: RuleConfiguration; | ||
noVoidTypeReturn?: RuleConfiguration_for_Null; | ||
/** | ||
@@ -810,19 +824,19 @@ * It enables the recommended rules for this group | ||
*/ | ||
useExhaustiveDependencies?: RuleConfiguration; | ||
useExhaustiveDependencies?: RuleConfiguration_for_HooksOptions; | ||
/** | ||
* Enforce that all React hooks are being called from the Top Level component functions. | ||
*/ | ||
useHookAtTopLevel?: RuleConfiguration; | ||
useHookAtTopLevel?: RuleConfiguration_for_DeprecatedHooksOptions; | ||
/** | ||
* Require calls to isNaN() when checking for NaN. | ||
*/ | ||
useIsNan?: RuleConfiguration; | ||
useIsNan?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce "for" loop update clause moving the counter in the right direction. | ||
*/ | ||
useValidForDirection?: RuleConfiguration; | ||
useValidForDirection?: RuleConfiguration_for_Null; | ||
/** | ||
* Require generator functions to contain yield. | ||
*/ | ||
useYield?: RuleConfiguration; | ||
useYield?: RuleConfiguration_for_Null; | ||
} | ||
@@ -835,61 +849,101 @@ interface Nursery { | ||
/** | ||
* Disallow the use of barrel file. | ||
*/ | ||
noBarrelFile?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow the use of console. | ||
*/ | ||
noConsole?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow two keys with the same name inside a JSON object. | ||
*/ | ||
noDuplicateJsonKeys?: RuleConfiguration; | ||
noDuplicateJsonKeys?: RuleConfiguration_for_Null; | ||
/** | ||
* A describe block should not contain duplicate hooks. | ||
*/ | ||
noDuplicateTestHooks?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow empty block statements and static blocks. | ||
*/ | ||
noEmptyBlockStatements?: RuleConfiguration; | ||
noEmptyBlockStatements?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow empty type parameters in type aliases and interfaces. | ||
*/ | ||
noEmptyTypeParameters?: RuleConfiguration; | ||
noEmptyTypeParameters?: RuleConfiguration_for_Null; | ||
/** | ||
* This rule enforces a maximum depth to nested describe() in test files. | ||
*/ | ||
noExcessiveNestedTestSuites?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow using export or module.exports in files containing tests | ||
*/ | ||
noExportsInTest?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow focused tests. | ||
*/ | ||
noFocusedTests?: RuleConfiguration; | ||
noFocusedTests?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow assignments to native objects and read-only global variables. | ||
*/ | ||
noGlobalAssign?: RuleConfiguration; | ||
noGlobalAssign?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow the use of global eval(). | ||
*/ | ||
noGlobalEval?: RuleConfiguration; | ||
noGlobalEval?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow the use of variables and function parameters before their declaration | ||
*/ | ||
noInvalidUseBeforeDeclaration?: RuleConfiguration; | ||
noInvalidUseBeforeDeclaration?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow characters made with multiple code points in character class syntax. | ||
*/ | ||
noMisleadingCharacterClass?: RuleConfiguration; | ||
noMisleadingCharacterClass?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow the use of namespace imports. | ||
*/ | ||
noNamespaceImport?: RuleConfiguration_for_Null; | ||
/** | ||
* Forbid the use of Node.js builtin modules. | ||
*/ | ||
noNodejsModules?: RuleConfiguration; | ||
noNodejsModules?: RuleConfiguration_for_Null; | ||
/** | ||
* Avoid re-export all. | ||
*/ | ||
noReExportAll?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow specified modules when loaded by import or require. | ||
*/ | ||
noRestrictedImports?: RuleConfiguration_for_RestrictedImportsOptions; | ||
/** | ||
* It detects possible "wrong" semicolons inside JSX elements. | ||
*/ | ||
noSemicolonInJsx?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow disabled tests. | ||
*/ | ||
noSkippedTests?: RuleConfiguration; | ||
noSkippedTests?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow then property. | ||
*/ | ||
noThenProperty?: RuleConfiguration; | ||
noThenProperty?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow the use of dependencies that aren't specified in the package.json. | ||
*/ | ||
noUndeclaredDependencies?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow unused imports. | ||
*/ | ||
noUnusedImports?: RuleConfiguration; | ||
noUnusedImports?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow unused private class members | ||
*/ | ||
noUnusedPrivateClassMembers?: RuleConfiguration; | ||
noUnusedPrivateClassMembers?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow unnecessary nested block statements. | ||
*/ | ||
noUselessLoneBlockStatements?: RuleConfiguration; | ||
noUselessLoneBlockStatements?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow ternary operators when simpler alternatives exist. | ||
*/ | ||
noUselessTernary?: RuleConfiguration; | ||
noUselessTernary?: RuleConfiguration_for_Null; | ||
/** | ||
@@ -902,47 +956,55 @@ * It enables the recommended rules for this group | ||
*/ | ||
useAwait?: RuleConfiguration; | ||
useAwait?: RuleConfiguration_for_Null; | ||
/** | ||
* Require consistently using either T[] or Array<T> | ||
*/ | ||
useConsistentArrayType?: RuleConfiguration; | ||
useConsistentArrayType?: RuleConfiguration_for_ConsistentArrayTypeOptions; | ||
/** | ||
* Promotes the use of export type for types. | ||
*/ | ||
useExportType?: RuleConfiguration; | ||
useExportType?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce naming conventions for JavaScript and TypeScript filenames. | ||
*/ | ||
useFilenamingConvention?: RuleConfiguration; | ||
useFilenamingConvention?: RuleConfiguration_for_FilenamingConventionOptions; | ||
/** | ||
* This rule recommends a for-of loop when in a for loop, the index used to extract an item from the iterated array. | ||
*/ | ||
useForOf?: RuleConfiguration; | ||
useForOf?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce the use of import type when an import only has specifiers with type qualifier. | ||
*/ | ||
useGroupedTypeImport?: RuleConfiguration; | ||
useGroupedTypeImport?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallows package private imports. | ||
*/ | ||
useImportRestrictions?: RuleConfiguration; | ||
useImportRestrictions?: RuleConfiguration_for_Null; | ||
/** | ||
* Promotes the use of import type for types. | ||
*/ | ||
useImportType?: RuleConfiguration; | ||
useImportType?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow missing key props in iterators/collection literals. | ||
*/ | ||
useJsxKeyInIterable?: RuleConfiguration_for_Null; | ||
/** | ||
* Promotes the usage of node:assert/strict over node:assert. | ||
*/ | ||
useNodeAssertStrict?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforces using the node: protocol for Node.js builtin modules. | ||
*/ | ||
useNodejsImportProtocol?: RuleConfiguration; | ||
useNodejsImportProtocol?: RuleConfiguration_for_Null; | ||
/** | ||
* Use the Number properties instead of global ones. | ||
*/ | ||
useNumberNamespace?: RuleConfiguration; | ||
useNumberNamespace?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce using function types instead of object type with call signatures. | ||
*/ | ||
useShorthandFunctionType?: RuleConfiguration; | ||
useShorthandFunctionType?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce the sorting of CSS utility classes. | ||
*/ | ||
useSortedClasses?: RuleConfiguration; | ||
useSortedClasses?: RuleConfiguration_for_UtilityClassSortingOptions; | ||
} | ||
@@ -957,7 +1019,7 @@ interface Performance { | ||
*/ | ||
noAccumulatingSpread?: RuleConfiguration; | ||
noAccumulatingSpread?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow the use of the delete operator. | ||
*/ | ||
noDelete?: RuleConfiguration; | ||
noDelete?: RuleConfiguration_for_Null; | ||
/** | ||
@@ -976,7 +1038,7 @@ * It enables the recommended rules for this group | ||
*/ | ||
noDangerouslySetInnerHtml?: RuleConfiguration; | ||
noDangerouslySetInnerHtml?: RuleConfiguration_for_Null; | ||
/** | ||
* Report when a DOM element or a component uses both children and dangerouslySetInnerHTML prop. | ||
*/ | ||
noDangerouslySetInnerHtmlWithChildren?: RuleConfiguration; | ||
noDangerouslySetInnerHtmlWithChildren?: RuleConfiguration_for_Null; | ||
/** | ||
@@ -995,59 +1057,59 @@ * It enables the recommended rules for this group | ||
*/ | ||
noArguments?: RuleConfiguration; | ||
noArguments?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow comma operator. | ||
*/ | ||
noCommaOperator?: RuleConfiguration; | ||
noCommaOperator?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow default exports. | ||
*/ | ||
noDefaultExport?: RuleConfiguration; | ||
noDefaultExport?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow implicit true values on JSX boolean attributes | ||
*/ | ||
noImplicitBoolean?: RuleConfiguration; | ||
noImplicitBoolean?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow type annotations for variables, parameters, and class properties initialized with a literal expression. | ||
*/ | ||
noInferrableTypes?: RuleConfiguration; | ||
noInferrableTypes?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow the use of TypeScript's namespaces. | ||
*/ | ||
noNamespace?: RuleConfiguration; | ||
noNamespace?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow negation in the condition of an if statement if it has an else clause. | ||
*/ | ||
noNegationElse?: RuleConfiguration; | ||
noNegationElse?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow non-null assertions using the ! postfix operator. | ||
*/ | ||
noNonNullAssertion?: RuleConfiguration; | ||
noNonNullAssertion?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow reassigning function parameters. | ||
*/ | ||
noParameterAssign?: RuleConfiguration; | ||
noParameterAssign?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow the use of parameter properties in class constructors. | ||
*/ | ||
noParameterProperties?: RuleConfiguration; | ||
noParameterProperties?: RuleConfiguration_for_Null; | ||
/** | ||
* This rule allows you to specify global variable names that you don’t want to use in your application. | ||
*/ | ||
noRestrictedGlobals?: RuleConfiguration; | ||
noRestrictedGlobals?: RuleConfiguration_for_RestrictedGlobalsOptions; | ||
/** | ||
* Disallow the use of constants which its value is the upper-case version of its name. | ||
*/ | ||
noShoutyConstants?: RuleConfiguration; | ||
noShoutyConstants?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow template literals if interpolation and special-character handling are not needed | ||
*/ | ||
noUnusedTemplateLiteral?: RuleConfiguration; | ||
noUnusedTemplateLiteral?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow else block when the if block breaks early. | ||
*/ | ||
noUselessElse?: RuleConfiguration; | ||
noUselessElse?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow the use of var | ||
*/ | ||
noVar?: RuleConfiguration; | ||
noVar?: RuleConfiguration_for_Null; | ||
/** | ||
@@ -1060,71 +1122,71 @@ * It enables the recommended rules for this group | ||
*/ | ||
useAsConstAssertion?: RuleConfiguration; | ||
useAsConstAssertion?: RuleConfiguration_for_Null; | ||
/** | ||
* Requires following curly brace conventions. | ||
*/ | ||
useBlockStatements?: RuleConfiguration; | ||
useBlockStatements?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce using else if instead of nested if in else clauses. | ||
*/ | ||
useCollapsedElseIf?: RuleConfiguration; | ||
useCollapsedElseIf?: RuleConfiguration_for_Null; | ||
/** | ||
* Require const declarations for variables that are never reassigned after declared. | ||
*/ | ||
useConst?: RuleConfiguration; | ||
useConst?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce default function parameters and optional function parameters to be last. | ||
*/ | ||
useDefaultParameterLast?: RuleConfiguration; | ||
useDefaultParameterLast?: RuleConfiguration_for_Null; | ||
/** | ||
* Require that each enum member value be explicitly initialized. | ||
*/ | ||
useEnumInitializers?: RuleConfiguration; | ||
useEnumInitializers?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow the use of Math.pow in favor of the ** operator. | ||
*/ | ||
useExponentiationOperator?: RuleConfiguration; | ||
useExponentiationOperator?: RuleConfiguration_for_Null; | ||
/** | ||
* This rule enforces the use of <>...</> over <Fragment>...</Fragment>. | ||
*/ | ||
useFragmentSyntax?: RuleConfiguration; | ||
useFragmentSyntax?: RuleConfiguration_for_Null; | ||
/** | ||
* Require all enum members to be literal values. | ||
*/ | ||
useLiteralEnumMembers?: RuleConfiguration; | ||
useLiteralEnumMembers?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce naming conventions for everything across a codebase. | ||
*/ | ||
useNamingConvention?: RuleConfiguration; | ||
useNamingConvention?: RuleConfiguration_for_NamingConventionOptions; | ||
/** | ||
* Disallow parseInt() and Number.parseInt() in favor of binary, octal, and hexadecimal literals | ||
*/ | ||
useNumericLiterals?: RuleConfiguration; | ||
useNumericLiterals?: RuleConfiguration_for_Null; | ||
/** | ||
* Prevent extra closing tags for components without children | ||
*/ | ||
useSelfClosingElements?: RuleConfiguration; | ||
useSelfClosingElements?: RuleConfiguration_for_Null; | ||
/** | ||
* When expressing array types, this rule promotes the usage of T[] shorthand instead of Array<T>. | ||
*/ | ||
useShorthandArrayType?: RuleConfiguration; | ||
useShorthandArrayType?: RuleConfiguration_for_Null; | ||
/** | ||
* Require assignment operator shorthand where possible. | ||
*/ | ||
useShorthandAssign?: RuleConfiguration; | ||
useShorthandAssign?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforces switch clauses have a single statement, emits a quick fix wrapping the statements in a block. | ||
*/ | ||
useSingleCaseStatement?: RuleConfiguration; | ||
useSingleCaseStatement?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow multiple variable declarations in the same variable statement | ||
*/ | ||
useSingleVarDeclarator?: RuleConfiguration; | ||
useSingleVarDeclarator?: RuleConfiguration_for_Null; | ||
/** | ||
* Prefer template literals over string concatenation. | ||
*/ | ||
useTemplate?: RuleConfiguration; | ||
useTemplate?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce the use of while loops instead of for loops when the initializer and update expressions are not needed. | ||
*/ | ||
useWhile?: RuleConfiguration; | ||
useWhile?: RuleConfiguration_for_Null; | ||
} | ||
@@ -1137,161 +1199,161 @@ interface Suspicious { | ||
/** | ||
* Usually, the definition in the standard library is more precise than what people come up with or the used constant exceeds the maximum precision of the number type. | ||
* Use standard constants instead of approximated literals. | ||
*/ | ||
noApproximativeNumericConstant?: RuleConfiguration; | ||
noApproximativeNumericConstant?: RuleConfiguration_for_Null; | ||
/** | ||
* Discourage the usage of Array index in keys. | ||
*/ | ||
noArrayIndexKey?: RuleConfiguration; | ||
noArrayIndexKey?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow assignments in expressions. | ||
*/ | ||
noAssignInExpressions?: RuleConfiguration; | ||
noAssignInExpressions?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallows using an async function as a Promise executor. | ||
*/ | ||
noAsyncPromiseExecutor?: RuleConfiguration; | ||
noAsyncPromiseExecutor?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow reassigning exceptions in catch clauses. | ||
*/ | ||
noCatchAssign?: RuleConfiguration; | ||
noCatchAssign?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow reassigning class members. | ||
*/ | ||
noClassAssign?: RuleConfiguration; | ||
noClassAssign?: RuleConfiguration_for_Null; | ||
/** | ||
* Prevent comments from being inserted as text nodes | ||
*/ | ||
noCommentText?: RuleConfiguration; | ||
noCommentText?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow comparing against -0 | ||
*/ | ||
noCompareNegZero?: RuleConfiguration; | ||
noCompareNegZero?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow labeled statements that are not loops. | ||
*/ | ||
noConfusingLabels?: RuleConfiguration; | ||
noConfusingLabels?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow void type outside of generic or return types. | ||
*/ | ||
noConfusingVoidType?: RuleConfiguration; | ||
noConfusingVoidType?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow the use of console.log | ||
*/ | ||
noConsoleLog?: RuleConfiguration; | ||
noConsoleLog?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow TypeScript const enum | ||
*/ | ||
noConstEnum?: RuleConfiguration; | ||
noConstEnum?: RuleConfiguration_for_Null; | ||
/** | ||
* Prevents from having control characters and some escape sequences that match control characters in regular expressions. | ||
*/ | ||
noControlCharactersInRegex?: RuleConfiguration; | ||
noControlCharactersInRegex?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow the use of debugger | ||
*/ | ||
noDebugger?: RuleConfiguration; | ||
noDebugger?: RuleConfiguration_for_Null; | ||
/** | ||
* Require the use of === and !== | ||
*/ | ||
noDoubleEquals?: RuleConfiguration; | ||
noDoubleEquals?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow duplicate case labels. | ||
*/ | ||
noDuplicateCase?: RuleConfiguration; | ||
noDuplicateCase?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow duplicate class members. | ||
*/ | ||
noDuplicateClassMembers?: RuleConfiguration; | ||
noDuplicateClassMembers?: RuleConfiguration_for_Null; | ||
/** | ||
* Prevents JSX properties to be assigned multiple times. | ||
*/ | ||
noDuplicateJsxProps?: RuleConfiguration; | ||
noDuplicateJsxProps?: RuleConfiguration_for_Null; | ||
/** | ||
* Prevents object literals having more than one property declaration for the same name. | ||
*/ | ||
noDuplicateObjectKeys?: RuleConfiguration; | ||
noDuplicateObjectKeys?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow duplicate function parameter name. | ||
*/ | ||
noDuplicateParameters?: RuleConfiguration; | ||
noDuplicateParameters?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow the declaration of empty interfaces. | ||
*/ | ||
noEmptyInterface?: RuleConfiguration; | ||
noEmptyInterface?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow the any type usage. | ||
*/ | ||
noExplicitAny?: RuleConfiguration; | ||
noExplicitAny?: RuleConfiguration_for_Null; | ||
/** | ||
* Prevents the wrong usage of the non-null assertion operator (!) in TypeScript files. | ||
*/ | ||
noExtraNonNullAssertion?: RuleConfiguration; | ||
noExtraNonNullAssertion?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow fallthrough of switch clauses. | ||
*/ | ||
noFallthroughSwitchClause?: RuleConfiguration; | ||
noFallthroughSwitchClause?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow reassigning function declarations. | ||
*/ | ||
noFunctionAssign?: RuleConfiguration; | ||
noFunctionAssign?: RuleConfiguration_for_Null; | ||
/** | ||
* Use Number.isFinite instead of global isFinite. | ||
*/ | ||
noGlobalIsFinite?: RuleConfiguration; | ||
noGlobalIsFinite?: RuleConfiguration_for_Null; | ||
/** | ||
* Use Number.isNaN instead of global isNaN. | ||
*/ | ||
noGlobalIsNan?: RuleConfiguration; | ||
noGlobalIsNan?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow use of implicit any type on variable declarations. | ||
*/ | ||
noImplicitAnyLet?: RuleConfiguration; | ||
noImplicitAnyLet?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow assigning to imported bindings | ||
*/ | ||
noImportAssign?: RuleConfiguration; | ||
noImportAssign?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow labels that share a name with a variable | ||
*/ | ||
noLabelVar?: RuleConfiguration; | ||
noLabelVar?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce proper usage of new and constructor. | ||
*/ | ||
noMisleadingInstantiator?: RuleConfiguration; | ||
noMisleadingInstantiator?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow shorthand assign when variable appears on both sides. | ||
*/ | ||
noMisrefactoredShorthandAssign?: RuleConfiguration; | ||
noMisrefactoredShorthandAssign?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow direct use of Object.prototype builtins. | ||
*/ | ||
noPrototypeBuiltins?: RuleConfiguration; | ||
noPrototypeBuiltins?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow variable, function, class, and type redeclarations in the same scope. | ||
*/ | ||
noRedeclare?: RuleConfiguration; | ||
noRedeclare?: RuleConfiguration_for_Null; | ||
/** | ||
* Prevents from having redundant "use strict". | ||
*/ | ||
noRedundantUseStrict?: RuleConfiguration; | ||
noRedundantUseStrict?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow comparisons where both sides are exactly the same. | ||
*/ | ||
noSelfCompare?: RuleConfiguration; | ||
noSelfCompare?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow identifiers from shadowing restricted names. | ||
*/ | ||
noShadowRestrictedNames?: RuleConfiguration; | ||
noShadowRestrictedNames?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow sparse arrays | ||
*/ | ||
noSparseArray?: RuleConfiguration; | ||
noSparseArray?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow unsafe declaration merging between interfaces and classes. | ||
*/ | ||
noUnsafeDeclarationMerging?: RuleConfiguration; | ||
noUnsafeDeclarationMerging?: RuleConfiguration_for_Null; | ||
/** | ||
* Disallow using unsafe negation. | ||
*/ | ||
noUnsafeNegation?: RuleConfiguration; | ||
noUnsafeNegation?: RuleConfiguration_for_Null; | ||
/** | ||
@@ -1304,21 +1366,25 @@ * It enables the recommended rules for this group | ||
*/ | ||
useDefaultSwitchClauseLast?: RuleConfiguration; | ||
useDefaultSwitchClauseLast?: RuleConfiguration_for_Null; | ||
/** | ||
* Enforce get methods to always return a value. | ||
*/ | ||
useGetterReturn?: RuleConfiguration; | ||
useGetterReturn?: RuleConfiguration_for_Null; | ||
/** | ||
* Use Array.isArray() instead of instanceof Array. | ||
*/ | ||
useIsArray?: RuleConfiguration; | ||
useIsArray?: RuleConfiguration_for_Null; | ||
/** | ||
* Require using the namespace keyword over the module keyword to declare TypeScript namespaces. | ||
*/ | ||
useNamespaceKeyword?: RuleConfiguration; | ||
useNamespaceKeyword?: RuleConfiguration_for_Null; | ||
/** | ||
* This rule verifies the result of typeof $expr unary expressions is being compared to valid values, either string literals containing valid type names or other typeof expressions | ||
*/ | ||
useValidTypeof?: RuleConfiguration; | ||
useValidTypeof?: RuleConfiguration_for_Null; | ||
} | ||
interface OverrideFormatterConfiguration { | ||
/** | ||
* The attribute position style. | ||
*/ | ||
attributePosition?: AttributePosition; | ||
enabled?: boolean; | ||
@@ -1366,18 +1432,84 @@ /** | ||
} | ||
type RuleConfiguration = RulePlainConfiguration | RuleWithOptions; | ||
type RuleConfiguration_for_Null = | ||
| RulePlainConfiguration | ||
| RuleWithOptions_for_Null; | ||
type RuleConfiguration_for_ValidAriaRoleOptions = | ||
| RulePlainConfiguration | ||
| RuleWithOptions_for_ValidAriaRoleOptions; | ||
type RuleConfiguration_for_ComplexityOptions = | ||
| RulePlainConfiguration | ||
| RuleWithOptions_for_ComplexityOptions; | ||
type RuleConfiguration_for_HooksOptions = | ||
| RulePlainConfiguration | ||
| RuleWithOptions_for_HooksOptions; | ||
type RuleConfiguration_for_DeprecatedHooksOptions = | ||
| RulePlainConfiguration | ||
| RuleWithOptions_for_DeprecatedHooksOptions; | ||
type RuleConfiguration_for_RestrictedImportsOptions = | ||
| RulePlainConfiguration | ||
| RuleWithOptions_for_RestrictedImportsOptions; | ||
type RuleConfiguration_for_ConsistentArrayTypeOptions = | ||
| RulePlainConfiguration | ||
| RuleWithOptions_for_ConsistentArrayTypeOptions; | ||
type RuleConfiguration_for_FilenamingConventionOptions = | ||
| RulePlainConfiguration | ||
| RuleWithOptions_for_FilenamingConventionOptions; | ||
type RuleConfiguration_for_UtilityClassSortingOptions = | ||
| RulePlainConfiguration | ||
| RuleWithOptions_for_UtilityClassSortingOptions; | ||
type RuleConfiguration_for_RestrictedGlobalsOptions = | ||
| RulePlainConfiguration | ||
| RuleWithOptions_for_RestrictedGlobalsOptions; | ||
type RuleConfiguration_for_NamingConventionOptions = | ||
| RulePlainConfiguration | ||
| RuleWithOptions_for_NamingConventionOptions; | ||
type RulePlainConfiguration = "warn" | "error" | "off"; | ||
interface RuleWithOptions { | ||
interface RuleWithOptions_for_Null { | ||
level: RulePlainConfiguration; | ||
options?: PossibleOptions; | ||
options: null; | ||
} | ||
type PossibleOptions = | ||
| ComplexityOptions | ||
| ConsistentArrayTypeOptions | ||
| FilenamingConventionOptions | ||
| HooksOptions | ||
| DeprecatedHooksOptions | ||
| NamingConventionOptions | ||
| RestrictedGlobalsOptions | ||
| ValidAriaRoleOptions | ||
| UtilityClassSortingOptions; | ||
interface RuleWithOptions_for_ValidAriaRoleOptions { | ||
level: RulePlainConfiguration; | ||
options: ValidAriaRoleOptions; | ||
} | ||
interface RuleWithOptions_for_ComplexityOptions { | ||
level: RulePlainConfiguration; | ||
options: ComplexityOptions; | ||
} | ||
interface RuleWithOptions_for_HooksOptions { | ||
level: RulePlainConfiguration; | ||
options: HooksOptions; | ||
} | ||
interface RuleWithOptions_for_DeprecatedHooksOptions { | ||
level: RulePlainConfiguration; | ||
options: DeprecatedHooksOptions; | ||
} | ||
interface RuleWithOptions_for_RestrictedImportsOptions { | ||
level: RulePlainConfiguration; | ||
options: RestrictedImportsOptions; | ||
} | ||
interface RuleWithOptions_for_ConsistentArrayTypeOptions { | ||
level: RulePlainConfiguration; | ||
options: ConsistentArrayTypeOptions; | ||
} | ||
interface RuleWithOptions_for_FilenamingConventionOptions { | ||
level: RulePlainConfiguration; | ||
options: FilenamingConventionOptions; | ||
} | ||
interface RuleWithOptions_for_UtilityClassSortingOptions { | ||
level: RulePlainConfiguration; | ||
options: UtilityClassSortingOptions; | ||
} | ||
interface RuleWithOptions_for_RestrictedGlobalsOptions { | ||
level: RulePlainConfiguration; | ||
options: RestrictedGlobalsOptions; | ||
} | ||
interface RuleWithOptions_for_NamingConventionOptions { | ||
level: RulePlainConfiguration; | ||
options: NamingConventionOptions; | ||
} | ||
interface ValidAriaRoleOptions { | ||
allowInvalidRoles: string[]; | ||
ignoreNonDom: boolean; | ||
} | ||
interface ComplexityOptions { | ||
@@ -1389,2 +1521,15 @@ /** | ||
} | ||
interface HooksOptions { | ||
/** | ||
* List of safe hooks | ||
*/ | ||
hooks: Hooks[]; | ||
} | ||
interface DeprecatedHooksOptions {} | ||
interface RestrictedImportsOptions { | ||
/** | ||
* A list of names that should trigger the rule | ||
*/ | ||
paths: {}; | ||
} | ||
interface ConsistentArrayTypeOptions { | ||
@@ -1399,2 +1544,6 @@ syntax: ConsistentArrayType; | ||
/** | ||
* If `false`, then non-ASCII characters are allowed. | ||
*/ | ||
requireAscii: boolean; | ||
/** | ||
* If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case]. | ||
@@ -1404,18 +1553,11 @@ */ | ||
} | ||
interface HooksOptions { | ||
interface UtilityClassSortingOptions { | ||
/** | ||
* List of safe hooks | ||
* Additional attributes that will be sorted. | ||
*/ | ||
hooks: Hooks[]; | ||
} | ||
interface DeprecatedHooksOptions {} | ||
interface NamingConventionOptions { | ||
attributes?: string[]; | ||
/** | ||
* Allowed cases for _TypeScript_ `enum` member names. | ||
* Names of the functions or tagged templates that will be sorted. | ||
*/ | ||
enumMemberCase: EnumMemberCase; | ||
/** | ||
* If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case]. | ||
*/ | ||
strictCase: boolean; | ||
functions?: string[]; | ||
} | ||
@@ -1428,18 +1570,16 @@ interface RestrictedGlobalsOptions { | ||
} | ||
interface ValidAriaRoleOptions { | ||
allowInvalidRoles: string[]; | ||
ignoreNonDom: boolean; | ||
} | ||
interface UtilityClassSortingOptions { | ||
interface NamingConventionOptions { | ||
/** | ||
* Additional attributes that will be sorted. | ||
* Allowed cases for _TypeScript_ `enum` member names. | ||
*/ | ||
attributes?: string[]; | ||
enumMemberCase: EnumMemberCase; | ||
/** | ||
* Names of the functions or tagged templates that will be sorted. | ||
* If `false`, then non-ASCII characters are allowed. | ||
*/ | ||
functions?: string[]; | ||
requireAscii: boolean; | ||
/** | ||
* If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case]. | ||
*/ | ||
strictCase: boolean; | ||
} | ||
type ConsistentArrayType = "shorthand" | "generic"; | ||
type FilenameCases = FilenameCase[]; | ||
interface Hooks { | ||
@@ -1461,2 +1601,4 @@ /** | ||
} | ||
type ConsistentArrayType = "shorthand" | "generic"; | ||
type FilenameCases = FilenameCase[]; | ||
type EnumMemberCase = "PascalCase" | "CONSTANT_CASE" | "camelCase"; | ||
@@ -1469,31 +1611,55 @@ type FilenameCase = | ||
| "snake_case"; | ||
interface ProjectFeaturesParams { | ||
manifest_path: RomePath; | ||
interface UpdateProjectParams { | ||
path: BiomePath; | ||
} | ||
interface ProjectFeaturesResult {} | ||
interface OpenProjectParams { | ||
content: string; | ||
path: BiomePath; | ||
version: number; | ||
} | ||
interface OpenFileParams { | ||
content: string; | ||
language_hint?: Language; | ||
path: RomePath; | ||
document_file_source?: DocumentFileSource; | ||
path: BiomePath; | ||
version: number; | ||
} | ||
type Language = | ||
| "JavaScript" | ||
| "JavaScriptReact" | ||
| "TypeScript" | ||
| "TypeScriptReact" | ||
| "Json" | ||
| "Jsonc" | ||
| "Css" | ||
| "Unknown"; | ||
type DocumentFileSource = | ||
| "Unknown" | ||
| { Js: JsFileSource } | ||
| { Json: JsonFileSource } | ||
| { Css: CssFileSource }; | ||
interface JsFileSource { | ||
/** | ||
* Used to mark if the source is being used for an Astro, Svelte or Vue file | ||
*/ | ||
embedding_kind: EmbeddingKind; | ||
language: Language; | ||
module_kind: ModuleKind; | ||
variant: LanguageVariant; | ||
version: LanguageVersion; | ||
} | ||
interface JsonFileSource { | ||
allow_trailing_comma: boolean; | ||
variant: JsonVariant; | ||
} | ||
interface CssFileSource { | ||
variant: CssVariant; | ||
} | ||
type EmbeddingKind = "Astro" | "Vue" | "Svelte" | "None"; | ||
type Language = "JavaScript" | { TypeScript: { definition_file: boolean } }; | ||
type ModuleKind = "Script" | "Module"; | ||
type LanguageVariant = "Standard" | "StandardRestricted" | "Jsx"; | ||
type LanguageVersion = "ES2022" | "ESNext"; | ||
type JsonVariant = "Standard" | "Jsonc"; | ||
type CssVariant = "Standard"; | ||
interface ChangeFileParams { | ||
content: string; | ||
path: RomePath; | ||
path: BiomePath; | ||
version: number; | ||
} | ||
interface CloseFileParams { | ||
path: RomePath; | ||
path: BiomePath; | ||
} | ||
interface GetSyntaxTreeParams { | ||
path: RomePath; | ||
path: BiomePath; | ||
} | ||
@@ -1505,3 +1671,3 @@ interface GetSyntaxTreeResult { | ||
interface OrganizeImportsParams { | ||
path: RomePath; | ||
path: BiomePath; | ||
} | ||
@@ -1512,11 +1678,11 @@ interface OrganizeImportsResult { | ||
interface GetFileContentParams { | ||
path: RomePath; | ||
path: BiomePath; | ||
} | ||
interface GetControlFlowGraphParams { | ||
cursor: TextSize; | ||
path: RomePath; | ||
path: BiomePath; | ||
} | ||
type TextSize = number; | ||
interface GetFormatterIRParams { | ||
path: RomePath; | ||
path: BiomePath; | ||
} | ||
@@ -1526,3 +1692,3 @@ interface PullDiagnosticsParams { | ||
max_diagnostics: number; | ||
path: RomePath; | ||
path: BiomePath; | ||
} | ||
@@ -1640,5 +1806,10 @@ type RuleCategories = RuleCategory[]; | ||
| "lint/nursery/noApproximativeNumericConstant" | ||
| "lint/nursery/noBarrelFile" | ||
| "lint/nursery/noConsole" | ||
| "lint/nursery/noDuplicateJsonKeys" | ||
| "lint/nursery/noDuplicateTestHooks" | ||
| "lint/nursery/noEmptyBlockStatements" | ||
| "lint/nursery/noEmptyTypeParameters" | ||
| "lint/nursery/noExcessiveNestedTestSuites" | ||
| "lint/nursery/noExportsInTest" | ||
| "lint/nursery/noFocusedTests" | ||
@@ -1649,6 +1820,11 @@ | "lint/nursery/noGlobalAssign" | ||
| "lint/nursery/noMisleadingCharacterClass" | ||
| "lint/nursery/noNamespaceImport" | ||
| "lint/nursery/noNodejsModules" | ||
| "lint/nursery/noReExportAll" | ||
| "lint/nursery/noRestrictedImports" | ||
| "lint/nursery/noSemicolonInJsx" | ||
| "lint/nursery/noSkippedTests" | ||
| "lint/nursery/noThenProperty" | ||
| "lint/nursery/noTypeOnlyImportAttributes" | ||
| "lint/nursery/noUndeclaredDependencies" | ||
| "lint/nursery/noUnusedImports" | ||
@@ -1667,2 +1843,4 @@ | "lint/nursery/noUnusedPrivateClassMembers" | ||
| "lint/nursery/useImportType" | ||
| "lint/nursery/useJsxKeyInIterable" | ||
| "lint/nursery/useNodeAssertStrict" | ||
| "lint/nursery/useNodejsImportProtocol" | ||
@@ -1850,3 +2028,3 @@ | "lint/nursery/useNumberNamespace" | ||
interface PullActionsParams { | ||
path: RomePath; | ||
path: BiomePath; | ||
range: TextRange; | ||
@@ -1887,3 +2065,3 @@ } | ||
interface FormatFileParams { | ||
path: RomePath; | ||
path: BiomePath; | ||
} | ||
@@ -1907,3 +2085,3 @@ interface Printed { | ||
interface FormatRangeParams { | ||
path: RomePath; | ||
path: BiomePath; | ||
range: TextRange; | ||
@@ -1913,7 +2091,7 @@ } | ||
offset: TextSize; | ||
path: RomePath; | ||
path: BiomePath; | ||
} | ||
interface FixFileParams { | ||
fix_file_mode: FixFileMode; | ||
path: RomePath; | ||
path: BiomePath; | ||
should_format: boolean; | ||
@@ -1952,3 +2130,3 @@ } | ||
new_name: string; | ||
path: RomePath; | ||
path: BiomePath; | ||
symbol_at: TextSize; | ||
@@ -1955,0 +2133,0 @@ } |
@@ -14,2 +14,11 @@ let imports = {}; | ||
function addHeapObject(obj) { | ||
if (heap_next === heap.length) heap.push(heap.length + 1); | ||
const idx = heap_next; | ||
heap_next = heap[idx]; | ||
heap[idx] = obj; | ||
return idx; | ||
} | ||
function dropObject(idx) { | ||
@@ -27,11 +36,2 @@ if (idx < 132) return; | ||
function addHeapObject(obj) { | ||
if (heap_next === heap.length) heap.push(heap.length + 1); | ||
const idx = heap_next; | ||
heap_next = heap[idx]; | ||
heap[idx] = obj; | ||
return idx; | ||
} | ||
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); | ||
@@ -666,16 +666,2 @@ | ||
module.exports.__wbindgen_is_undefined = function(arg0) { | ||
const ret = getObject(arg0) === undefined; | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_in = function(arg0, arg1) { | ||
const ret = getObject(arg0) in getObject(arg1); | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_object_drop_ref = function(arg0) { | ||
takeObject(arg0); | ||
}; | ||
module.exports.__wbindgen_boolean_get = function(arg0) { | ||
@@ -702,2 +688,6 @@ const v = getObject(arg0); | ||
module.exports.__wbindgen_object_drop_ref = function(arg0) { | ||
takeObject(arg0); | ||
}; | ||
module.exports.__wbindgen_bigint_from_u64 = function(arg0) { | ||
@@ -735,2 +725,7 @@ const ret = BigInt.asUintN(64, arg0); | ||
module.exports.__wbindgen_in = function(arg0, arg1) { | ||
const ret = getObject(arg0) in getObject(arg1); | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_is_string = function(arg0) { | ||
@@ -741,5 +736,5 @@ const ret = typeof(getObject(arg0)) === 'string'; | ||
module.exports.__wbindgen_object_clone_ref = function(arg0) { | ||
const ret = getObject(arg0); | ||
return addHeapObject(ret); | ||
module.exports.__wbindgen_is_undefined = function(arg0) { | ||
const ret = getObject(arg0) === undefined; | ||
return ret; | ||
}; | ||
@@ -752,10 +747,2 @@ | ||
module.exports.__wbg_String_91fba7ded13ba54c = function(arg0, arg1) { | ||
const ret = String(getObject(arg1)); | ||
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len0 = WASM_VECTOR_LEN; | ||
getInt32Memory0()[arg0 / 4 + 1] = len0; | ||
getInt32Memory0()[arg0 / 4 + 0] = ptr0; | ||
}; | ||
module.exports.__wbindgen_number_new = function(arg0) { | ||
@@ -766,2 +753,7 @@ const ret = arg0; | ||
module.exports.__wbindgen_object_clone_ref = function(arg0) { | ||
const ret = getObject(arg0); | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbindgen_string_new = function(arg0, arg1) { | ||
@@ -781,2 +773,10 @@ const ret = getStringFromWasm0(arg0, arg1); | ||
module.exports.__wbg_String_91fba7ded13ba54c = function(arg0, arg1) { | ||
const ret = String(getObject(arg1)); | ||
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len0 = WASM_VECTOR_LEN; | ||
getInt32Memory0()[arg0 / 4 + 1] = len0; | ||
getInt32Memory0()[arg0 / 4 + 0] = ptr0; | ||
}; | ||
module.exports.__wbg_new_abda76e883ba8a5f = function() { | ||
@@ -783,0 +783,0 @@ const ret = new Error(); |
@@ -1,1 +0,1 @@ | ||
{"name":"@biomejs/wasm-nodejs","collaborators":["Biome Developers and Contributors"],"description":"WebAssembly bindings to the Biome workspace API","version":"1.5.3-nightly.24fcf19","license":"MIT OR Apache-2.0","repository":{"type":"git","url":"https://github.com/biomejs/biome"},"files":["biome_wasm_bg.wasm","biome_wasm.js","biome_wasm.d.ts"],"main":"biome_wasm.js","homepage":"https://biomejs.dev/","types":"biome_wasm.d.ts","keywords":["parser","linter","formatter"]} | ||
{"name":"@biomejs/wasm-nodejs","collaborators":["Biome Developers and Contributors"],"description":"WebAssembly bindings to the Biome workspace API","version":"1.5.3-nightly.4fa841c","license":"MIT OR Apache-2.0","repository":{"type":"git","url":"https://github.com/biomejs/biome"},"files":["biome_wasm_bg.wasm","biome_wasm.js","biome_wasm.d.ts"],"main":"biome_wasm.js","homepage":"https://biomejs.dev/","types":"biome_wasm.d.ts","keywords":["parser","linter","formatter"]} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9348763
3059