-
-
Notifications
You must be signed in to change notification settings - Fork 515
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(linter): allow multiple rule sources (#2336)
- Loading branch information
Showing
217 changed files
with
541 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...cli/tests/snapshots/main_commands_migrate_eslint/migrate_eslintrcjson_extended_rules.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
source: crates/biome_cli/tests/snap_test.rs | ||
expression: content | ||
--- | ||
## `biome.json` | ||
|
||
```json | ||
{ "linter": { "enabled": true } } | ||
``` | ||
|
||
## `.eslintrc.json` | ||
|
||
```json | ||
{ | ||
"rules": { | ||
"dot-notation": 0, | ||
"@typescript-eslint/dot-notation": 2, | ||
"@typescript-eslint/no-dupe-class-members": 2, | ||
"no-dupe-class-members": 0 | ||
} | ||
} | ||
``` | ||
|
||
# Emitted Messages | ||
|
||
```block | ||
biome.json migrate ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
i Configuration file can be updated. | ||
1 │ - {·"linter":·{·"enabled":·true·}·} | ||
1 │ + { | ||
2 │ + → "linter":·{ | ||
3 │ + → → "enabled":·true, | ||
4 │ + → → "rules":·{ | ||
5 │ + → → → "recommended":·false, | ||
6 │ + → → → "complexity":·{·"useLiteralKeys":·"error"·}, | ||
7 │ + → → → "suspicious":·{·"noDuplicateClassMembers":·"off"·} | ||
8 │ + → → } | ||
9 │ + → } | ||
10 │ + } | ||
11 │ + | ||
``` | ||
|
||
```block | ||
Run the command with the option --write to apply the changes. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.