-
Notifications
You must be signed in to change notification settings - Fork 10
Code
Splines edited this page Dec 19, 2023
·
19 revisions
- MaMpf is written in Ruby on Rails. We have some custom linting rules you can find in
rubocop.yml
. - We have some more linters available, e.g. with recommended extensions in VSCode. TODO: refer to justfile with many commands
- All our available linters will check for code style guideline violations in every PR.
We use ESLint to lint .js
and .js.erb
files. In our CI/CD, we check for style guideline violations, so make sure to always submit already linted code.
- Install the ESLint extension on the marketplace (filter for the recommended extensions we set up).
- Install the necessary node modules:
yarn install
(this includes theeslint
npm package and some other related packages that are necessary). - Open any
.js
or.js.erb
file, change something (e.g. remove a semicolon) and save the file. ESLint will automatically lint it. You can also use the `Format Document´ command in the command palette.
Troubleshooting:
- Try to run the
ESLint: Restart ESLint Server
command. - See the output of the plugin in the
Output
pane (choose "ESLint" in the dropdown).
Some overviews over the (fairly big) MaMpf code base.
- Annotation tool & Thyme player (frontend): Thyme overview
- Suggestions for Just:
- Rails Sandbox