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 Feb 22, 2024
1 parent 84a3068 commit 6017bd2
Show file tree
Hide file tree
Showing 8 changed files with 169 additions and 75 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"]
}
]
}
}
149 changes: 91 additions & 58 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@
"devDependencies": {
"eslint": "^8.56.0",
"stylelint": "^16.2.1",
"stylelint-config-recommended-scss": "^14.0.0",
"stylelint-config-standard": "^36.0.0"
"stylelint-config-standard": "^36.0.0",
"stylelint-config-standard-scss": "^13.0.0"
},
"dependencies": {
"@11ty/eleventy": "^2.0.1",
"@sindresorhus/slugify": "^1.1.2",
"airtable": "^0.12.2",
"dotenv": "^16.4.4",
"isomorphic-dompurify": "^2.3.0",
"dotenv": "^16.4.5",
"isomorphic-dompurify": "^2.4.0",
"marked": "^12.0.0",
"sass": "^1.71.0"
"sass": "^1.71.1"
}
}
Loading

0 comments on commit 6017bd2

Please sign in to comment.