Skip to content

Conversation

nickcharlton
Copy link
Member

@nickcharlton nickcharlton commented Jan 24, 2024

To keep up to date with dependencies, it's really hard to know we've done it correctly without some tests and samples to check against.

This provides a sample (from guides), with which we can test against in both the positive and negative cases, we include a GitHub Actions configuration too, so tests are automated.

In our sample, we have text-size which doesn't exist in our current version of stylelint. We'll remove this rule in future, as for now, we override it to ensure the tests start from green.

Finally, we add lint:css as a script to npm to allow for "self-linting" and testing the samples.

https://github.com/thoughtbot/guides/tree/main/sass

@nickcharlton nickcharlton force-pushed the nc-test-against-sample branch 2 times, most recently from 365ae0e to 97fe79c Compare January 30, 2024 15:51
@nickcharlton nickcharlton marked this pull request as ready for review January 30, 2024 15:52
@LkeMitchll
Copy link
Contributor

@nickcharlton I've added some more examples to the invalid sample in ed24e25

@nickcharlton nickcharlton force-pushed the nc-test-against-sample branch from 1d43946 to c5bb451 Compare February 1, 2024 17:15
To keep up to date with dependencies, it's really hard to know we've
done it correctly without some tests and samples to check against.

This provides a sample (from guides), with which we can test against in
both the positive and negative cases, we include a GitHub Actions
configuration too, so tests are automated.

In our sample, we have `text-size` which doesn't exist in our current
version of `stylelint`. We'll remove this rule in future, as for now, we
override it to ensure the tests start from green.

Finally, we add `lint:css` as a script to npm to allow for "self-linting"
and testing the samples.

https://github.com/thoughtbot/guides/tree/main/sass

Co-authored-by: Luke Mitchell <LkeMitchll@users.noreply.github.com>
@nickcharlton nickcharlton force-pushed the nc-test-against-sample branch from 0ac8630 to 53cc520 Compare February 1, 2024 17:58
@nickcharlton nickcharlton merged commit abd1f45 into main Feb 1, 2024
@nickcharlton nickcharlton deleted the nc-test-against-sample branch February 1, 2024 17:58
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.

2 participants