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 order to update its content execute "pnpm run update"
4
-
export={
4
+
importtype{Linter}from'eslint';
5
+
constconfig: Linter.Config={
5
6
plugins: ['svelte'],
6
7
overrides: [
7
8
{
8
9
files: ['*.svelte'],
9
10
parser: require.resolve('svelte-eslint-parser'),
10
11
rules: {
11
12
// ESLint core rules known to cause problems with `.svelte`.
12
-
'no-inner-declarations': 'off'asconst,// The AST generated by svelte-eslint-parser will false positives in it rule because the root node of the script is not the `Program`.
13
-
// "no-irregular-whitespace": "off" as const,
13
+
'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`.
14
+
// "no-irregular-whitespace": "off",
14
15
// Self assign is one of way to update reactive value in Svelte.
Copy file name to clipboardExpand all lines: packages/eslint-plugin-svelte/src/configs/flat/base.ts
+8-7
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
// IMPORTANT!
2
2
// This file has been automatically generated,
3
3
// in order to update its content execute "pnpm run update"
4
-
importtype{ESLint}from'eslint';
5
-
exportdefault[
4
+
importtype{ESLint,Linter}from'eslint';
5
+
constconfig: Linter.FlatConfig[]=[
6
6
{
7
7
plugins: {
8
8
getsvelte(): ESLint.Plugin{
@@ -19,15 +19,16 @@ export default [
19
19
},
20
20
rules: {
21
21
// ESLint core rules known to cause problems with `.svelte`.
22
-
'no-inner-declarations': 'off'asconst,// The AST generated by svelte-eslint-parser will false positives in it rule because the root node of the script is not the `Program`.
23
-
// "no-irregular-whitespace": "off" as const,
22
+
'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`.
23
+
// "no-irregular-whitespace": "off",
24
24
// Self assign is one of way to update reactive value in Svelte.
0 commit comments