29 lines
1.4 KiB
Markdown
29 lines
1.4 KiB
Markdown
+++
|
|
title = 'Dart Format Stupidity'
|
|
date = 2026-02-02T21:19:31+01:00
|
|
lastmod = 2026-02-02T21:19:31+01:00
|
|
draft = false
|
|
author = 'Janis Hutz'
|
|
tags = [ 'Development' ]
|
|
categories = [ 'Rants' ]
|
|
series = []
|
|
series_weight = 1
|
|
featuredImage = "cover.jpg"
|
|
+++
|
|
|
|
Dart format is *really f\*ing stupid*
|
|
|
|
Like who thought that having a formatter *so opinionated* that you can't even change the ***indentation style*** is truly baffling.
|
|
|
|
Prettier, a famously opinionated formatter, allows you to change the indentation style, as that is one of the common choices people make.
|
|
I do understand that giving very many options (like Eslint does) can be very overwhelming and may not satisfy the "Dart Style Guide".
|
|
|
|
But, if you degrade the developer experience so much by forcing a 2 space indent
|
|
(which, according to some polls, more developers dislike it than there are developers who either don't care or like it, combined).
|
|
|
|
So, this brings me to the problem:
|
|
I really enjoy having my own coding style. I can however still appreciate an opinionated formatter, but only if you can at least change the indentation style.
|
|
Primarily so, because my editor is set to 4 space indents, it is annoying having to set up an `autocmd` to switch to 2 space indents when using dart.
|
|
|
|
Thus, I am not going to use flutter for ConductorCalc as I had intended, but will probably use `NativeScript-Vue`, as it seems to tick just about every box.
|