stefnotch / quantum-sheet

QuantumSheet - A user friendly mathematics worksheet and solver
https://stefnotch.github.io/quantum-sheet/
GNU General Public License v3.0
55 stars 5 forks source link

"Prettier" formatting #21

Closed phcreery closed 3 years ago

phcreery commented 3 years ago
{
  "trailingComma": "none",
  "tabWidth": 2,
  "semi": false,
  "singleQuote": true,
  "printWidth": 150,
  "brace_style": "collapse,preserve-inline"
}

Feel free to offer suggestions! I'm no picky, just as long as it is consistent within the codebase allowing for smoother PRs and such.

stefnotch commented 3 years ago

Looks nice! I got curious and looked up all the options

I think we can get rid of those options without any problems. The tab width is already 2 by default, the brace_style is undocumented and trailing commas are somewhat convenient when moving stuff around in an array.

{
-  "trailingComma": "none",
-  "tabWidth": 2,
  "semi": false,
  "singleQuote": true,
  "printWidth": 150,
-  "brace_style": "collapse,preserve-inline"
}

The increased print width is definitely a huge plus 👍

phcreery commented 3 years ago

Not sure where I got that brace_style. Good catch

stefnotch commented 3 years ago

Awesome, thank you very much!