Skip to content
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

How svelte3/ignore-styles ? #55

Closed
dm-de opened this issue Feb 22, 2020 · 2 comments
Closed

How svelte3/ignore-styles ? #55

dm-de opened this issue Feb 22, 2020 · 2 comments
Labels
question Further information is requested

Comments

@dm-de
Copy link

dm-de commented Feb 22, 2020

Please help.
I have no idea how to add "svelte3/ignore-styles" to settings in .eslintrc.js file
I need a function?

this do not work:
settings: {"svelte3/ignore-styles": true}

i need to disable all styles - i use svelte-preprocess with stylus

@Conduitry Conduitry added the question Further information is requested label Feb 22, 2020
@Conduitry
Copy link
Member

Yes as described here this needs to be a function that returns true or false. See also #43.

@singhtal
Copy link

singhtal commented Apr 13, 2021

Change .eslintrc to .eslintrc.js and wrap the json inside module.exports, then you can use the rule as below -

module.exports = { "rules" : { }, "settings": { "svelte3/ignore-styles": () => true } }

u-sho added a commit to u-sho/quantum-game-arena that referenced this issue May 23, 2021
* add Dart Sass

* add the default layout component

* temporary fix bug of eslint-plugin-svelte3
    see sveltejs/eslint-plugin-svelte3#10
    and sveltejs/eslint-plugin-svelte3#55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants