-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
53 lines (46 loc) · 1.2 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
/* This file is managed by @html-validate/eslint-config */
/* Changes may be overwritten */
import path from "node:path";
import { fileURLToPath } from "node:url";
import defaultConfig from "@html-validate/eslint-config";
import typescriptConfig from "@html-validate/eslint-config-typescript";
import typescriptTypeinfoConfig from "@html-validate/eslint-config-typescript-typeinfo";
import jestConfig from "@html-validate/eslint-config-jest";
const rootDir = path.dirname(fileURLToPath(import.meta.url));
export default [
{
name: "Ignored files",
ignores: [
"**/coverage/**",
"**/dist/**",
"**/node_modules/**",
"**/out/**",
"**/public/assets/**",
"**/temp/**",
],
},
...defaultConfig,
{
name: "@html-validate/eslint-config-typescript",
files: ["**/*.ts"],
...typescriptConfig,
},
{
name: "@html-validate/eslint-config-typeinfo",
files: ["src/**/*.ts"],
ignores: ["src/**/*.spec.ts"],
languageOptions: {
parserOptions: {
tsconfigRootDir: rootDir,
project: ["./tsconfig.json"],
},
},
...typescriptTypeinfoConfig,
},
{
name: "@html-validate/eslint-config-jest",
files: ["**/*.spec.[jt]s"],
ignores: ["cypress/**", "tests/e2e/**"],
...jestConfig,
},
];