-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
.eslintrc.json
98 lines (98 loc) · 2.85 KB
/
.eslintrc.json
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
{
"extends": "./node_modules/gts/",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["compat", "import"],
"rules": {
"compat/compat": "error",
"import/no-restricted-paths": [
"error",
{
"zones": [
// This means that in the /infrastructure folder,
// you can't import any code,
// with the exception of other files within the /infrastructure folder.
{
"target": "./infrastructure",
"from": ".",
"except": ["./infrastructure", "./node_modules"]
},
// Similar to above but for src/www/model, but you can use files from both the
// src/www/model and src/www/infrastructure paths.
{
"target": "./client/src/www/model",
"from": ".",
"except": ["./client/src/www/model", "./infrastructure", "./node_modules"]
},
// Prevents the internals of the outline_server_repository from being used publicly in the app.
{
"target": "./client/src/www/app/*.ts",
"from": "./client/src/www/app/outline_server_repository/server.ts"
},
{
"target": "./client/src/www/app/*.ts",
"from": "./client/src/www/app/outline_server_repository/access_key_serialization.ts"
},
{
"target": "./client/src/www/views",
"from": "./client/src/www/model"
},
{
"target": "./client/src/www/ui_components",
"from": "./client/src/www/model"
},
{
"target": "./client/src/www/views",
"from": "./client/src/www/app"
},
{
"target": "./client/src/www/ui_components",
"from": "./client/src/www/app"
}
]
}
],
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"internal"
],
"pathGroups": [
{
"pattern": "@material/**",
"group": "external",
"position": "before"
}
],
"pathGroupsExcludedImportTypes": ["@material/**"],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"n/no-unsupported-features/node-builtins": ["error", {
"version": ">=18.0.0"
}],
"n/no-unsupported-features/es-builtins": ["error", {
"version": ">=18.0.0"
}],
"n/no-unsupported-features/es-syntax": ["error", {
"version": ">=18.0.0"
}],
"@typescript-eslint/no-unused-vars": ["error", {
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_"
}],
"no-unused-vars": ["error", {
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_"
}]
}
}