Skip to content

Commit

Permalink
chore: added styled-component
Browse files Browse the repository at this point in the history
  • Loading branch information
AssisrMatheus committed Oct 28, 2021
1 parent 6645548 commit 375e847
Show file tree
Hide file tree
Showing 7 changed files with 469 additions and 12 deletions.
11 changes: 11 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"presets": ["next/babel"],
"plugins": [
[
"styled-components",
{
"ssr": true
}
]
]
}
2 changes: 1 addition & 1 deletion .lintstagedrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ module.exports = {
.join(' --file ');
return `next lint --fix --file ${relativeFilenames}`;
},
'**/*.css': 'stylelint --fix'
'**/*.{js,jsx,ts,tsx,css}': 'stylelint --fix'
};
3 changes: 2 additions & 1 deletion .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"extends": "stylelint-config-standard",
"processors": ["stylelint-processor-styled-components"],
"extends": ["stylelint-config-standard", "stylelint-config-styled-components"],
"plugins": ["stylelint-order", "stylelint-csstree-validator"],
"rules": {
"csstree/validator": true,
Expand Down
Loading

0 comments on commit 375e847

Please sign in to comment.