Adds Biome - Removes ESLint & Prettier (!383)
Boogidy, boogidy, boogidy. Let's go racing! 🏎️
Removes the over-complicated and super-slow setup we had with ESLint & Prettier in favour of Biome. The largest change with the formatting is moving from Allman braces to 1TBS braces. Other than that, it's *pretty much* the same. Ah, and that Biome runs formatting and linting on the entire project about x10 faster than the old system ran formatting on one file. Seriously, the guy who came up with that last solution should be fired. :runs:
I've kept all of the formatting and linting commands the same as before, with the main mamma-jamma being: `npm run format`, which applies formatting and linting changes to the entire project.
Formatting-on-save works (quickly!) by (1) ensuring that you're working within the VSC workspace (as you should be), and (2) have the recommended Biome VSC extension installed. The link to the Biome extension is in the README.
This limits our options on code formatting going forward; Biome, like prettier, is very opinionated with very few formatting options available. But I see this as a good thing. I'd rather spend my time arguing about which gun in Tarkov is the best, rather than coding brace styles...
...It's the TOZ, and it always will be. Don't DM me.
Co-authored-by: chomp <chomp@noreply.dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/383
Co-authored-by: Refringe <me@refringe.com>
Co-committed-by: Refringe <me@refringe.com>
2024-07-22 23:15:57 +02:00
|
|
|
{
|
|
|
|
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
|
|
|
|
"organizeImports": {
|
|
|
|
"enabled": true
|
|
|
|
},
|
|
|
|
"files": {
|
|
|
|
"ignore": [
|
|
|
|
".editorconfig",
|
|
|
|
".git/*",
|
|
|
|
".pkg-cache/*",
|
|
|
|
".vscode/*",
|
|
|
|
"build/*",
|
|
|
|
"node_modules/*",
|
|
|
|
"obj/*",
|
|
|
|
"out/*",
|
|
|
|
"src/services/ModCompilerService.ts",
|
|
|
|
"tests/__cache__/*",
|
|
|
|
"tests/__coverage__/*",
|
|
|
|
"types/*",
|
2024-07-22 23:42:09 +02:00
|
|
|
"user/mods/*",
|
2024-07-23 18:30:20 +02:00
|
|
|
"user/profiles/*",
|
2024-07-22 23:42:09 +02:00
|
|
|
"assets/database/*"
|
Adds Biome - Removes ESLint & Prettier (!383)
Boogidy, boogidy, boogidy. Let's go racing! 🏎️
Removes the over-complicated and super-slow setup we had with ESLint & Prettier in favour of Biome. The largest change with the formatting is moving from Allman braces to 1TBS braces. Other than that, it's *pretty much* the same. Ah, and that Biome runs formatting and linting on the entire project about x10 faster than the old system ran formatting on one file. Seriously, the guy who came up with that last solution should be fired. :runs:
I've kept all of the formatting and linting commands the same as before, with the main mamma-jamma being: `npm run format`, which applies formatting and linting changes to the entire project.
Formatting-on-save works (quickly!) by (1) ensuring that you're working within the VSC workspace (as you should be), and (2) have the recommended Biome VSC extension installed. The link to the Biome extension is in the README.
This limits our options on code formatting going forward; Biome, like prettier, is very opinionated with very few formatting options available. But I see this as a good thing. I'd rather spend my time arguing about which gun in Tarkov is the best, rather than coding brace styles...
...It's the TOZ, and it always will be. Don't DM me.
Co-authored-by: chomp <chomp@noreply.dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/383
Co-authored-by: Refringe <me@refringe.com>
Co-committed-by: Refringe <me@refringe.com>
2024-07-22 23:15:57 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"linter": {
|
|
|
|
"enabled": true,
|
|
|
|
"rules": {
|
|
|
|
"recommended": true,
|
|
|
|
"style": {
|
|
|
|
"useImportType": "off"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"formatter": {
|
|
|
|
"enabled": true,
|
|
|
|
"formatWithErrors": false,
|
2024-07-23 15:32:56 +02:00
|
|
|
"ignore": [
|
2024-07-23 17:12:53 +02:00
|
|
|
"**/.git",
|
|
|
|
"**/.pkg-cache",
|
|
|
|
"**/.vscode",
|
|
|
|
"**/build",
|
|
|
|
"**/node_modules",
|
|
|
|
"**/types",
|
|
|
|
"**/tests/__cache__",
|
|
|
|
"**/tests/__coverage__",
|
|
|
|
"**/.editorconfig"
|
|
|
|
],
|
Adds Biome - Removes ESLint & Prettier (!383)
Boogidy, boogidy, boogidy. Let's go racing! 🏎️
Removes the over-complicated and super-slow setup we had with ESLint & Prettier in favour of Biome. The largest change with the formatting is moving from Allman braces to 1TBS braces. Other than that, it's *pretty much* the same. Ah, and that Biome runs formatting and linting on the entire project about x10 faster than the old system ran formatting on one file. Seriously, the guy who came up with that last solution should be fired. :runs:
I've kept all of the formatting and linting commands the same as before, with the main mamma-jamma being: `npm run format`, which applies formatting and linting changes to the entire project.
Formatting-on-save works (quickly!) by (1) ensuring that you're working within the VSC workspace (as you should be), and (2) have the recommended Biome VSC extension installed. The link to the Biome extension is in the README.
This limits our options on code formatting going forward; Biome, like prettier, is very opinionated with very few formatting options available. But I see this as a good thing. I'd rather spend my time arguing about which gun in Tarkov is the best, rather than coding brace styles...
...It's the TOZ, and it always will be. Don't DM me.
Co-authored-by: chomp <chomp@noreply.dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/383
Co-authored-by: Refringe <me@refringe.com>
Co-committed-by: Refringe <me@refringe.com>
2024-07-22 23:15:57 +02:00
|
|
|
"attributePosition": "auto",
|
|
|
|
"indentStyle": "space",
|
|
|
|
"indentWidth": 4,
|
|
|
|
"lineWidth": 120,
|
|
|
|
"lineEnding": "lf"
|
|
|
|
},
|
|
|
|
"javascript": {
|
|
|
|
"formatter": {
|
|
|
|
"arrowParentheses": "always",
|
|
|
|
"bracketSameLine": false,
|
|
|
|
"bracketSpacing": true,
|
|
|
|
"jsxQuoteStyle": "double",
|
|
|
|
"quoteProperties": "asNeeded",
|
|
|
|
"semicolons": "always",
|
|
|
|
"trailingCommas": "all"
|
|
|
|
},
|
|
|
|
"parser": {
|
|
|
|
"unsafeParameterDecoratorsEnabled": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"json": {
|
|
|
|
"formatter": {
|
|
|
|
"trailingCommas": "none"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|