exercism / lua

Exercism exercises in Lua.
https://exercism.org/tracks/lua
MIT License
40 stars 57 forks source link

Configure online editor #271

Open ErikSchierboom opened 3 years ago

ErikSchierboom commented 3 years ago

This issue is part of the migration to v3. You can read full details about the various changes here.

In Exercism v3, students can now choose to work on exercises directly from their browser, instead of having to download exercises to their local machine. The track-specific settings for the in-browser editor are defined in the top-level "online_editor" field in the track's config.json file. This field is defined as an object with two fields:

You can find a full description of these fields in the spec.

Goal

The "online_editor" field should be updated to correspond to the track's best practices regarding indentation.

Example

"online_editor": {
  "indent_style": "space",
  "indent_size": 4
}

Tracking

https://github.com/exercism/v3-launch/issues/2

imolein commented 3 years ago

This was added in #270.

Personally I prefer the indent size of 4, but the size of 2 is widely spread in the Lua community. Should we change it to 2 @ryanplusplus?

ryanplusplus commented 3 years ago

@imolein I personally prefer 2, but I'm not dead set upon it.