-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy patheslint.config.mjs
More file actions
41 lines (40 loc) · 1.27 KB
/
eslint.config.mjs
File metadata and controls
41 lines (40 loc) · 1.27 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
import glspConfig from '@eclipse-glsp/eslint-config';
export default [
...glspConfig,
{
ignores: ['**/*.js', '**/*.mjs', '**/*.cjs', '**/dist/**', '**/lib/**']
},
{
files: ['**/*.{ts,tsx}'],
languageOptions: {
parserOptions: {
project: './tsconfig.eslint.json',
tsconfigRootDir: import.meta.dirname
}
},
rules: {
'no-restricted-imports': [
'warn',
{
name: 'sprotty',
message: "The sprotty default exports are customized and reexported by GLSP. Please use '@eclipse-glsp/client' instead"
},
{
name: 'sprotty-protocol',
message:
"The sprotty-protocol default exports are customized and reexported by GLSP. Please use '@eclipse-glsp/protocol' or '@eclipse-glsp/client' instead"
}
]
}
},
{
files: [
'packages/vscode-integration/**/*.{ts,tsx}',
'example/workflow/extension/**/*.{ts,tsx}',
'example/workflow/web-extension/**/*.{ts,tsx}'
],
rules: {
'import-x/no-unresolved': 'off'
}
}
];