@biomejs/wasm-web
Advanced tools
Comparing version 1.2.2 to 1.3.0
@@ -59,2 +59,6 @@ /* tslint:disable */ | ||
/** | ||
* A list of granular patterns that should be applied only to a sub set of files | ||
*/ | ||
overrides?: Overrides; | ||
/** | ||
* The configuration of the VCS integration | ||
@@ -67,3 +71,3 @@ */ | ||
/** | ||
* A list of Unix shell style patterns. Biome tools will ignore files/folders that will match these patterns. | ||
* A list of Unix shell style patterns. Biome will ignore files/folders that will match these patterns. | ||
*/ | ||
@@ -76,2 +80,6 @@ ignore?: StringSet; | ||
/** | ||
* A list of Unix shell style patterns. Biome will handle only those files/folders that will match these patterns. | ||
*/ | ||
include?: StringSet; | ||
/** | ||
* The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reasons. Defaults to 1 MiB | ||
@@ -92,4 +100,8 @@ */ | ||
/** | ||
* The size of the indentation, 2 by default | ||
* A list of Unix shell style patterns. The formatter will include files/folders that will match these patterns. | ||
*/ | ||
include?: StringSet; | ||
/** | ||
* The size of the indentation, 2 by default (deprecated, use `indent-width`) | ||
*/ | ||
indentSize?: number; | ||
@@ -101,2 +113,6 @@ /** | ||
/** | ||
* The size of the indentation, 2 by default | ||
*/ | ||
indentWidth?: number; | ||
/** | ||
* What's the max width of a line. Defaults to 80. | ||
@@ -143,2 +159,6 @@ */ | ||
/** | ||
* A list of Unix shell style patterns. The formatter will include files/folders that will match these patterns. | ||
*/ | ||
include?: StringSet; | ||
/** | ||
* List of rules | ||
@@ -157,3 +177,10 @@ */ | ||
ignore?: StringSet; | ||
/** | ||
* A list of Unix shell style patterns. The formatter will include files/folders that will match these patterns. | ||
*/ | ||
include?: StringSet; | ||
} | ||
interface Overrides { | ||
list: OverridePattern[]; | ||
} | ||
interface VcsConfiguration { | ||
@@ -199,2 +226,6 @@ /** | ||
/** | ||
* The size of the indentation applied to JavaScript (and its super languages) files. Default to 2. | ||
*/ | ||
indentWidth?: number; | ||
/** | ||
* The type of quotes used in JSX. Defaults to double. | ||
@@ -247,2 +278,6 @@ */ | ||
/** | ||
* The size of the indentation applied to JSON (and its super languages) files. Default to 2. | ||
*/ | ||
indentWidth?: number; | ||
/** | ||
* What's the max width of a line, applied to JSON (and its super languages) files. Defaults to 80. | ||
@@ -257,2 +292,6 @@ */ | ||
allowComments?: boolean; | ||
/** | ||
* Allow parsing trailing commas in `.json` files | ||
*/ | ||
allowTrailingCommas?: boolean; | ||
} | ||
@@ -277,2 +316,32 @@ interface Rules { | ||
} | ||
interface OverridePattern { | ||
/** | ||
* Specific configuration for the Json language | ||
*/ | ||
formatter?: OverrideFormatterConfiguration; | ||
/** | ||
* A list of Unix shell style patterns. The formatter will ignore files/folders that will match these patterns. | ||
*/ | ||
ignore?: StringSet; | ||
/** | ||
* A list of Unix shell style patterns. The formatter will include files/folders that will match these patterns. | ||
*/ | ||
include?: StringSet; | ||
/** | ||
* Specific configuration for the JavaScript language | ||
*/ | ||
javascript?: JavascriptConfiguration; | ||
/** | ||
* Specific configuration for the Json language | ||
*/ | ||
json?: JsonConfiguration; | ||
/** | ||
* Specific configuration for the Json language | ||
*/ | ||
linter?: OverrideLinterConfiguration; | ||
/** | ||
* Specific configuration for the Json language | ||
*/ | ||
organizeImports?: OverrideOrganizeImportsConfiguration; | ||
} | ||
type VcsClientKind = "git"; | ||
@@ -408,2 +477,6 @@ type ArrowParentheses = "always" | "asNeeded"; | ||
/** | ||
* Disallow functions that exceed a given Cognitive Complexity score. | ||
*/ | ||
noExcessiveCognitiveComplexity?: RuleConfiguration; | ||
/** | ||
* Disallow unnecessary boolean casts | ||
@@ -417,3 +490,3 @@ */ | ||
/** | ||
* Disallow unclear usage of multiple space characters in regular expression literals | ||
* Disallow unclear usage of consecutive space characters in regular expression literals | ||
*/ | ||
@@ -462,2 +535,6 @@ noMultipleSpacesInRegularExpressionLiterals?: RuleConfiguration; | ||
/** | ||
* Disallow the use of void operators, which is not a familiar operator. | ||
*/ | ||
noVoid?: RuleConfiguration; | ||
/** | ||
* Disallow with statements in non-strict contexts. | ||
@@ -573,3 +650,3 @@ */ | ||
/** | ||
* 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 | ||
* 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 | ||
*/ | ||
@@ -606,2 +683,10 @@ noUnreachableSuper?: RuleConfiguration; | ||
/** | ||
* Enforce all dependencies are correctly specified in a React hook. | ||
*/ | ||
useExhaustiveDependencies?: RuleConfiguration; | ||
/** | ||
* Enforce that all React hooks are being called from the Top Level component functions. | ||
*/ | ||
useHookAtTopLevel?: RuleConfiguration; | ||
/** | ||
* Require calls to isNaN() when checking for NaN. | ||
@@ -625,10 +710,6 @@ */ | ||
/** | ||
* Disallow the use of spread (...) syntax on accumulators. | ||
* 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. | ||
*/ | ||
noAccumulatingSpread?: RuleConfiguration; | ||
noApproximativeNumericConstant?: RuleConfiguration; | ||
/** | ||
* Disallow void type outside of generic or return types. | ||
*/ | ||
noConfusingVoidType?: RuleConfiguration; | ||
/** | ||
* Disallow two keys with the same name inside a JSON object. | ||
@@ -638,22 +719,38 @@ */ | ||
/** | ||
* Disallow functions that exceed a given complexity score. | ||
* Disallow empty block statements and static blocks. | ||
*/ | ||
noExcessiveComplexity?: RuleConfiguration; | ||
noEmptyBlockStatements?: RuleConfiguration; | ||
/** | ||
* Disallow fallthrough of switch clauses. | ||
* Disallow empty character classes in regular expression literals. | ||
*/ | ||
noFallthroughSwitchClause?: RuleConfiguration; | ||
noEmptyCharacterClassInRegex?: RuleConfiguration; | ||
/** | ||
* Use Number.isFinite instead of global isFinite. | ||
* Enforce that non-interactive ARIA roles are not assigned to interactive HTML elements. | ||
*/ | ||
noGlobalIsFinite?: RuleConfiguration; | ||
noInteractiveElementToNoninteractiveRole?: RuleConfiguration; | ||
/** | ||
* Use Number.isNaN instead of global isNaN. | ||
* Disallow new operators with global non-constructor functions. | ||
*/ | ||
noGlobalIsNan?: RuleConfiguration; | ||
noInvalidNewBuiltin?: RuleConfiguration; | ||
/** | ||
* Disallow the use of void operators, which is not a familiar operator. | ||
* Enforce proper usage of new and constructor. | ||
*/ | ||
noVoid?: RuleConfiguration; | ||
noMisleadingInstantiator?: RuleConfiguration; | ||
/** | ||
* Disallow shorthand assign when variable appears on both sides. | ||
*/ | ||
noMisrefactoredShorthandAssign?: RuleConfiguration; | ||
/** | ||
* Disallow unused imports. | ||
*/ | ||
noUnusedImports?: RuleConfiguration; | ||
/** | ||
* Disallow else block when the if block breaks early. | ||
*/ | ||
noUselessElse?: RuleConfiguration; | ||
/** | ||
* Disallow unnecessary nested block statements. | ||
*/ | ||
noUselessLoneBlockStatements?: RuleConfiguration; | ||
/** | ||
* It enables the recommended rules for this group | ||
@@ -663,2 +760,6 @@ */ | ||
/** | ||
* Enforce that tabIndex is assigned to non-interactive HTML elements with aria-activedescendant. | ||
*/ | ||
useAriaActivedescendantWithTabindex?: RuleConfiguration; | ||
/** | ||
* Use arrow functions over function expressions. | ||
@@ -668,10 +769,6 @@ */ | ||
/** | ||
* Enforce using else if instead of nested if in else clauses. | ||
* Enforce the use of as const over literal type and type annotation. | ||
*/ | ||
useCollapsedElseIf?: RuleConfiguration; | ||
useAsConstAssertion?: RuleConfiguration; | ||
/** | ||
* Enforce all dependencies are correctly specified. | ||
*/ | ||
useExhaustiveDependencies?: RuleConfiguration; | ||
/** | ||
* Enforce the use of import type when an import only has specifiers with type qualifier. | ||
@@ -681,6 +778,2 @@ */ | ||
/** | ||
* Enforce that all React hooks are being called from the Top Level component functions. | ||
*/ | ||
useHookAtTopLevel?: RuleConfiguration; | ||
/** | ||
* Disallows package private imports. | ||
@@ -690,5 +783,5 @@ */ | ||
/** | ||
* Use Array.isArray() instead of instanceof Array. | ||
* Require assignment operator shorthand where possible. | ||
*/ | ||
useIsArray?: RuleConfiguration; | ||
useShorthandAssign?: RuleConfiguration; | ||
} | ||
@@ -701,2 +794,6 @@ interface Performance { | ||
/** | ||
* Disallow the use of spread (...) syntax on accumulators. | ||
*/ | ||
noAccumulatingSpread?: RuleConfiguration; | ||
/** | ||
* Disallow the use of the delete operator. | ||
@@ -754,3 +851,3 @@ */ | ||
/** | ||
* Disallow negation in the condition of an if statement if it has an else clause | ||
* Disallow negation in the condition of an if statement if it has an else clause. | ||
*/ | ||
@@ -791,6 +888,10 @@ noNegationElse?: RuleConfiguration; | ||
/** | ||
* Requires following curly brace conventions. JavaScript allows the omission of curly braces when a block contains only one statement. However, it is considered by many to be best practice to never omit curly braces around blocks, even when they are optional, because it can lead to bugs and reduces code clarity. | ||
* Requires following curly brace conventions. | ||
*/ | ||
useBlockStatements?: RuleConfiguration; | ||
/** | ||
* Enforce using else if instead of nested if in else clauses. | ||
*/ | ||
useCollapsedElseIf?: RuleConfiguration; | ||
/** | ||
* Require const declarations for variables that are never reassigned after declared. | ||
@@ -848,3 +949,3 @@ */ | ||
/** | ||
* Enforce the use of while loops instead of for loops when the initializer and update expressions are not needed | ||
* Enforce the use of while loops instead of for loops when the initializer and update expressions are not needed. | ||
*/ | ||
@@ -891,2 +992,6 @@ useWhile?: RuleConfiguration; | ||
/** | ||
* Disallow void type outside of generic or return types. | ||
*/ | ||
noConfusingVoidType?: RuleConfiguration; | ||
/** | ||
* Disallow the use of console.log | ||
@@ -912,3 +1017,3 @@ */ | ||
/** | ||
* Disallow duplicate case labels. If a switch statement has duplicate test expressions in case clauses, it is likely that a programmer copied a case clause but forgot to change the test expression. | ||
* Disallow duplicate case labels. | ||
*/ | ||
@@ -925,3 +1030,3 @@ noDuplicateCase?: RuleConfiguration; | ||
/** | ||
* Prevents object literals having more than one property declaration for the same name. If an object property with the same name is defined multiple times (except when combining a getter with a setter), only the last definition makes it into the object and previous definitions are ignored, which is likely a mistake. | ||
* Prevents object literals having more than one property declaration for the same name. | ||
*/ | ||
@@ -946,2 +1051,6 @@ noDuplicateObjectKeys?: RuleConfiguration; | ||
/** | ||
* Disallow fallthrough of switch clauses. | ||
*/ | ||
noFallthroughSwitchClause?: RuleConfiguration; | ||
/** | ||
* Disallow reassigning function declarations. | ||
@@ -951,2 +1060,10 @@ */ | ||
/** | ||
* Use Number.isFinite instead of global isFinite. | ||
*/ | ||
noGlobalIsFinite?: RuleConfiguration; | ||
/** | ||
* Use Number.isNaN instead of global isNaN. | ||
*/ | ||
noGlobalIsNan?: RuleConfiguration; | ||
/** | ||
* Disallow assigning to imported bindings | ||
@@ -1004,2 +1121,6 @@ */ | ||
/** | ||
* Use Array.isArray() instead of instanceof Array. | ||
*/ | ||
useIsArray?: RuleConfiguration; | ||
/** | ||
* Require using the namespace keyword over the module keyword to declare TypeScript namespaces. | ||
@@ -1013,2 +1134,41 @@ */ | ||
} | ||
interface OverrideFormatterConfiguration { | ||
enabled?: boolean; | ||
/** | ||
* Stores whether formatting should be allowed to proceed if a given file has syntax errors | ||
*/ | ||
formatWithErrors?: boolean; | ||
/** | ||
* The size of the indentation, 2 by default (deprecated, use `indent-width`) | ||
*/ | ||
indentSize?: number; | ||
/** | ||
* The indent style. | ||
*/ | ||
indentStyle?: PlainIndentStyle; | ||
/** | ||
* The size of the indentation, 2 by default | ||
*/ | ||
indentWidth?: number; | ||
/** | ||
* What's the max width of a line. Defaults to 80. | ||
*/ | ||
lineWidth?: LineWidth; | ||
} | ||
interface OverrideLinterConfiguration { | ||
/** | ||
* if `false`, it disables the feature and the linter won't be executed. `true` by default | ||
*/ | ||
enabled?: boolean; | ||
/** | ||
* List of rules | ||
*/ | ||
rules?: Rules; | ||
} | ||
interface OverrideOrganizeImportsConfiguration { | ||
/** | ||
* if `false`, it disables the feature and the linter won't be executed. `true` by default | ||
*/ | ||
enabled?: boolean; | ||
} | ||
type RuleConfiguration = RulePlainConfiguration | RuleWithOptions; | ||
@@ -1158,3 +1318,2 @@ type RulePlainConfiguration = "warn" | "error" | "off"; | ||
| "lint/a11y/useAnchorContent" | ||
| "lint/a11y/useValidAriaValues" | ||
| "lint/a11y/useAriaPropsForRole" | ||
@@ -1170,4 +1329,6 @@ | "lint/a11y/useButtonType" | ||
| "lint/a11y/useValidAriaProps" | ||
| "lint/a11y/useValidAriaValues" | ||
| "lint/a11y/useValidLang" | ||
| "lint/complexity/noBannedTypes" | ||
| "lint/complexity/noExcessiveCognitiveComplexity" | ||
| "lint/complexity/noExtraBooleanCast" | ||
@@ -1186,2 +1347,3 @@ | "lint/complexity/noForEach" | ||
| "lint/complexity/noUselessTypeConstraint" | ||
| "lint/complexity/noVoid" | ||
| "lint/complexity/noWith" | ||
@@ -1219,21 +1381,26 @@ | "lint/complexity/useFlatMap" | ||
| "lint/correctness/noVoidTypeReturn" | ||
| "lint/correctness/useExhaustiveDependencies" | ||
| "lint/correctness/useHookAtTopLevel" | ||
| "lint/correctness/useIsNan" | ||
| "lint/correctness/useValidForDirection" | ||
| "lint/correctness/useYield" | ||
| "lint/nursery/noAccumulatingSpread" | ||
| "lint/nursery/noConfusingVoidType" | ||
| "lint/nursery/noApproximativeNumericConstant" | ||
| "lint/nursery/noDuplicateJsonKeys" | ||
| "lint/nursery/noExcessiveComplexity" | ||
| "lint/nursery/noFallthroughSwitchClause" | ||
| "lint/nursery/noGlobalIsFinite" | ||
| "lint/nursery/noGlobalIsNan" | ||
| "lint/nursery/noVoid" | ||
| "lint/nursery/noEmptyBlockStatements" | ||
| "lint/nursery/noEmptyCharacterClassInRegex" | ||
| "lint/nursery/noInteractiveElementToNoninteractiveRole" | ||
| "lint/nursery/noInvalidNewBuiltin" | ||
| "lint/nursery/noMisleadingInstantiator" | ||
| "lint/nursery/noMisrefactoredShorthandAssign" | ||
| "lint/nursery/noUnusedImports" | ||
| "lint/nursery/noUselessElse" | ||
| "lint/nursery/noUselessLoneBlockStatements" | ||
| "lint/nursery/useAriaActivedescendantWithTabindex" | ||
| "lint/nursery/useArrowFunction" | ||
| "lint/nursery/useAsConstAssertion" | ||
| "lint/nursery/useBiomeSuppressionComment" | ||
| "lint/nursery/useCollapsedElseIf" | ||
| "lint/nursery/useExhaustiveDependencies" | ||
| "lint/nursery/useGroupedTypeImport" | ||
| "lint/nursery/useHookAtTopLevel" | ||
| "lint/nursery/useImportRestrictions" | ||
| "lint/nursery/useIsArray" | ||
| "lint/nursery/useShorthandAssign" | ||
| "lint/performance/noAccumulatingSpread" | ||
| "lint/performance/noDelete" | ||
@@ -1256,2 +1423,3 @@ | "lint/security/noDangerouslySetInnerHtml" | ||
| "lint/style/useBlockStatements" | ||
| "lint/style/useCollapsedElseIf" | ||
| "lint/style/useConst" | ||
@@ -1279,2 +1447,3 @@ | "lint/style/useDefaultParameterLast" | ||
| "lint/suspicious/noConfusingLabels" | ||
| "lint/suspicious/noConfusingVoidType" | ||
| "lint/suspicious/noConsoleLog" | ||
@@ -1293,3 +1462,6 @@ | "lint/suspicious/noConstEnum" | ||
| "lint/suspicious/noExtraNonNullAssertion" | ||
| "lint/suspicious/noFallthroughSwitchClause" | ||
| "lint/suspicious/noFunctionAssign" | ||
| "lint/suspicious/noGlobalIsFinite" | ||
| "lint/suspicious/noGlobalIsNan" | ||
| "lint/suspicious/noImportAssign" | ||
@@ -1307,2 +1479,3 @@ | "lint/suspicious/noLabelVar" | ||
| "lint/suspicious/useGetterReturn" | ||
| "lint/suspicious/useIsArray" | ||
| "lint/suspicious/useNamespaceKeyword" | ||
@@ -1383,2 +1556,4 @@ | "lint/suspicious/useValidTypeof" | ||
| "Info" | ||
| "Debug" | ||
| "Trace" | ||
| "Inverse" | ||
@@ -1385,0 +1560,0 @@ | { Hyperlink: { href: string } }; |
@@ -1,1 +0,1 @@ | ||
{"name":"@biomejs/wasm-web","collaborators":["Rome Tools Developers and Contributors"],"description":"WebAssembly bindings to the Rome Workspace API","version":"1.2.2","license":"MIT","repository":{"type":"git","url":"https://github.com/biomejs/biome"},"files":["biome_wasm_bg.wasm","biome_wasm.js","biome_wasm.d.ts"],"module":"biome_wasm.js","types":"biome_wasm.d.ts","sideEffects":["./snippets/*"]} | ||
{"name":"@biomejs/wasm-web","collaborators":["Biome Developers and Contributors"],"description":"WebAssembly bindings to the Biome workspace API","version":"1.3.0","license":"MIT","repository":{"type":"git","url":"https://github.com/biomejs/biome"},"files":["biome_wasm_bg.wasm","biome_wasm.js","biome_wasm.d.ts"],"module":"biome_wasm.js","homepage":"https://biomejs.dev/","types":"biome_wasm.d.ts","sideEffects":["./snippets/*"],"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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
7041556
2720
0