You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my project, we use the JSON config for ESLint and using it seems impossible to set svelte3/ignore-styles to true.
"settings": {
"svelte3/ignore-styles": true
}
Gives me:
TypeError: processor_options.ignore_styles is not a function
From looking at the code, it seems that an assumption is made that svelte3/ignore-styles is always going to be a function, which clearly is impossible to specify using JSON config (eslintrc.json).
The text was updated successfully, but these errors were encountered:
This was an intentional change in version 2. I understand that ESLint themselves are encouraging people to write CommonJS-formatted .eslintrc.js files, and requiring these to be functions is one less thing to worry about. But I can see how it would be annoying to be forced to convert to a CommonJS format just for this.
In my project, we use the JSON config for ESLint and using it seems impossible to set
svelte3/ignore-styles
to true.Gives me:
TypeError: processor_options.ignore_styles is not a function
From looking at the code, it seems that an assumption is made that
svelte3/ignore-styles
is always going to be a function, which clearly is impossible to specify using JSON config (eslintrc.json).The text was updated successfully, but these errors were encountered: