Answer the question
In order to leave comments, you need to log in
How to work in a team with settings and code formatting?
Приветствую, интересует как организована командная работа с синхронизацией настроек? Используется VS Code, Prettier, TS Lint и т.д
Нужно передавать настройки этих плагинов между разработчиками / поддерживать в актуальном состоянии.
На данный момент используется Sync Settings, плагин, который тянет с собой кучу индивидуальных настроек (настройки шрифта, темы и т.д), что очень неудобно.
Answer the question
In order to leave comments, you need to log in
Ерунда какая-то. Добавляете в репозиторий проекта конфиги .eslintrc или tslint.json, добавляете lint-staged и прекоммит проверку. Этого должно хватить.
If these are configs of some utilities for code inspection, then you wrote correctly above, just commit the configs for them along with the project sources. If these are IDE settings, then they are usually exported to some file - also commit it or share it in another way (in JetBrains products, a .jar file with all settings is usually exported / imported there)
Well, actually, you need to start by creating an editor settings file .editorconfig
#root = true
[*]
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 100
indent_size = 4
[*.md]
trim_trailing_whitespace = false
[*.min.*]
indent_style = ignore
trim_trailing_whitespace = false
insert_final_newline = ignore
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question