Skip to content

Commit

Permalink
chore: codegen and changelog
Browse files Browse the repository at this point in the history
Discard changes to CHANGELOG.md

chore: changelog

chore: changelog.mdx

chore: codegen

Discard changes to crates/biome_js_formatter/src/generated.rs

Discard changes to crates/biome_js_unicode_table/src/tables.rs

Discard changes to crates/biome_json_formatter/src/generated.rs
  • Loading branch information
unvalley committed Sep 14, 2023
1 parent 958b4dc commit 18f85b1
Show file tree
Hide file tree
Showing 8 changed files with 1,391 additions and 1,497 deletions.
170 changes: 83 additions & 87 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom
## Unreleased

### Analyzer

### CLI

#### Features
Expand Down Expand Up @@ -46,15 +45,13 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom
- `javascript.formatter.lineWidth`

### Editors

### Formatter

### JavaScript APIs

### Linter
#### New features

- Add [noConfusingVoidType](https://biomejs.dev/linter/rules/no-confusing-void-type/) rule. The rule reports the unusual use of the `void` type. Contributed by [@shulandmimi](https://github.com/shulandmimi)
- Add [noMisleadingInstantiator](https://biomejs.dev/linter/rules/no-mileading-instantiator) rule. The rule reports the misleading use of the `new` and `constructor` methods. Contributed by [@unvalley](https://github.com/unvalley)

#### Enhancements

Expand Down Expand Up @@ -110,12 +107,12 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom
- Fix [#137](https://github.com/biomejs/biome/issues/137), fix [noRedeclare](https://biomejs.dev/linter/rules/no-redeclare/) false positive case with TypeScript module declaration:

```typescript
declare module "*.gif" {
const src: string;
declare module '*.gif' {
const src: string;
}

declare module "*.bmp" {
const src: string;
declare module '*.bmp' {
const src: string;
}
```
Contributed by [@denbezrukov](https://github.com/denbezrukov)
Expand All @@ -135,7 +132,6 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom
Contributed by [@Conaclos](https://github.com/Conaclos)

### Parser

### VSCode

## 1.1.2 (2023-09-07)
Expand All @@ -150,7 +146,7 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom

#### Enhancements

- [useNamingConvention](https://biomejs.dev/linter/rules/use-naming-convention/) now accepts import namespaces in _PascalCase_ and rejects export namespaces in _CONSTANT_CASE_.
- [useNamingConvention](https://biomejs.dev/linter/rules/use-naming-convention/) now accepts import namespaces in _PascalCase_ and rejects export namespaces in _CONSTANT\_CASE_.

The following code is now valid:

Expand Down Expand Up @@ -184,6 +180,7 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom

- Add a code action to replace `rome-ignore` with `biome-ignore`. Use `biome check --apply-unsafe` to update all the comments. The action is not bulletproof, and it might generate unwanted code, that's why it's unsafe action. Contributed by [@ematipico](https://github.com/ematipico)


### CLI

#### Enhancements
Expand All @@ -197,7 +194,6 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom
- Fix a case where Biome couldn't compute correctly the ignored files when the VSC integration is enabled. Contributed by [@ematipico](https://github.com/ematipico)

### Configuration

### Editors

#### Bug fixes
Expand All @@ -212,7 +208,6 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom
- The `// rome-ignore` suppression is deprecated.

### JavaScript APIs

### Linter

#### New features
Expand Down Expand Up @@ -279,7 +274,11 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom
The following code is now correctly ignored:

```js
for (let i = 0, j = 1, k = 2; i < 100; i++, j++, k++) {}
for (
let i = 0, j = 1, k = 2;
i < 100;
i++, j++, k++
) {}
```

Contributed by [@Conaclos](https://github.com/Conaclos)
Expand All @@ -300,7 +299,7 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom
```diff
- a + b + "px"
+ `${a + b}px`
```
```

Contributed by [@Conaclos](https://github.com/Conaclos)

Expand Down Expand Up @@ -406,17 +405,17 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom

- Add a new option to ignore unknown files `--files-ignore-unknown`:

```shell
biome format --files-ignore-unknown ./src
```
```shell
biome format --files-ignore-unknown ./src
```

Doing so, Biome won't emit diagnostics for files that doesn't know how to handle.

- Add the new option `--no-errors-on-unmatched`:

```shell
biome format --no-errors-on-unmatched ./src
```
```shell
biome format --no-errors-on-unmatched ./src
```

Biome doesn't exit with an error code if no files were processed in the given paths.
Expand Down Expand Up @@ -447,36 +446,33 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom
- `.swcrc`;
- `.hintrc`;
- `.babelrc`;

- Add support for `biome.json`;

### Configuration
#### Other changes
- Add a new option to ignore unknown files:
```json
{
"files": {
"ignoreUnknown": true
```json
{
"files": {
"ignoreUnknown": true
}
}
}
```

```
Doing so, Biome won't emit diagnostics for file that it doesn't know how to handle.
- Add a new `"javascript"` option to support the unsafe/experimental parameter decorators:
```json
{
"javascript": {
"parser": {
"unsafeParameterDecoratorsEnabled": true
}
```json
{
"javascript": {
"parser": {
"unsafeParameterDecoratorsEnabled": true
}
}
}
}
```
```
- Add a new `"extends"` option, useful to split the configuration file in multiple files:
Expand Down Expand Up @@ -607,7 +603,7 @@ Read our [guidelines for writing a good changelog entry](https://github.com/biom
```js
class Person {
get firstName() {}
get firstName() {}
}
```
Expand Down Expand Up @@ -640,7 +636,7 @@ The following rules are now recommended:
For instance, the following code is now reported by `noConsoleLog`:
```js
globalThis.console.log("log");
globalThis.console.log("log")
```
- Improve [noDuplicateParameters](https://biomejs.dev/linter/rules/no-duplicate-parameters/) to manage constructor parameters.
Expand Down Expand Up @@ -682,7 +678,7 @@ The following rules are now recommended:
```ts
function f<T extends {}>(x: T) {
assert(x != null);
assert(x != null);
}
```
Expand Down Expand Up @@ -717,13 +713,13 @@ The following rules are now recommended:
Thus, the following snippet no longer trigger the rule:
```js
var x = (a) => (1 ? 2 : 3);
var x = (a) => 1 ? 2 : 3;
```
The following snippet still triggers the rule:
```js
var x = (a) => (1 ? 2 : 3);
var x = a => 1 ? 2 : 3;
```
- Relax [useLiteralEnumMembers](https://biomejs.dev/linter/rules/use-literal-enum-members/)
Expand All @@ -745,8 +741,8 @@ The following rules are now recommended:
```ts
enum FileAccess {
None = 0,
Read = 2 ** 0,
Write = 2 ** 1,
Read = 2**0,
Write = 2**1,
All = Read | Write,
}
```
Expand Down Expand Up @@ -784,16 +780,18 @@ The following rules are now recommended:
```json
{
"linter": {
"rules": {
"nursery": {
"useExhaustiveDependencies": {
"level": "error",
"options": {
"hooks": [["useMyEffect", 0, 1]]
}
"rules": {
"nursery": {
"useExhaustiveDependencies": {
"level": "error",
"options": {
"hooks": [
["useMyEffect", 0, 1]
]
}
}
}
}
}
}
}
}
```
Expand All @@ -803,22 +801,22 @@ The following rules are now recommended:
```json
{
"linter": {
"rules": {
"nursery": {
"useExhaustiveDependencies": {
"level": "error",
"options": {
"hooks": [
{
"name": "useMyEffect",
"closureIndex": 0,
"dependenciesIndex": 1
"rules": {
"nursery": {
"useExhaustiveDependencies": {
"level": "error",
"options": {
"hooks": [
{
"name": "useMyEffect",
"closureIndex": 0,
"dependenciesIndex": 1
}
]
}
]
}
}
}
}
}
}
}
}
```
Expand All @@ -832,13 +830,13 @@ The following rules are now recommended:
- Fix [useExhaustiveDependencies](https://biomejs.dev/linter/rules/use-exhaustive-dependencies/) in the following cases [#4330](https://github.com/rome/tools/issues/4330):
- when the first argument of hooks is a named function
- inside an export default function
- for React.use\* hooks
- when the first argument of hooks is a named function
- inside an export default function
- for React.use* hooks
- Fix [noInvalidConstructorSuper](https://biomejs.dev/linter/rules/no-invalid-constructor-super/) that erroneously reported generic parents [#4624](https://github.com/rome/tools/issues/4624).
- Fix [noDuplicateCase](https://biomejs.dev/linter/rules/noDuplicateCase/) that erroneously reported as equals the strings literals `"'"` and `'"'` [#4706](https://github.com/rome/tools/issues/4706).
- Fix [noDuplicateCase](https://biomejs.dev/linter/rules/noDuplicateCase/) that erroneously reported as equals the strings literals `"'"` and `'"'` [#4706](https://github.com/rome/tools/issues/4706).
- Fix [NoUnreachableSuper](https://biomejs.dev/linter/rules/no-unreachable-super/)'s false positive diagnostics ([#4483](https://github.com/rome/tools/issues/4483)) caused to nested if statement.
Expand Down Expand Up @@ -867,25 +865,24 @@ The following rules are now recommended:
- Add support for decorators in class method parameters, example:
```js
class AppController {
get(@Param() id) {}
// ^^^^^^^^ new supported syntax
}
```
```js
class AppController {
get(@Param() id) {}
// ^^^^^^^^ new supported syntax
}
```
This syntax is only supported via configuration, because it's a non-standard syntax.
```json
{
"javascript": {
"parser": {
"unsafeParameterDecoratorsEnabled": true
}
```json
{
"javascript": {
"parser": {
"unsafeParameterDecoratorsEnabled": true
}
}
}
}
```

```
- Add support for parsing comments inside JSON files:
```json
Expand All @@ -897,7 +894,6 @@ The following rules are now recommended:
}
}
```

- Add support for the new `using` syntax
```js
Expand Down
Loading

0 comments on commit 18f85b1

Please sign in to comment.