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

Remove indirection for stylelint rules #366

Merged
merged 1 commit into from
Feb 23, 2023
Merged

Conversation

BPScott
Copy link
Member

@BPScott BPScott commented Feb 23, 2023

Description

A bit like #338 but for stylelint

We have two stylelint configs - index.js and prettier.js. index.js imported a handful of other files that defined if rules were enabled or disabled.

That indirection is silly. Let's just put the big list of rules directly into index.js.

This PR removes config/*.js, and places their content directly into index.js

Instead of spreading configs over multiple files, lets define enabled
rules inline its easier to see without moving through multiple files
@BPScott BPScott merged commit 33f12e4 into main Feb 23, 2023
@BPScott BPScott deleted the stylelint-rules-indirection branch February 23, 2023 22:48
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.

None yet

1 participant