-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
112 lines (112 loc) · 3.79 KB
/
.eslintrc
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
103
104
105
106
107
108
109
110
111
112
{
"root": true,
"settings": {
"import/resolver": {
"typescript": {
"project": ["packages/*/tsconfig.json", "demo/tsconfig.json"]
}
},
"next": {
"rootDir": "demo/"
},
"react": {
"version": "18.2.0"
}
},
"plugins": ["codegen", "eslint-comments", "promise"],
"extends": [
"next/core-web-vitals",
"plugin:eslint-comments/recommended",
"plugin:promise/recommended"
],
"rules": {
"arrow-body-style": "warn",
"object-shorthand": "warn",
"prefer-const": "warn",
"quotes": ["warn", "single", {"avoidEscape": true}],
"codegen/codegen": "warn",
"import/no-unresolved": ["error"],
"eslint-comments/disable-enable-pair": "off",
"eslint-comments/no-unlimited-disable": "off",
"eslint-comments/no-unused-disable": "warn",
"promise/always-return": "off",
"react/jsx-curly-brace-presence": "warn",
"react-hooks/exhaustive-deps": [
"warn",
{
"additionalHooks": "(useUpdateEffect)"
}
]
},
"overrides": [
{
"files": ["**/*.{ts,tsx}"],
"parserOptions": {
"project": ["packages/*/tsconfig.json", "demo/tsconfig.json"]
},
"plugins": ["@typescript-eslint"],
"extends": ["plugin:@typescript-eslint/strict"],
"rules": {
"@typescript-eslint/array-type": ["warn", {"default": "array-simple"}],
"@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/ban-tslint-comment": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/consistent-type-assertions": "warn",
"@typescript-eslint/consistent-type-imports": [
"warn",
{"disallowTypeAnnotations": false}
],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-extra-semi": "off",
"@typescript-eslint/no-floating-promises": "warn",
"@typescript-eslint/no-for-in-array": "warn",
"no-implied-eval": "off",
"@typescript-eslint/no-implied-eval": "warn",
"@typescript-eslint/no-invalid-void-type": "off",
"@typescript-eslint/no-non-null-assertion": "warn",
"@typescript-eslint/no-unnecessary-condition": "off",
"@typescript-eslint/no-unnecessary-type-assertion": "warn",
"@typescript-eslint/no-unsafe-argument": "warn",
"@typescript-eslint/no-unsafe-assignment": "warn",
"@typescript-eslint/no-unsafe-call": "warn",
"@typescript-eslint/no-unsafe-member-access": "warn",
"@typescript-eslint/no-unsafe-return": "warn",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-var-requires": "off",
"require-await": "off",
"@typescript-eslint/require-await": "warn",
"@typescript-eslint/restrict-plus-operands": "warn",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/unbound-method": "warn"
}
},
{
"files": ["packages/react-visual-novel/**/*.{ts,tsx}"],
"settings": {
"tailwindcss": {
"callees": ["twMerge"],
"config": "packages/react-visual-novel/tailwind.config.js",
"cssFiles": ["packages/react-visual-novel/index.css"],
"whitelist": ["rvn\\-.*"]
}
},
"plugins": ["tailwindcss"],
"extends": ["plugin:tailwindcss/recommended"]
},
{
"files": ["demo/**/*.{ts,tsx}"],
"settings": {
"tailwindcss": {
"callees": ["twMerge"],
"config": "demo/tailwind.config.js",
"cssFiles": ["demo/index.css"]
}
},
"plugins": ["tailwindcss"],
"extends": ["plugin:tailwindcss/recommended"]
}
]
}