cse110-sp23-group21 / map-my-future

CSE 110 (Software Engineering) Team Project
1 stars 1 forks source link

Update Molybdomancy mini-app to pass Linters #87

Closed gilkeidar closed 1 year ago

gilkeidar commented 1 year ago

Task Description: Update the Molybdomancy mini-app to pass HTML, CSS, and JS linting.

Recommended Approach:

Tips:

JavaScript linting: The JavaScript linter we use is called Semi-Standard. You can make passing the JS linter easy by downloading the VSCode extension for it here. Make sure to set the "Engine" to "semistandard" in the extension settings.

The linter giving you trouble for something you don't need to fix (e.g., defining a variable in switch case statement)? You can disable particular lines / sections of your code. See how here: https://flaviocopes.com/how-to-disable-eslint-rule/

HTML & CSS: Our HTML and CSS linting is done using Superlinter, which is essentially a collection of linters for many languages. In particular, it uses HTMLHint for HTML linting and Stylelint for CSS linting.

You can download the HTMLHint extension if you're using VSCode here.

I don't think you can disable linting on a line in HTML sadly - but if you find a way, please update this issue!

You can download the Stylelint extension if you're using VSCode here.

To disable linting on a line in CSS, see https://stylelint.io/user-guide/ignore-code