@biomejs/wasm-nodejs
Advanced tools
Comparing version 1.4.1 to 1.5.0
@@ -20,2 +20,3 @@ /* tslint:disable */ | ||
| "Ignored" | ||
| "Protected" | ||
| "FeatureNotEnabled" | ||
@@ -25,2 +26,4 @@ | "FileNotSupported"; | ||
configuration: Configuration; | ||
gitignore_matches: string[]; | ||
vcs_base_path?: string; | ||
} | ||
@@ -33,2 +36,6 @@ interface Configuration { | ||
/** | ||
* Specific configuration for the Css language | ||
*/ | ||
css?: CssConfiguration; | ||
/** | ||
* A list of paths to other JSON files, used to extends the current configuration. | ||
@@ -70,2 +77,12 @@ */ | ||
} | ||
interface CssConfiguration { | ||
/** | ||
* Formatting options | ||
*/ | ||
formatter?: CssFormatter; | ||
/** | ||
* Parsing options | ||
*/ | ||
parser?: CssParser; | ||
} | ||
type StringSet = string[]; | ||
@@ -191,2 +208,6 @@ interface FilesConfiguration { | ||
/** | ||
* The main branch of the project | ||
*/ | ||
defaultBranch?: string; | ||
/** | ||
* Whether Biome should integrate itself with the VCS client | ||
@@ -206,2 +227,35 @@ */ | ||
} | ||
interface CssFormatter { | ||
/** | ||
* Control the formatter for CSS (and its super languages) files. | ||
*/ | ||
enabled?: boolean; | ||
/** | ||
* The size of the indentation applied to CSS (and its super languages) files. Default to 2. | ||
*/ | ||
indentSize?: number; | ||
/** | ||
* The indent style applied to CSS (and its super languages) files. | ||
*/ | ||
indentStyle?: PlainIndentStyle; | ||
/** | ||
* The size of the indentation applied to CSS (and its super languages) files. Default to 2. | ||
*/ | ||
indentWidth?: number; | ||
/** | ||
* The type of line ending applied to CSS (and its super languages) files. | ||
*/ | ||
lineEnding?: LineEnding; | ||
/** | ||
* What's the max width of a line applied to CSS (and its super languages) files. Defaults to 80. | ||
*/ | ||
lineWidth?: LineWidth; | ||
quoteStyle?: QuoteStyle; | ||
} | ||
interface CssParser { | ||
/** | ||
* Allow comments to appear on incorrect lines in `.css` files | ||
*/ | ||
allowWrongLineComments?: boolean; | ||
} | ||
type PlainIndentStyle = "tab" | "space"; | ||
@@ -333,2 +387,6 @@ type LineEnding = "lf" | "crlf" | "cr"; | ||
/** | ||
* Specific configuration for the Css language | ||
*/ | ||
css?: CssConfiguration; | ||
/** | ||
* Specific configuration for the Json language | ||
@@ -363,4 +421,4 @@ */ | ||
type VcsClientKind = "git"; | ||
type QuoteStyle = "double" | "single"; | ||
type ArrowParentheses = "always" | "asNeeded"; | ||
type QuoteStyle = "double" | "single"; | ||
type QuoteProperties = "asNeeded" | "preserve"; | ||
@@ -379,2 +437,6 @@ type Semicolons = "always" | "asNeeded"; | ||
/** | ||
* Enforce that aria-hidden="true" is not set on focusable elements. | ||
*/ | ||
noAriaHiddenOnFocusable?: RuleConfiguration; | ||
/** | ||
* Enforce that elements that do not support ARIA roles, states, and properties do not have those attributes. | ||
@@ -484,2 +546,6 @@ */ | ||
/** | ||
* Elements with ARIA roles must use a valid, non-abstract ARIA role. | ||
*/ | ||
useValidAriaRole?: RuleConfiguration; | ||
/** | ||
* Enforce that ARIA state and property values are valid. | ||
@@ -591,2 +657,6 @@ */ | ||
/** | ||
* Enforce the use of the regular expression literals instead of the RegExp constructor if possible. | ||
*/ | ||
useRegexLiterals?: RuleConfiguration; | ||
/** | ||
* Disallow number literal object member names which are not base10 or uses underscore as separator | ||
@@ -748,10 +818,2 @@ */ | ||
/** | ||
* Enforce that aria-hidden="true" is not set on focusable elements. | ||
*/ | ||
noAriaHiddenOnFocusable?: RuleConfiguration; | ||
/** | ||
* Disallow default exports. | ||
*/ | ||
noDefaultExport?: RuleConfiguration; | ||
/** | ||
* Disallow two keys with the same name inside a JSON object. | ||
@@ -765,6 +827,30 @@ */ | ||
/** | ||
* Disallow use of implicit any type on variable declarations. | ||
* Disallow empty type parameters in type aliases and interfaces. | ||
*/ | ||
noImplicitAnyLet?: RuleConfiguration; | ||
noEmptyTypeParameters?: RuleConfiguration; | ||
/** | ||
* Disallow assignments to native objects and read-only global variables. | ||
*/ | ||
noGlobalAssign?: RuleConfiguration; | ||
/** | ||
* Disallow the use of global eval(). | ||
*/ | ||
noGlobalEval?: RuleConfiguration; | ||
/** | ||
* Disallow the use of variables and function parameters before their declaration | ||
*/ | ||
noInvalidUseBeforeDeclaration?: RuleConfiguration; | ||
/** | ||
* Disallow characters made with multiple code points in character class syntax. | ||
*/ | ||
noMisleadingCharacterClass?: RuleConfiguration; | ||
/** | ||
* Forbid the use of Node.js builtin modules. | ||
*/ | ||
noNodejsModules?: RuleConfiguration; | ||
/** | ||
* Disallow then property. | ||
*/ | ||
noThenProperty?: RuleConfiguration; | ||
/** | ||
* Disallow unused imports. | ||
@@ -782,2 +868,6 @@ */ | ||
/** | ||
* Disallow ternary operators when simpler alternatives exist. | ||
*/ | ||
noUselessTernary?: RuleConfiguration; | ||
/** | ||
* It enables the recommended rules for this group | ||
@@ -791,2 +881,14 @@ */ | ||
/** | ||
* Promotes the use of export type for types. | ||
*/ | ||
useExportType?: RuleConfiguration; | ||
/** | ||
* Enforce naming conventions for JavaScript and TypeScript filenames. | ||
*/ | ||
useFilenamingConvention?: RuleConfiguration; | ||
/** | ||
* 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; | ||
/** | ||
* Enforce the use of import type when an import only has specifiers with type qualifier. | ||
@@ -800,9 +902,17 @@ */ | ||
/** | ||
* Enforce the use of the regular expression literals instead of the RegExp constructor if possible. | ||
* Promotes the use of import type for types. | ||
*/ | ||
useRegexLiterals?: RuleConfiguration; | ||
useImportType?: RuleConfiguration; | ||
/** | ||
* Elements with ARIA roles must use a valid, non-abstract ARIA role. | ||
* Enforces using the node: protocol for Node.js builtin modules. | ||
*/ | ||
useValidAriaRole?: RuleConfiguration; | ||
useNodejsImportProtocol?: RuleConfiguration; | ||
/** | ||
* Use the Number properties instead of global ones. | ||
*/ | ||
useNumberNamespace?: RuleConfiguration; | ||
/** | ||
* Enforce using function types instead of object type with call signatures. | ||
*/ | ||
useShorthandFunctionType?: RuleConfiguration; | ||
} | ||
@@ -859,2 +969,6 @@ interface Performance { | ||
/** | ||
* Disallow default exports. | ||
*/ | ||
noDefaultExport?: RuleConfiguration; | ||
/** | ||
* Disallow implicit true values on JSX boolean attributes | ||
@@ -924,2 +1038,6 @@ */ | ||
/** | ||
* Require consistently using either T[] or Array<T> | ||
*/ | ||
useConsistentArrayType?: RuleConfiguration; | ||
/** | ||
* Require const declarations for variables that are never reassigned after declared. | ||
@@ -1099,2 +1217,6 @@ */ | ||
/** | ||
* Disallow use of implicit any type on variable declarations. | ||
*/ | ||
noImplicitAnyLet?: RuleConfiguration; | ||
/** | ||
* Disallow assigning to imported bindings | ||
@@ -1223,3 +1345,5 @@ */ | ||
| ComplexityOptions | ||
| FilenamingConventionOptions | ||
| HooksOptions | ||
| DeprecatedHooksOptions | ||
| NamingConventionOptions | ||
@@ -1234,2 +1358,12 @@ | RestrictedGlobalsOptions | ||
} | ||
interface FilenamingConventionOptions { | ||
/** | ||
* Allowed cases for _TypeScript_ `enum` member names. | ||
*/ | ||
filenameCases: FilenameCases; | ||
/** | ||
* If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case]. | ||
*/ | ||
strictCase: boolean; | ||
} | ||
interface HooksOptions { | ||
@@ -1241,2 +1375,3 @@ /** | ||
} | ||
interface DeprecatedHooksOptions {} | ||
interface NamingConventionOptions { | ||
@@ -1262,2 +1397,3 @@ /** | ||
} | ||
type FilenameCases = FilenameCase[]; | ||
interface Hooks { | ||
@@ -1280,2 +1416,8 @@ /** | ||
type EnumMemberCase = "PascalCase" | "CONSTANT_CASE" | "camelCase"; | ||
type FilenameCase = | ||
| "camelCase" | ||
| "export" | ||
| "kebab-case" | ||
| "PascalCase" | ||
| "snake_case"; | ||
interface ProjectFeaturesParams { | ||
@@ -1298,2 +1440,3 @@ manifest_path: RomePath; | ||
| "Jsonc" | ||
| "Css" | ||
| "Unknown"; | ||
@@ -1360,2 +1503,3 @@ interface ChangeFileParams { | ||
| "lint/a11y/noAccessKey" | ||
| "lint/a11y/noAriaHiddenOnFocusable" | ||
| "lint/a11y/noAriaUnsupportedElements" | ||
@@ -1386,2 +1530,3 @@ | "lint/a11y/noAutofocus" | ||
| "lint/a11y/useValidAriaProps" | ||
| "lint/a11y/useValidAriaRole" | ||
| "lint/a11y/useValidAriaValues" | ||
@@ -1411,2 +1556,3 @@ | "lint/a11y/useValidLang" | ||
| "lint/complexity/useOptionalChain" | ||
| "lint/complexity/useRegexLiterals" | ||
| "lint/complexity/useSimpleNumberKeys" | ||
@@ -1448,16 +1594,27 @@ | "lint/complexity/useSimplifiedLogicExpression" | ||
| "lint/nursery/noApproximativeNumericConstant" | ||
| "lint/nursery/noAriaHiddenOnFocusable" | ||
| "lint/nursery/noDefaultExport" | ||
| "lint/nursery/noDuplicateJsonKeys" | ||
| "lint/nursery/noEmptyBlockStatements" | ||
| "lint/nursery/noImplicitAnyLet" | ||
| "lint/nursery/noEmptyTypeParameters" | ||
| "lint/nursery/noGlobalAssign" | ||
| "lint/nursery/noGlobalEval" | ||
| "lint/nursery/noInvalidUseBeforeDeclaration" | ||
| "lint/nursery/noMisleadingCharacterClass" | ||
| "lint/nursery/noNodejsModules" | ||
| "lint/nursery/noThenProperty" | ||
| "lint/nursery/noTypeOnlyImportAttributes" | ||
| "lint/nursery/noUnusedImports" | ||
| "lint/nursery/noUnusedPrivateClassMembers" | ||
| "lint/nursery/noUselessLoneBlockStatements" | ||
| "lint/nursery/noUselessTernary" | ||
| "lint/nursery/useAwait" | ||
| "lint/nursery/useBiomeSuppressionComment" | ||
| "lint/nursery/useExportType" | ||
| "lint/nursery/useFilenamingConvention" | ||
| "lint/nursery/useForOf" | ||
| "lint/nursery/useGroupedTypeImport" | ||
| "lint/nursery/useImportRestrictions" | ||
| "lint/nursery/useRegexLiterals" | ||
| "lint/nursery/useValidAriaRole" | ||
| "lint/nursery/useImportType" | ||
| "lint/nursery/useNodejsImportProtocol" | ||
| "lint/nursery/useNumberNamespace" | ||
| "lint/nursery/useShorthandFunctionType" | ||
| "lint/performance/noAccumulatingSpread" | ||
@@ -1469,2 +1626,3 @@ | "lint/performance/noDelete" | ||
| "lint/style/noCommaOperator" | ||
| "lint/style/noDefaultExport" | ||
| "lint/style/noImplicitBoolean" | ||
@@ -1485,2 +1643,3 @@ | "lint/style/noInferrableTypes" | ||
| "lint/style/useCollapsedElseIf" | ||
| "lint/style/useConsistentArrayType" | ||
| "lint/style/useConst" | ||
@@ -1528,2 +1687,3 @@ | "lint/style/useDefaultParameterLast" | ||
| "lint/suspicious/noGlobalIsNan" | ||
| "lint/suspicious/noImplicitAnyLet" | ||
| "lint/suspicious/noImportAssign" | ||
@@ -1530,0 +1690,0 @@ | "lint/suspicious/noLabelVar" |
let imports = {}; | ||
imports['__wbindgen_placeholder__'] = module.exports; | ||
let wasm; | ||
const { TextEncoder, TextDecoder } = require(`util`); | ||
const { TextDecoder, TextEncoder } = require(`util`); | ||
@@ -35,2 +35,19 @@ const heap = new Array(128).fill(undefined); | ||
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); | ||
cachedTextDecoder.decode(); | ||
let cachedUint8Memory0 = null; | ||
function getUint8Memory0() { | ||
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) { | ||
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer); | ||
} | ||
return cachedUint8Memory0; | ||
} | ||
function getStringFromWasm0(ptr, len) { | ||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); | ||
} | ||
function isLikeNone(x) { | ||
@@ -60,11 +77,2 @@ return x === undefined || x === null; | ||
let cachedUint8Memory0 = null; | ||
function getUint8Memory0() { | ||
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) { | ||
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer); | ||
} | ||
return cachedUint8Memory0; | ||
} | ||
let cachedTextEncoder = new TextEncoder('utf-8'); | ||
@@ -123,10 +131,2 @@ | ||
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); | ||
cachedTextDecoder.decode(); | ||
function getStringFromWasm0(ptr, len) { | ||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); | ||
} | ||
let cachedBigInt64Memory0 = null; | ||
@@ -707,2 +707,7 @@ | ||
module.exports.__wbindgen_error_new = function(arg0, arg1) { | ||
const ret = new Error(getStringFromWasm0(arg0, arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbindgen_number_get = function(arg0, arg1) { | ||
@@ -735,7 +740,2 @@ const obj = getObject(arg1); | ||
module.exports.__wbindgen_error_new = function(arg0, arg1) { | ||
const ret = new Error(getStringFromWasm0(arg0, arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbindgen_object_clone_ref = function(arg0) { | ||
@@ -742,0 +742,0 @@ const ret = getObject(arg0); |
@@ -1,1 +0,1 @@ | ||
{"name":"@biomejs/wasm-nodejs","collaborators":["Biome Developers and Contributors"],"description":"WebAssembly bindings to the Biome workspace API","version":"1.4.1","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.0","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
9695815
2848