DavidDuwaer / Coloquent

Javascript/Typescript library mapping objects and their interrelations to JSON API, with a clean, fluent ActiveRecord-like (e.g. similar to Laravel's Eloquent) syntax for creating, retrieving, updating and deleting model objects.
MIT License
193 stars 25 forks source link

Coding style #95

Open masterT opened 2 years ago

masterT commented 2 years ago

Is see there is a lot of different coding style in the codebase. I also see there is an IntelliJ code style file .idea/codeStyleSettings.xml, but it can't be used without the editor.

I think it would be a good idea to have a linter that could run on the CI to verify the code style. This would help keep the code style uniform.

maicol07 commented 2 years ago

Another suggestion about this: just create a .editorconfig. IntelliJ IDEs allow to export the code style settings as a .editorconfig file.

I think it would be a good idea to have a linter that could run on the CI to verify the code style. This would help keep the code style uniform.

I recommend ESLint :grin: