Disabling eslint in styled components
See original GitHub issueI’m trying to disable eslint
so that doesn’t complain in vscode
with prettier
way of structuring code, but I can’t (testing all possible solutions with eslint-disable
and also with prettier-ignore
, no matter what I do I cannot get rid of the warning)
This is a GatsbyJS
component that uses Styled Components
"lerna": "^3.16.4",
"babel-eslint": "^10.0",
"eslint": "^6.2.1",
"eslint-config-prettier": "^6.1.0",
"eslint-config-standard": "^14.0.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-node": "^9.1.0",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-promise": "^4.1.1",
"eslint-plugin-react": "^7.12.4",
"eslint-plugin-standard": "^4.0.0",
"gulp": "^4.0.0",
"gulp-help": "^1.6.1",
"prettier": "^1.16.4"
(with this one prettier eliminates the eslint-enable
)
(with this one prettier also eliminates the eslint
rule)
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
How to disable stylelint for all non-string values - Stack Overflow
Is it possible to turn off stylelint linting in interpolations globally with the styled-components processor enabled? My eslint config ...
Read more >@layout-css/eslint-plugin-styled-components - npm
An ESLint plugin to validate styled-components do not modify component ... You can disable ESLint per instance, or globally for certain ...
Read more >Tooling - styled-components
The stylelint-config-styled-components will automatically disable rules that cause conflicts. Note. You can override rules defined in shared configs in your ...
Read more >Rules - ESLint - Pluggable JavaScript Linter
Disabling Rules. Using configuration comments. To disable rule warnings in a part of a file, use block comments in the following format:.
Read more >User Guide | eslint-plugin-vue-scoped-css
You can use /* eslint-disable */ -like CSS comments in <style> of .vue files to disable a certain rule temporarily. For example:.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I confirm that this solve the issue, thanks a lot!
You’ll need to remove the following from your configured rules, as they’re overriding the configuration set by extending off of the Prettier plugin, resulting in the reported conflict:
Prettier handles both white space and semi styling.