More Formatter Fixes (#672)

* Fix nodepath function highlighting/tokenization

* Reverted dangerous line removal behavior change

* Fix detection of match keyword vs .match() function

* Rearrange formatter options

* Fix option default value

* Add biome linter/formatter config file

* Fix linter errors

* Add system to supply custom config values in tests

* Remove unused variable

* Implement tests for both formatter options

* Clean up formatter option handling

* Fix extra space inserted in list of nodepaths

* Add token rules for square and curly braces
This commit is contained in:
David Kincaid
2024-06-29 13:08:24 -07:00
committed by GitHub
parent 6456a789af
commit cca25099c4
12 changed files with 164 additions and 58 deletions

15
biome.json Normal file
View File

@@ -0,0 +1,15 @@
{
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "tab",
"indentWidth": 4,
"lineWidth": 120,
"lineEnding": "lf",
"include": ["src/**/*.ts"]
},
"files": {
"include": ["src/**/*.ts"],
"ignore": ["node_modules"]
}
}