From 7eb1b1d1d11c43119ee1f28e8ca185e3c3e3ae14 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Mon, 11 Sep 2023 23:12:27 -0400 Subject: Travel Advisory and package update --- .eslintrc.cjs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .eslintrc.cjs (limited to '.eslintrc.cjs') diff --git a/.eslintrc.cjs b/.eslintrc.cjs new file mode 100644 index 0000000..2fbf517 --- /dev/null +++ b/.eslintrc.cjs @@ -0,0 +1,23 @@ +module.exports = { + extends: [ + "plugin:astro/recommended", + ], + overrides: [ + { + // Define the configuration for `.astro` file. + files: ["*.astro"], + // Allows Astro components to be parsed. + parser: "astro-eslint-parser", + // Parse the script in `.astro` as TypeScript by adding the following configuration. + // It's the setting you need when using TypeScript. + parserOptions: { + parser: "@typescript-eslint/parser", + extraFileExtensions: [".astro"], + }, + rules: { + // override/add rules settings here, such as: + // "astro/no-set-html-directive": "error" + }, + }, + ], +} -- cgit v1.2.3