Skip to content

Commit ae0db24

Browse files
committed
test another way
1 parent 474b2a9 commit ae0db24

File tree

5 files changed

+1834
-45
lines changed

5 files changed

+1834
-45
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
import eslintJs from "@eslint/js";
2+
import tseslint from "@typescript-eslint/eslint-plugin";
3+
import tsParser from "@typescript-eslint/parser";
4+
import prettierConfig from "eslint-config-prettier";
5+
6+
export default [
7+
// Base ESLint recommended rules
8+
eslintJs.configs.recommended,
9+
10+
// Prettier configuration to avoid conflicts
11+
prettierConfig,
12+
13+
// TypeScript specific configuration
14+
{
15+
files: ["**/*.ts", "**/*.tsx"],
16+
plugins: {
17+
"@typescript-eslint": tseslint
18+
},
19+
languageOptions: {
20+
parser: tsParser,
21+
parserOptions: {
22+
ecmaVersion: 2021,
23+
sourceType: "module",
24+
project: "./tsconfig.json"
25+
}
26+
},
27+
rules: {
28+
// TypeScript rules
29+
...tseslint.configs.recommended.rules,
30+
"@typescript-eslint/no-unused-vars": "error",
31+
"@typescript-eslint/explicit-function-return-type": "off"
32+
}
33+
},
34+
35+
// Global configuration
36+
{
37+
ignores: ["node_modules/**"],
38+
languageOptions: {
39+
ecmaVersion: 2021,
40+
sourceType: "module",
41+
globals: {
42+
// Node.js globals
43+
process: "readonly",
44+
console: "readonly",
45+
// Jest globals
46+
jest: "readonly",
47+
expect: "readonly",
48+
test: "readonly",
49+
describe: "readonly",
50+
beforeEach: "readonly",
51+
afterEach: "readonly"
52+
}
53+
},
54+
linterOptions: {
55+
reportUnusedDisableDirectives: true
56+
}
57+
}
58+
];

0 commit comments

Comments
 (0)