-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheslint.config.js
102 lines (95 loc) · 1.65 KB
/
eslint.config.js
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
// Configuration file for ESLint (https://eslint.org/)
import tsparser from "@typescript-eslint/parser";
import regexp from "eslint-plugin-regexp";
import markdown from "@eslint/markdown";
export default [
...markdown.configs.processor,
{
languageOptions: {
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
ecmaVersion: "latest",
sourceType: "module",
},
},
{
files: ["**/*.{js,jsx,cjs,mjs,ts,cts,mts,md}"],
plugins: {
regexp,
},
rules: {
"regexp/no-super-linear-backtracking": [
"error",
{
report: "certain",
},
],
"regexp/no-super-linear-move": [
"error",
{
ignorePartial: false,
ignoreSticky: false,
report: "certain",
},
],
},
},
{
files: ["**/*.{,c,m}ts", "**/*.md/*.{,c,m}ts"],
languageOptions: {
parser: tsparser,
},
},
{
ignores: [
// Cache/temp directories
".cache/",
".npm/",
".parcel-cache/",
".rpt2_cache/",
".rts2_cache_cjs/",
".rts2_cache_es/",
".rts2_cache_umd/",
".temp/",
".yarn/cache/",
".yarn/unplugged/",
// Dependency directories
"bower_components/",
"jspm_packages/",
"node_modules/",
"vendor/",
"web_modules/",
// IDE directories
".idea/",
".vscode/",
// Output directories
".docusaurus/",
".fusebox/",
".dynamodb/",
".grunt/",
".next/",
".nuxt/",
".nyc_output/",
".serverless/",
".vuepress/dist/",
"coverage/",
"dist/",
"lib-cov/",
"out/",
// Test directories & files
"**/__mocks__/",
"**/__tests__/",
"**/__specs__/",
"e2e/",
"spec/",
"specs/",
"test/",
"tests/",
"**/*.spec.*",
"**/*.test.*",
],
},
];