-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
42 lines (41 loc) · 941 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
39
40
41
42
import eslint from "@eslint/js";
import solid from "eslint-plugin-solid/configs/typescript";
import astro from "eslint-plugin-astro";
import tsEslint from "typescript-eslint";
import prettierConfig from "eslint-plugin-prettier/recommended";
export default tsEslint.config(
{
ignores: [
"dist",
".astro",
".obsidian",
".vscode",
"node_modules",
"public",
],
},
{
files: ["src/**/*.{ts,tsx,astro}"],
},
eslint.configs.recommended,
tsEslint.configs.recommended,
...astro.configs.recommended,
{
files: ["**/*.{ts,tsx}"],
...solid,
},
prettierConfig,
{
// Define the configuration for `<script>` tag.
// Script in `<script>` is assigned a virtual file name with the `.js` extension.
files: [
"**/*.astro/*.js",
"*.astro/*.js",
"**/*.astro/*.ts",
"*.astro/*.ts",
],
rules: {
"prettier/prettier": "off",
},
},
);