We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It is far too easy to forget to put lang='ts'. Can we have a feature similar to vue-block-lang https://eslint.vuejs.org/rules/block-lang.html#vue-block-lang
lang='ts'
The text was updated successfully, but these errors were encountered:
This is possible with an eslint rule: sveltejs/eslint-plugin-svelte#380
I have the following setup:
module.exports = { root: true, extends: [ 'eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:svelte/recommended', 'prettier' ], rules: { 'svelte/block-lang': [ 'error', { enforceScriptPresent: false, enforceStylePresent: false, script: ['ts'], // enforce TS style: ['scss'] // enforce scss } ] }, }
Sorry, something went wrong.
No branches or pull requests
It is far too easy to forget to put
lang='ts'
.Can we have a feature similar to vue-block-lang
https://eslint.vuejs.org/rules/block-lang.html#vue-block-lang
The text was updated successfully, but these errors were encountered: