Skip to content

Commit

Permalink
chore: use standard scss config over recommended
Browse files Browse the repository at this point in the history
- install/update dependencies
- fix linting issues from rule changes
- set up prettier config
  • Loading branch information
dustin-jw committed Jan 9, 2024
1 parent d2e1f8f commit b17524a
Show file tree
Hide file tree
Showing 8 changed files with 769 additions and 306 deletions.
28 changes: 28 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Configs
package.json
package-lock.json
tsconfig.json

# npm
node_modules
npm-debug.log

# Build
/out
/build
/dist
/_site

# IDEs
.vscode
.idea

# Swap
*~
*.swp
*.swo

# Next.js
.next
next.config.json
next-env.d.ts
14 changes: 14 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"printWidth": 110,
"endOfLine": "lf",
"trailingComma": "es5",
"tabWidth": 2,
"useTabs": true,
"semi": true,
"singleQuote": true,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"bracketSpacing": true,
"bracketSameLine": false,
"arrowParens": "always"
}
19 changes: 19 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"extends": ["stylelint-config-standard", "stylelint-config-standard-scss"],
"rules": {
"selector-class-pattern": [
"^(?:[a-z][a-z0-9]*(?:-[a-z0-9]+)*(?:__[a-z0-9]+(?:-[a-z0-9]+)*)?(?:--[a-z0-9]+(?:-[a-z0-9]+)*)?)?(?:\\[.+\\])?$",
{
"message": "Expected property name to be in BEM format",
"resolveNestedSelectors": true
}
],
"media-feature-range-notation": "prefix",
"max-nesting-depth": [
4,
{
"ignore": ["blockless-at-rules"]
}
]
}
}
Loading

0 comments on commit b17524a

Please sign in to comment.