-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
81 lines (78 loc) · 1.67 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
{
"root": true,
"env": {
"node": true,
"es2022": true
},
"globals": {
"JSX": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"sourceType": "module",
"ecmaVersion": "latest",
"ecmaFeatures": {
"impliedStrict": true
}
},
"plugins": ["@typescript-eslint"],
"extends": ["tabbify-typescript"],
"rules": {
/* Temporary rules to be ported into Tabbify */
// Must allow "[ ]", empty array with single space.
"array-bracket-spacing": ["off"],
"max-lines-per-function": [
"warn",
{"max": 120}
],
"object-curly-newline": [
"error",
{
"multiline": true,
"minProperties": 0,
"consistent": true
}
],
"import/no-unassigned-import": [
"warn",
{
"allow": [
"**/*!(.module).css",
"**/*!(.module).scss",
"**/*!(.module).sass"
]
}
],
// Right now, this is reporting false positives.
// Has to do with version 2.26~2.27... oh well!
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"parent",
"sibling",
"index"
]
}
],
// These don't work with JSX.
"prefer-regex-literals": "off",
// Stupid thing doesn't work with properties.
"@typescript-eslint/naming-convention": "off",
// Stupid option was automatically on. Some of these
// are unavoidable with certain libraries y'know.
"id-length": ["error", { "properties": "never" }],
// Darned thing was eating away at my JSX.
"@typescript-eslint/no-misused-promises": [
"error",
{"checksVoidReturn": {"attributes": false}}
]
},
"overrides": [{
"files": ["*.ts", "*.mts", "*.cts", "*.tsx"],
"rules": {"no-undef": "off"}
}]
}