Closed Benjozork closed 8 months ago
Still unsure how to feel about the change from 4-space to 2-space indentation. Are we changing this on all FBW repositories? I saw you did in flybywiresim/simbridge. Maybe something to discuss with other devs?
Still unsure how to feel about the change from 4-space to 2-space indentation. Are we changing this on all FBW repositories? I saw you did in flybywiresim/simbridge. Maybe something to discuss with other devs?
Yes - all repos should have the same linting.
Also 2 spaces are imho good - the C++ code already has this for example. I would vote for 2 vs. 4.
Still unsure how to feel about the change from 4-space to 2-space indentation. Are we changing this on all FBW repositories? I saw you did in flybywiresim/simbridge. Maybe something to discuss with other devs?
Yes - all repos should have the same linting.
Also 2 spaces are imho good - the C++ code already has this for example. I would vote for 2 vs. 4.
I find more 4 spaces easier to read over multiple nested blocks. The main advantage to me would be that the deeper blocks have less of an issue to exceed the maximum line length.
Maybe that will discourage excessive nesting then 😄
4 is definitely a lot more readable, with the side benefit of discouraging excessive nesting. If only we could all use tabs thus could set our own preference in our editor of choice.
Hey @Benjozork , after those changes I cannot build the master branch locally with npm run package
anymore. Is there something I have to do, not mentioned in the readme?
Hey @Benjozork , after those changes I cannot build the master branch locally with
npm run package
anymore. Is there something I have to do, not mentioned in the readme?
Update: source-map is missing in the package.json. After npm install it built.
Summary of Changes
eslint:recommended
,plugin:prettier/recommended
andplugin:@typescript-eslint/recommended