-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add styled components #2
Conversation
args: 'after-used', | ||
argsIgnorePattern: '^_$', | ||
ignoreRestSiblings: true, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really related but 🔥 A U T O F O R M A T T I N G 🔥 updated these so thought why not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my inline comment was not good : (. That inline commenting thing is kinda hard as it does not do formatting
@@ -14,7 +14,7 @@ module.exports = { | |||
'react', | |||
'react-hooks', | |||
'react-native', | |||
], | |||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 A U T O F O R M A T T I N G 🔥
parserOptions: { | ||
project: './tsconfig.json', | ||
tsconfigRootDir: __dirname, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might've not been caused by the inclusion of styled-components
but it was an error thrown by eslint so lemme fix
"name": "typescript-styled-plugin", | ||
"validate": false, | ||
"lint": { | ||
"validProperties": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should allow the following CSS properties to be used with styled-components
, but it might not work properly with VSCode anyways:
microsoft/typescript-styled-plugin#58
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do you do plain styles with styled? For example to pass a contentContainer prop to a scollView?
You mean |
Closing because this is from year 2019, nothing is happening anymore in this regard |
Adds support for Styled Components for more readable component structure