Socket
Socket
Sign inDemoInstall

@biomejs/biome

Package Overview
Dependencies
Maintainers
4
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.2 to 1.2.0

285

configuration_schema.json

@@ -79,2 +79,9 @@ {

},
"noAriaUnsupportedElements": {
"description": "Enforce that elements that do not support ARIA roles, states, and properties do not have those attributes.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"noAutofocus": {

@@ -115,2 +122,9 @@ "description": "Enforce that autoFocus prop is not used on elements.",

},
"noNoninteractiveTabindex": {
"description": "Enforce that tabIndex is not assigned to non-interactive HTML elements.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"noPositiveTabindex": {

@@ -130,2 +144,9 @@ "description": "Prevent the usage of positive integers on tabIndex property",

},
"noRedundantRoles": {
"description": "Enforce explicit role property is not the same as implicit/default role property on an element.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"noSvgWithoutTitle": {

@@ -226,2 +247,9 @@ "description": "Enforces the usage of the title element for the svg element.",

},
"useValidAriaValues": {
"description": "Enforce that ARIA state and property values are valid.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"useValidLang": {

@@ -245,2 +273,9 @@ "description": "Ensure that the attribute passed to the lang attribute is a correct ISO language and/or country.",

},
"noBannedTypes": {
"description": "Disallow primitive type aliases and misleading types.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"noExtraBooleanCast": {

@@ -267,2 +302,9 @@ "description": "Disallow unnecessary boolean casts",

},
"noStaticOnlyClass": {
"description": "This rule reports when a class has no non-static members, such as for a class used exclusively as a static namespace.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"noUselessCatch": {

@@ -282,2 +324,9 @@ "description": "Disallow unnecessary catch clauses.",

},
"noUselessEmptyExport": {
"description": "Disallow empty exports that don't change anything in a module file.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"noUselessFragments": {

@@ -311,2 +360,9 @@ "description": "Disallow unnecessary fragments",

},
"noUselessThisAlias": {
"description": "Disallow useless this aliasing.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"noUselessTypeConstraint": {

@@ -403,2 +459,9 @@ "description": "Disallow using any or unknown as type constraint.",

},
"noConstantCondition": {
"description": "Disallow constant expressions in conditions",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"noConstructorReturn": {

@@ -446,2 +509,9 @@ "description": "Disallow returning a value from a constructor.",

},
"noNonoctalDecimalEscape": {
"description": "Disallow \\8 and \\9 escape sequences in string literals.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"noPrecisionLoss": {

@@ -461,2 +531,9 @@ "description": "Disallow literal numbers that lose precision",

},
"noSelfAssign": {
"description": "Disallow assignments where both sides are exactly the same.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"noSetterReturn": {

@@ -730,2 +807,19 @@ "description": "Disallow returning a value from a setter",

},
"enabled": {
"description": "Control the formatter for JavaScript (and its super languages) files.",
"type": ["boolean", "null"]
},
"indentSize": {
"description": "The size of the indentation applied to JavaScript (and its super languages) files. Default to 2.",
"type": ["integer", "null"],
"format": "uint8",
"minimum": 0.0
},
"indentStyle": {
"description": "The indent style applied to JavaScript (and its super languages) files.",
"anyOf": [
{ "$ref": "#/definitions/PlainIndentStyle" },
{ "type": "null" }
]
},
"jsxQuoteStyle": {

@@ -735,2 +829,7 @@ "description": "The type of quotes used in JSX. Defaults to double.",

},
"lineWidth": {
"description": "What's the max width of a line, applied to JavaScript (and its super languages) files. Defaults to 80.",
"default": 80,
"anyOf": [{ "$ref": "#/definitions/LineWidth" }, { "type": "null" }]
},
"quoteProperties": {

@@ -780,2 +879,9 @@ "description": "When properties in objects are quoted. Defaults to asNeeded.",

"properties": {
"formatter": {
"description": "Formatting options",
"anyOf": [
{ "$ref": "#/definitions/JsonFormatter" },
{ "type": "null" }
]
},
"parser": {

@@ -788,2 +894,30 @@ "description": "Parsing options",

},
"JsonFormatter": {
"type": "object",
"properties": {
"enabled": {
"description": "Control the formatter for JSON (and its super languages) files.",
"type": ["boolean", "null"]
},
"indent_size": {
"description": "The size of the indentation applied to JSON (and its super languages) files. Default to 2.",
"type": ["integer", "null"],
"format": "uint8",
"minimum": 0.0
},
"indent_style": {
"description": "The indent style applied to JSON (and its super languages) files.",
"anyOf": [
{ "$ref": "#/definitions/PlainIndentStyle" },
{ "type": "null" }
]
},
"line_width": {
"description": "What's the max width of a line, applied to JSON (and its super languages) files. Defaults to 80.",
"default": 80,
"anyOf": [{ "$ref": "#/definitions/LineWidth" }, { "type": "null" }]
}
},
"additionalProperties": false
},
"JsonParser": {

@@ -856,4 +990,4 @@ "description": "Options that changes how the JSON parser behaves",

},
"noAriaUnsupportedElements": {
"description": "Enforce that elements that do not support ARIA roles, states, and properties do not have those attributes.",
"noConfusingVoidType": {
"description": "Disallow void type outside of generic or return types.",
"anyOf": [

@@ -864,30 +998,2 @@ { "$ref": "#/definitions/RuleConfiguration" },

},
"noBannedTypes": {
"description": "Disallow primitive type aliases and misleading types.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"noConfusingArrow": {
"description": "Disallow arrow functions where they could be confused with comparisons.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"noConstantCondition": {
"description": "Disallow constant expressions in conditions",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"noControlCharactersInRegex": {
"description": "Prevents from having control characters and some escape sequences that match control characters in regular expressions.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"noDuplicateJsonKeys": {

@@ -928,58 +1034,2 @@ "description": "Disallow two keys with the same name inside a JSON object.",

},
"noNoninteractiveTabindex": {
"description": "Enforce that tabIndex is not assigned to non-interactive HTML elements.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"noNonoctalDecimalEscape": {
"description": "Disallow \\8 and \\9 escape sequences in string literals.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"noRedundantRoles": {
"description": "Enforce explicit role property is not the same as implicit/default role property on an element.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"noSelfAssign": {
"description": "Disallow assignments where both sides are exactly the same.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"noStaticOnlyClass": {
"description": "This rule reports when a class has no non-static members, such as for a class used exclusively as a static namespace.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"noUnsafeDeclarationMerging": {
"description": "Disallow unsafe declaration merging between interfaces and classes.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"noUselessEmptyExport": {
"description": "Disallow empty exports that don't change anything in a module file.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"noUselessThisAlias": {
"description": "Disallow useless this aliasing.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"noVoid": {

@@ -996,9 +1046,2 @@ "description": "Disallow the use of void operators, which is not a familiar operator.",

},
"useAriaPropTypes": {
"description": "Enforce that ARIA state and property values are valid.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"useArrowFunction": {

@@ -1025,9 +1068,2 @@ "description": "Use arrow functions over function expressions.",

},
"useGetterReturn": {
"description": "Enforce get methods to always return a value.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"useGroupedTypeImport": {

@@ -1060,16 +1096,2 @@ "description": "Enforce the use of import type when an import only has specifiers with type qualifier.",

]
},
"useLiteralEnumMembers": {
"description": "Require all enum members to be literal values.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"useNamingConvention": {
"description": "Enforce naming conventions for everything across a codebase.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
}

@@ -1396,2 +1418,16 @@ }

},
"useLiteralEnumMembers": {
"description": "Require all enum members to be literal values.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"useNamingConvention": {
"description": "Enforce naming conventions for everything across a codebase.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"useNumericLiterals": {

@@ -1526,2 +1562,9 @@ "description": "Disallow parseInt() and Number.parseInt() in favor of binary, octal, and hexadecimal literals",

},
"noControlCharactersInRegex": {
"description": "Prevents from having control characters and some escape sequences that match control characters in regular expressions.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"noDebugger": {

@@ -1660,2 +1703,9 @@ "description": "Disallow the use of debugger",

},
"noUnsafeDeclarationMerging": {
"description": "Disallow unsafe declaration merging between interfaces and classes.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"noUnsafeNegation": {

@@ -1679,2 +1729,9 @@ "description": "Disallow using unsafe negation.",

},
"useGetterReturn": {
"description": "Enforce get methods to always return a value.",
"anyOf": [
{ "$ref": "#/definitions/RuleConfiguration" },
{ "type": "null" }
]
},
"useNamespaceKeyword": {

@@ -1681,0 +1738,0 @@ "description": "Require using the namespace keyword over the module keyword to declare TypeScript namespaces.",

2

package.json

@@ -1,1 +0,1 @@

{"name":"@biomejs/biome","version":"1.1.2","bin":"bin/biome","scripts":{"postinstall":"node scripts/postinstall.js"},"homepage":"https://biomejs.dev","repository":{"type":"git","url":"https://github.com/biomejs/biome.git","directory":"packages/@biomejs/biome"},"author":"Emanuele Stoppa","license":"MIT","bugs":"https://github.com/biomejs/biome/issues","description":"Biome is a toolchain for the web: formatter, linter and more","files":["bin/biome","scripts/postinstall.js","configuration_schema.json","README.md"],"keywords":["JavaScript","TypeScript","format","lint","toolchain","JSON"],"engines":{"node":">=14.*"},"optionalDependencies":{"@biomejs/cli-win32-x64":"1.1.2","@biomejs/cli-win32-arm64":"1.1.2","@biomejs/cli-darwin-x64":"1.1.2","@biomejs/cli-darwin-arm64":"1.1.2","@biomejs/cli-linux-x64":"1.1.2","@biomejs/cli-linux-arm64":"1.1.2"}}
{"name":"@biomejs/biome","version":"1.2.0","bin":"bin/biome","scripts":{"postinstall":"node scripts/postinstall.js"},"homepage":"https://biomejs.dev","repository":{"type":"git","url":"https://github.com/biomejs/biome.git","directory":"packages/@biomejs/biome"},"author":"Emanuele Stoppa","license":"MIT","bugs":"https://github.com/biomejs/biome/issues","description":"Biome is a toolchain for the web: formatter, linter and more","files":["bin/biome","scripts/postinstall.js","configuration_schema.json","README.md"],"keywords":["JavaScript","TypeScript","format","lint","toolchain","JSON"],"engines":{"node":">=14.*"},"optionalDependencies":{"@biomejs/cli-win32-x64":"1.2.0","@biomejs/cli-win32-arm64":"1.2.0","@biomejs/cli-darwin-x64":"1.2.0","@biomejs/cli-darwin-arm64":"1.2.0","@biomejs/cli-linux-x64":"1.2.0","@biomejs/cli-linux-arm64":"1.2.0"}}

@@ -5,12 +5,12 @@ const { platform, arch } = process;

win32: {
x64: "@biomejs/cli-win32-x64/rome.exe",
arm64: "@biomejs/cli-win32-arm64/rome.exe",
x64: "@biomejs/cli-win32-x64/biome.exe",
arm64: "@biomejs/cli-win32-arm64/biome.exe",
},
darwin: {
x64: "@biomejs/cli-darwin-x64/rome",
arm64: "@biomejs/cli-darwin-arm64/rome",
x64: "@biomejs/cli-darwin-x64/biome",
arm64: "@biomejs/cli-darwin-arm64/biome",
},
linux: {
x64: "@biomejs/cli-linux-x64/rome",
arm64: "@biomejs/cli-linux-arm64/rome",
x64: "@biomejs/cli-linux-x64/biome",
arm64: "@biomejs/cli-linux-arm64/biome",
},

@@ -26,3 +26,3 @@ };

console.warn(
`The Biome CLI postinstall script failed to resolve the binary file "${binName}". Running Biome from the npm package will probably not work correctly.`,
`The Biome CLI postinstall script failed to resolve the binary file "${binName}". Running Biome from the npm package will probably not work correctly.`
);

@@ -34,4 +34,4 @@ }

"You can still use the CLI by cloning the biomejs/biome repo from GitHub, " +
"and follow the instructions there to build the CLI for your platform.",
"and follow the instructions there to build the CLI for your platform."
);
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc