@@ -24,17 +24,26 @@ export const pluginImportTypeScriptRulesExtra: Linter.RulesRecord = {
2424 "import/namespace" : "off" ,
2525}
2626
27+ export const pluginImportAstroRulesExtra : Linter . RulesRecord = {
28+ // Buggy on Astro:
29+ "import/default" : "off" ,
30+ "import/no-absolute-path" : "off" ,
31+ "import/no-unresolved" : "off" ,
32+ "import/no-extraneous-dependencies" : "off" ,
33+ }
34+
2735export const pluginImportSettings = {
2836 "import/core-modules" : [ "atom" , "electron" ] ,
2937 // support TypeScript and Coffee importing
30- "import/extensions" : [ ".ts" , ".tsx" , ".cts" , ".mts" , ".d.ts" , ".js" , ".cjs" , ".mjs" , ".jsx" , ".coffee" ] ,
38+ "import/extensions" : [ ".ts" , ".tsx" , ".cts" , ".mts" , ".d.ts" , ".js" , ".cjs" , ".mjs" , ".jsx" , ".coffee" , ".astro" ] ,
3139 "import/external-module-folders" : [ "node_modules" , "node_modules/@types" ] ,
3240 "import/parsers" : {
3341 "@typescript-eslint/parser" : [ ".ts" , ".tsx" , ".d.ts" ] ,
42+ "astro-eslint-parser" : [ ".astro" ] ,
3443 } ,
3544 "import/resolver" : {
3645 node : {
37- extensions : [ ".ts" , ".tsx" , ".cts" , ".mts" , ".d.ts" , ".js" , ".cjs" , ".mjs" , ".jsx" , ".coffee" ] ,
46+ extensions : [ ".ts" , ".tsx" , ".cts" , ".mts" , ".d.ts" , ".js" , ".cjs" , ".mjs" , ".jsx" , ".coffee" , ".astro" ] ,
3847 } ,
3948 } ,
4049}
0 commit comments