mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-04-06 02:01:58 +02:00
Add .editorconfig (#469)
This commit is contained in:
23
.editorconfig
Normal file
23
.editorconfig
Normal file
@@ -0,0 +1,23 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
charset = utf-8
|
||||
|
||||
# Fluent files only support spaces for indentation
|
||||
[*.ftl]
|
||||
indent_size = 4
|
||||
indent_style = space
|
||||
|
||||
# Current config in eslint uses 2 spaces for indentation
|
||||
[*.{.tsx,ts,jsx,js}]
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
max_line_length = 88
|
||||
|
||||
# This is how everything should actually be
|
||||
[*.{kt,kts,java,rs}]
|
||||
indent_size = 4
|
||||
indent_style = tab
|
||||
max_line_length = 88
|
||||
3
.vscode/extensions.json
vendored
3
.vscode/extensions.json
vendored
@@ -8,7 +8,8 @@
|
||||
"dbaeumer.vscode-eslint",
|
||||
"esbenp.prettier-vscode",
|
||||
"rust-lang.rust-analyzer",
|
||||
"bradlc.vscode-tailwindcss"
|
||||
"bradlc.vscode-tailwindcss",
|
||||
"EditorConfig.EditorConfig"
|
||||
],
|
||||
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
|
||||
"unwantedRecommendations": []
|
||||
|
||||
@@ -52,10 +52,11 @@ allprojects {
|
||||
dependencies {
|
||||
implementation(project(":solarxr-protocol"))
|
||||
|
||||
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
|
||||
// This dependency is used internally,
|
||||
// and not exposed to consumers on their own compile classpath.
|
||||
implementation("com.google.flatbuffers:flatbuffers-java:22.10.26")
|
||||
implementation("commons-cli:commons-cli:1.3.1")
|
||||
implementation("com.fasterxml.jackson.core:jackson-databind:2.12.6.1")
|
||||
implementation("com.fasterxml.jackson.core:jackson-databind:2.12.7.1")
|
||||
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.13.3")
|
||||
|
||||
implementation("com.github.jonpeterson:jackson-module-model-versioning:1.2.2")
|
||||
@@ -137,7 +138,7 @@ configure<com.diffplug.gradle.spotless.SpotlessExtension> {
|
||||
mapOf(
|
||||
"indent_size" to 4,
|
||||
"indent_style" to "tab",
|
||||
"max_line_length" to 88,
|
||||
// "max_line_length" to 88,
|
||||
"ktlint_experimental" to "enabled"
|
||||
)
|
||||
val ktlintVersion = "0.47.1"
|
||||
|
||||
Reference in New Issue
Block a user