Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lint stylesheets #2244

Merged
merged 3 commits into from
Feb 15, 2024
Merged

Lint stylesheets #2244

merged 3 commits into from
Feb 15, 2024

Conversation

ivan-kocienski-gfsc
Copy link
Contributor

Closes #1455

Have converted stylesheets over to SCSS as this can be picked up by Prettier (stylesheet linting) and therefore runs as part of the precommit hook.

Have not implemented a check to see if any SASS files are in the repo so we have to agree to not use SASS any more.

In preparation for linting with prettier
- default make task runs prettier scss lint
- removed uneeded config
@ivan-kocienski-gfsc ivan-kocienski-gfsc requested a review from a team February 14, 2024 15:28
Copy link
Contributor

@r-ferrier r-ferrier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is so cool! The only comment I have is that now we've properly formatted everything, I'm noticing that having indentation with 4 spaces is maybe making it a bit harder for me to see the shapes of the css blocks - I wonder if want to change to 2 spaces over 4 for indentation? @aaaaargZombies what do you think?

@ivan-kocienski-gfsc
Copy link
Contributor Author

Hmm, for me it is 8 spaces. Looking in the .prettierrc file it says it is using tabs, so if you change your editor config it should look good for you.

But I am happy to (try) configuring it to 2 spaces

@ivan-kocienski-gfsc
Copy link
Contributor Author

For future me: we may want to use

{
	"useTabs": false,
	"tabWidth": 2,
}

Copy link
Contributor

@r-ferrier r-ferrier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ivan-kocienski-gfsc ivan-kocienski-gfsc merged commit b50139b into main Feb 15, 2024
2 checks passed
@ivan-kocienski-gfsc ivan-kocienski-gfsc deleted the ik-1455-lint-stylesheets branch February 15, 2024 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lint stylesheets
2 participants