-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.oxlintrc.json
More file actions
41 lines (41 loc) · 1.13 KB
/
.oxlintrc.json
File metadata and controls
41 lines (41 loc) · 1.13 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
{
"plugins": ["typescript", "react", "unicorn"],
"rules": {
"typescript/consistent-type-definitions": ["error", "type"],
"import-x/order": [
"warn",
{
"newlines-between": "always",
"alphabetize": { "order": "asc", "caseInsensitive": true },
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"],
"pathGroups": [
{ "pattern": "react", "group": "builtin", "position": "before" },
{ "pattern": "@core/**", "group": "internal", "position": "after" }
],
"pathGroupsExcludedImportTypes": []
}
]
},
"overrides": [
{
"files": ["**/*.d.ts"],
"rules": {
"typescript/method-signature-style": "off",
"typescript/consistent-type-definitions": ["error", "interface"]
}
},
{
"files": ["**/*.test.*", "**/*.spec.*"],
"rules": {
"unicorn/consistent-function-scoping": "off",
"typescript/no-non-null-assertion": "off"
}
},
{
"files": ["packages/figma-plugin/**"],
"rules": {
"unicorn/prefer-dom-node-append": "off"
}
}
]
}