Add .editorconfig (#469)

This commit is contained in:
Uriel
2023-01-16 11:27:08 -03:00
committed by GitHub
parent c5d666d335
commit 6c7550ee56
3 changed files with 29 additions and 4 deletions

23
.editorconfig Normal file
View 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

View File

@@ -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": []

View File

@@ -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"