-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.oxlintrc.json
More file actions
82 lines (82 loc) · 1.66 KB
/
Copy path.oxlintrc.json
File metadata and controls
82 lines (82 loc) · 1.66 KB
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
{
"plugins": [
"eslint",
"typescript",
"unicorn",
"react",
"react-perf",
"oxc",
"import",
"jsdoc",
"node",
"promise"
],
"ignorePatterns": [
"node_modules",
"build",
"dist",
"coverage",
"next-env.d.ts",
".next",
"generated",
"vite-env.d.ts",
"vitest.config.*",
".git",
"packages/*/docs",
"**/.devstack/**",
"**/move/**/build/**",
"**/move/**/package_summaries/**",
"examples/*/*.config.js",
"examples/*/*.config.d.ts",
"examples/*/*Plugin.js",
"examples/*/*Plugin.d.ts",
"repos"
],
"settings": {
"jsdoc": {
"tagNamePreference": {
"prop": "prop",
"cssprop": "cssprop",
"element": "element",
"slot": "slot",
"experimental": "experimental"
}
}
},
"rules": {
"no-new-array": "off",
"typescript/no-non-null-asserted-optional-chain": "off",
"@typescript-eslint/no-redundant-type-constituents": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/unbound-method": "off",
"import/extensions": [
"error",
"always",
{
"ignorePackages": true,
"js": "always",
"ts": "always",
"jsx": "always",
"tsx": "always"
}
]
},
"overrides": [
{
"files": ["packages/devstack/src/**/*.ts", "packages/dev-wallet/src/**/*.ts"],
"rules": {
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "@mysten/sui/jsonRpc",
"message": "Phase -1: devstack + dev-wallet internals use gRPC exclusively. Import from '@mysten/sui/grpc' or '@mysten/sui/client' (transport-neutral types) instead. See packages/devstack/notes/sui-fork-integration.md § Phase -1."
}
]
}
]
}
}
]
}