forked from ParadigmEducation/snowflake-notes
chore(lint): 允许在 src/env.d.ts 使用 triple-slash 引用 .astro/types;避免类型退化与 IDE 误报
This commit is contained in:
@@ -62,6 +62,14 @@ export default [
|
||||
}
|
||||
},
|
||||
|
||||
// Allow triple-slash reference in env.d.ts for Astro types
|
||||
{
|
||||
files: ['src/env.d.ts'],
|
||||
rules: {
|
||||
'@typescript-eslint/triple-slash-reference': 'off'
|
||||
}
|
||||
},
|
||||
|
||||
// Ignores
|
||||
{ ignores: ['dist', 'node_modules', 'eslint.config.js', '.astro', 'astro.config.*', 'ref/**'] }
|
||||
];
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
},
|
||||
"include": [
|
||||
"src",
|
||||
"env.d.ts",
|
||||
"astro.config.mjs",
|
||||
".astro/types.d.ts"
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user