Comments (6)
I solved it by creating the jconfig.json inside the root of my project and adding:
if your project is in Typescript then create tsconfig.json*
{
"compilerOptions": {
"plugins": [
{
"name": "typescript-styled-plugin",
"lint": {
"validProperties": [
"margin-vertical",
"margin-horizontal",
"padding-vertical",
"padding-horizontal",
"shadow-color",
"shadow-opacity",
"shadow-radius",
"elevation"
]
}
}
]
}
}
from typescript-styled-plugin.
I have same problem
from typescript-styled-plugin.
Assuming you use vscode, try pressing ctrl+shift+p
and then running the TypeScript: Restart TS Server
command.
Seems to work for me.
from typescript-styled-plugin.
Same problem. Restarting TS Server didn't help.
from typescript-styled-plugin.
The CTRL
+ SHIFT
+ p
and "Restart TS Server" solution might seem to solve this, but it doesn't really (or at least it didn't for me). All the errors disappeared the moment I did it ... but that was just because the TS server was restarting. When it finally finished restarting, the errors were back.
@Justin9606 is there some equivalent directive for CSS values? I'm getting this issue from this line of styled CSS:
display: inline-block;
So whitelisting the property name won't help.
P.S. And it should go without saying (and yet this bug has been ignored for over a year, so I feel the need to say it) that developers should not have to copy every hyphenated property name and value into their jsconfig.json
file just to be able to use the plugin :)
from typescript-styled-plugin.
Closing as this package has been deprecated in favor of the official styled-components/typescript-styled-plugin fork
After updating to that fork, follow up in the styled-components repo if this is still an issue
from typescript-styled-plugin.
Related Issues (20)
- Unknown property: accent-color HOT 1
- IntelliSense for new CSS property names and values HOT 10
- } expected (9999) when using @property & @scroll-timeline syntax HOT 1
- Autocomplete Custom Properties HOT 2
- Selecting Intellisense suggestion results in doubled content being typed HOT 1
- `emmet.showExpandedAbbreviation: never` doesn't disable Emmet abbreviation autocomplete HOT 1
- Send correct replacement range information (use OptionalReplacementSpan) HOT 2
- ) expected , { expected (9999) when using @supports not ( not backdrop-filter : blur(10px)) { } HOT 1
- Version 1.70 intellisense does not work HOT 2
- [Feature Request] allow detecting of plain template strings HOT 1
- semi-colon expected when using props in "${...}" - ts-styled-plugin(9999) HOT 1
- Update dependency from `vscode-emmet-helper` to `@vscode/emmet-helper`. HOT 1
- Error with multiline selectors with Subsitutions HOT 2
- How to avoid ts-styled-plugin(9999) when i am not even using styled components and don't have the plugin installed anywhere? HOT 1
- Doesn't recognize @layer at-rule HOT 2
- How to fail a commit to Git based on errors from ts-styled-plugin? HOT 1
- Support suppression/ignore comments HOT 2
- How to disable entirely without affecting other TS checking in VS Code HOT 4
- Unknown property: 'y'ts-styled-plugin(9999) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typescript-styled-plugin.