forked from roblox-aurora/zirconium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.ts
60 lines (59 loc) · 1.06 KB
/
eslint.config.ts
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
import { GLOB_TS, style } from "@isentinel/eslint-config";
export default style(
{
perfectionist: {
customClassGroups: [
"onInit",
"onStart",
"onPlayerJoin",
"onPlayerLeave",
"onRender",
"onPhysics",
"onTick",
],
},
rules: {
"perfectionist/sort-objects": [
"warn",
{
customGroups: {
id: "id",
name: "name",
reactProps: ["children", "ref"],
},
groups: ["id", "name", "unknown", "reactProps"],
order: "asc",
partitionByComment: "Part:**",
type: "natural",
},
],
},
typescript: {
parserOptions: {
project: "tsconfig.eslint.json",
},
tsconfigPath: "tsconfig.eslint.json",
},
},
{
files: [GLOB_TS],
rules: {
"no-param-reassign": "error",
"ts/no-magic-numbers": [
"error",
{
ignore: [0, 1],
ignoreEnums: true,
ignoreReadonlyClassProperties: true,
ignoreTypeIndexes: true,
},
],
},
},
{
files: ["src/client/ui/hooks/**/*", "src/client/ui/components/**/*"],
rules: {
"max-lines-per-function": "off",
},
},
);