Skip to content

Commit acce1b5

Browse files
author
shyjnnn
committedAug 5, 2023
chore: style lint 설정
1 parent 75ae2bb commit acce1b5

File tree

3 files changed

+1358
-28
lines changed

3 files changed

+1358
-28
lines changed
 

‎.stylelintrc.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
extends: [
3+
'stylelint-config-standard-scss', // scss 표준 규칙
4+
'stylelint-config-prettier-scss', // prettier 와의 충돌 방지
5+
'stylelint-config-property-sort-order-smacss', // smacss 스타일 가이드에 따른 스타일 순서
6+
],
7+
rules: {
8+
'selector-class-pattern': '^[a-z][a-zA-Z0-9]+$', // 선택자를 camelCase로 설정 (헨리가 PR #14에 반영한 상황)
9+
},
10+
}

‎package-lock.json

+1,343-28
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"@types/node": "20.4.7",
1414
"@types/react": "18.2.18",
1515
"@types/react-dom": "18.2.7",
16+
"classnames": "^2.3.2",
1617
"eslint-config-next": "13.4.12",
1718
"next": "13.4.12",
1819
"react": "18.2.0",
@@ -33,6 +34,10 @@
3334
"husky": "^8.0.0",
3435
"lint-staged": "^13.2.3",
3536
"prettier": "^3.0.1",
37+
"stylelint": "^15.10.2",
38+
"stylelint-config-prettier-scss": "^1.0.0",
39+
"stylelint-config-property-sort-order-smacss": "^9.1.0",
40+
"stylelint-config-standard-scss": "^10.0.0",
3641
"typescript": "^5.1.6"
3742
},
3843
"lint-staged": {

0 commit comments

Comments
 (0)
Please sign in to comment.