-
Notifications
You must be signed in to change notification settings - Fork 25
/
.eslintrc.json
75 lines (75 loc) · 1.81 KB
/
.eslintrc.json
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
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:react/recommended",
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
"prettier",
"plugin:@tanstack/eslint-plugin-query/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["react", "prettier", "eslint-plugin-no-inline-styles", "@tanstack/query"],
"rules": {
"consistent-return": "off",
"no-await-in-loop": "off",
"import/prefer-default-export": 1,
"no-restricted-imports": [
"warn",
{
"patterns": ["@secretkeylabs/xverse-core/**/*"]
}
],
"no-promise-executor-return": "warn",
"max-len": "off",
"no-inline-styles/no-inline-styles": 2,
"no-nested-ternary": "off",
"no-param-reassign": "off",
"react-hooks/exhaustive-deps": "warn",
"react/jsx-key": "warn",
"react/jsx-props-no-spreading": "off",
"react/react-in-jsx-scope": "off",
"react/require-default-props": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": true,
"argsIgnorePattern": "^_"
}
],
"no-plusplus": "off",
"@tanstack/query/exhaustive-deps": 1,
"import/order": 0
},
"overrides": [
{
"files": ["tests/**/*.{js,jsx,ts,tsx}"],
"plugins": ["playwright"],
"extends": ["plugin:playwright/playwright-test"],
"rules": {
"playwright/expect-expect": "off"
}
}
],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"],
"moduleDirectory": ["node_modules", "src/"]
}
}
}
}