Is it possible to commit with one format while develop locally with another format ? #15973
Answered
by
fisker
AlwaysNoobCoder
asked this question in
Q&A
-
I am using a 4K monitor, while others teammates using 1080P monitors So, I want is this possible ? |
Beta Was this translation helpful? Give feedback.
Answered by
fisker
Jan 22, 2024
Replies: 1 comment
-
interesting... Maybe a dynamic import editor from "editor-info"
export default {
printWidth:
// Only use 200 when running in my vscode
// Or other way to identify user, eg: a `.gitignore`d file
(process.env.USER || process.env.USERNAME) === "a-unique-name" &&
editor.isEditor ?
200 :
80
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AlwaysNoobCoder
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
interesting...
Maybe a dynamic
prettier.config.js
will do