@codedrifters/configulator 0.0.193 → 0.0.194
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +13 -1
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +13 -1
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -5815,12 +5815,24 @@ var AstroProject = class extends TypeScriptProject {
|
|
|
5815
5815
|
});
|
|
5816
5816
|
}
|
|
5817
5817
|
this.addDeps(`astro@${astroVersion}`);
|
|
5818
|
-
this.addDevDeps(
|
|
5818
|
+
this.addDevDeps(
|
|
5819
|
+
"@astrojs/check",
|
|
5820
|
+
"astro-eslint-parser",
|
|
5821
|
+
"eslint-plugin-astro",
|
|
5822
|
+
"prettier-plugin-astro"
|
|
5823
|
+
);
|
|
5819
5824
|
const prettierConfig = this.tryFindObjectFile(".prettierrc.json");
|
|
5820
5825
|
prettierConfig?.addOverride("plugins", ["prettier-plugin-astro"]);
|
|
5821
5826
|
prettierConfig?.addOverride("overrides", [
|
|
5822
5827
|
{ files: "*.astro", options: { parser: "astro" } }
|
|
5823
5828
|
]);
|
|
5829
|
+
this.eslint?.addPlugins("astro");
|
|
5830
|
+
this.eslint?.addExtends("plugin:astro/recommended");
|
|
5831
|
+
this.eslint?.addOverride({
|
|
5832
|
+
files: ["*.astro"],
|
|
5833
|
+
parser: "astro-eslint-parser"
|
|
5834
|
+
});
|
|
5835
|
+
this.eslint?.addLintPattern("src/**/*.astro");
|
|
5824
5836
|
this.gitignore.addPatterns(".astro", ".vercel", ".netlify");
|
|
5825
5837
|
const turbo = TurboRepo.of(this);
|
|
5826
5838
|
if (turbo?.compileTask) {
|