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
-`eslintPluginSvelte.configs['flat/base']` ... Configuration to enable correct Svelte parsing.
93
+
-`eslintPluginSvelte.configs['flat/recommended']` ... Above, plus rules to prevent errors or unintended behavior.
94
+
-`eslintPluginSvelte.configs['flat/prettier']` ... Turns off rules that may conflict with [Prettier](https://prettier.io/) (You still need to configure prettier to work with svelte yourself, for example by using [prettier-plugin-svelte](https://github.com/sveltejs/prettier-plugin-svelte).).
95
+
-`eslintPluginSvelte.configs['flat/all']` ... All rules. This configuration is not recommended for production use because it changes with every minor and major version of `eslint-plugin-svelte`. Use it at your own risk.
96
+
97
+
See [the rule list](https://sveltejs.github.io/eslint-plugin-svelte/rules/) to get the `rules` that this plugin provides.
98
+
99
+
#### Legacy Config (ESLint<v9)
100
+
69
101
Use `.eslintrc.*` file to configure rules. See also: <https://eslint.org/docs/user-guide/configuring>.
-`eslintPluginSvelte.configs['flat/base']` ... Configuration to enable correct Svelte parsing.
46
+
-`eslintPluginSvelte.configs['flat/recommended']` ... Above, plus rules to prevent errors or unintended behavior.
47
+
-`eslintPluginSvelte.configs['flat/prettier']` ... Turns off rules that may conflict with [Prettier](https://prettier.io/) (You still need to configure prettier to work with svelte yourself, for example by using [prettier-plugin-svelte](https://github.com/sveltejs/prettier-plugin-svelte).).
48
+
-`eslintPluginSvelte.configs['flat/all']` ... All rules. This configuration is not recommended for production use because it changes with every minor and major version of `eslint-plugin-svelte`. Use it at your own risk.
49
+
50
+
See [the rule list](./rules.md) to get the `rules` that this plugin provides.
51
+
52
+
#### Legacy Config (ESLint<v9)
53
+
22
54
Use `.eslintrc.*` file to configure rules. See also: <https://eslint.org/docs/user-guide/configuring>.
// ESLint core rules known to cause problems with `.svelte`.
20
+
'no-inner-declarations': 'off',// The AST generated by svelte-eslint-parser will false positives in it rule because the root node of the script is not the `Program`.
21
+
// "no-irregular-whitespace": "off",
22
+
// Self assign is one of way to update reactive value in Svelte.
0 commit comments