-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add ESLint plugin migration to svelte-migrate #10242
Labels
feature / enhancement
New feature or request
pkg:svelte-migrate
Issues related to the svelte-migrate package
Comments
For manual migration,
npm rm eslint-plugin-svelte3
npm i eslint-plugin-svelte -D
// JavaScript Project
module.exports = {
root: true,
extends: ['eslint:recommended', 'plugin:svelte/recommended', 'prettier'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
extraFileExtensions: ['.svelte']
},
env: {
browser: true,
es2017: true,
node: true
}
}; // TypeScript Project
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:svelte/recommended',
'prettier'
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
extraFileExtensions: ['.svelte']
},
env: {
browser: true,
es2017: true,
node: true
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
]
}; |
dummdidumm
added
feature / enhancement
New feature or request
pkg:svelte-migrate
Issues related to the svelte-migrate package
labels
Jun 28, 2023
I'm honestly not sure if this can be automigrated, given that the setups could be vastly different. But we certainly could add a documentation entry to https://svelte.dev/docs/v4-migration-guide and link to it from the migration script - it's not strictly a breaking change within Svelte itself, but related to it. |
dummdidumm
added a commit
that referenced
this issue
Jul 5, 2023
5 tasks
dummdidumm
added a commit
that referenced
this issue
Jul 6, 2023
dave-burke
added a commit
to skill-collectors/guesstimator
that referenced
this issue
Aug 25, 2023
- Replace eslint-plugin-svelte3 with eslint-plugin-svelte and update .eslintrc.cjs as documented at sveltejs/kit#10242 (comment) - - Fix a newly detected issue (pendingRevealOrReset is not used)
pascalpp
added a commit
to pascalpp/balthropalabama.com
that referenced
this issue
May 4, 2024
slifty
added a commit
to TheLoathingFoundation/website
that referenced
this issue
Jul 2, 2024
Apparently we're on the new svelte, woohoo! This involves some new eslint settings / plugins[1]. [1] sveltejs/kit#10242 (comment)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
feature / enhancement
New feature or request
pkg:svelte-migrate
Issues related to the svelte-migrate package
Describe the bug
Projects created with
create-svelte@3
packages includeeslint-plugin-svelte3@4
, which is not compatible with Svelte 4 as of now. Ifsvelte-migrate svelte-4
is run in these projects, it later causes an npm installation error.Suggestions:
npm i
after the migration is completed.eslint-plugin-svelte@4
, warn users in the log..eslintrc.cjs
(which is unaltered), replace the plugin and override the existing ESLint config file.Reproduction
Logs
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: