A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://sveltejs.github.io/eslint-plugin-svelte/migration/ below:

Migration Guide

# Migration Guide # From eslint-plugin-svelte3

You can not use both eslint-plugin-svelte3 and eslint-plugin-svelte at same time. So before start to use this plugin, you need to remove eslint-plugin-svelte3’s stuff from both package.json and .eslintrc.*.

Note: If you want to know difference between eslint-plugin-svelte and eslint-plugin-svelte3, Please read the reason for deprecating eslint-plugin-svelte3 in eslint-plugin-svelte3 README.

Note: If you’re using TypeScript, maybe you get Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser. error at some configuration files.
In this case, please refer this GitHub comment to solve it.

# From eslint-plugin-svelte v1 To v2

eslint-plugin-svelte v1 was an alias for eslint-plugin-svelte3, but eslint-plugin-svelte v2 is now an independent eslint-plugin.

If you want the previous behavior, replace it with eslint-plugin-svelte3.

# From @ota-meshi/eslint-plugin-svelte

@ota-meshi/eslint-plugin-svelte has been renamed to eslint-plugin-svelte.
Therefore, you need to replace the package name, and the presets, rules, and settings specified in the configuration.

# From eslint-plugin-svelte v2 To v3

This section explains the necessary changes when upgrading from eslint-plugin-svelte v2 to v3.
v3 includes support for ESLint Flat Config only, changes to the recommended rule set, and other breaking changes.

# Breaking Changes # 1. Minimum Node.js Version Requirement

v3 requires one of the following Node.js versions:

# 2. ESLint Flat Config Only # 3. ESLint Version Requirement # 4. Changes to Recommended Rule Set # 5. Deprecated Rules # New Features & Improvements # 1. Support for Svelte 5 # 2. New Rules # Migration Steps # 1. Upgrade Package
npm install eslint-plugin-svelte@3
# 2. Check Node.js Version
node -v
# 3. Check ESLint Version
npx eslint -v
# 4. Use Flat Config (eslint.config.js) # 5. Apply the Updated Recommended Rules # 6. Replace Deprecated Rules

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4