Skip to content

Commit

Permalink
feat(stylelint): add linting for styled component
Browse files Browse the repository at this point in the history
  • Loading branch information
znitc authored and Alexander Rudnik committed Jun 24, 2021
1 parent 1e7a0ae commit da5430b
Show file tree
Hide file tree
Showing 3 changed files with 622 additions and 20 deletions.
9 changes: 9 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"processors": [
"stylelint-processor-styled-components"
],
"extends": [
"stylelint-config-recommended",
"stylelint-config-styled-components"
]
}
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"test": "craco test",
"eject": "craco eject",
"lint": "eslint '*/**/*.{js,ts,tsx}' --fix",
"lint:styles":"stylelint '*/**/*.{js,ts,tsx}'",
"prepare": "husky install"
},
"browserslist": {
Expand Down Expand Up @@ -57,6 +58,10 @@
"husky": "^6.0.0",
"lint-staged": "^11.0.0",
"prettier": "^2.3.1",
"stylelint": "^13.13.1",
"stylelint-config-recommended": "^5.0.0",
"stylelint-config-styled-components": "^0.1.1",
"stylelint-processor-styled-components": "^1.10.0",
"webpack-bundle-analyzer": "^4.4.2",
"webpackbar": "^5.0.0-3"
},
Expand Down
Loading

0 comments on commit da5430b

Please sign in to comment.