generated from nickytonline/astro-partykit-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
eslint.config.mjs
38 lines (37 loc) · 891 Bytes
/
eslint.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import js from "@eslint/js";
import astro from "eslint-plugin-astro";
import jsxA11y from "eslint-plugin-jsx-a11y";
import typescript from "@typescript-eslint/eslint-plugin";
import prettier from "eslint-config-prettier";
import astroESLintParser from "astro-eslint-parser";
import typescriptParser from "@typescript-eslint/parser";
/* eslint-env node */
export default [
js.configs.recommended,
{
plugins: {
astro,
jsxA11y,
typescript,
prettier,
},
ignores: ["package.json", "package-lock.json"],
languageOptions: {
parser: typescriptParser,
},
},
{
files: ["*.astro"],
languageOptions: {
parser: astroESLintParser,
parserOptions: {
parser: typescriptParser,
extraFileExtensions: [".astro"],
},
},
rules: {
"no-console": "error",
"no-debugger": "error",
},
},
];