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

SCSS revamp #2364

Draft
wants to merge 21 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/public
.DS_Store
gatsby

package.json
pnpm-lock.yaml
node_modules
1 change: 1 addition & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sass/helpers/_normalize.scss
17 changes: 17 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"extends": "stylelint-config-standard-scss",
"rules": {
"no-descending-specificity": null,
"selector-class-pattern": "[a-zA-Z]+(_[a-zA-Z]+)*",
"selector-id-pattern": "[a-zA-Z]+(_[a-zA-Z]+)*",
"scss/partial-no-import": true,
"font-family-no-missing-generic-family-keyword": [
true,
{
"ignoreFontFamilies": [
"webflow-icons"
]
}
]
}
}
13 changes: 13 additions & 0 deletions DEVELOPER_NOTES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Developer Notes

These are notes for advanced tooling use of the repository and are not mandatory for the process at this time.

## Stylelint

The repo already contains a config but not the package.json for the dependencies. This is for now an exercise to the reader.

Required dependencies besides stylelint itself are currently:

- stylelint-config-standard-scss

You can then run it with `npx stylelint "sass/**/*.scss"`
Loading