-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
32 lines (32 loc) · 1.15 KB
/
.eslintrc.js
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
/** @type {import('eslint').Linter.Config} */
module.exports = {
root: true,
extends: ['@eclipse-glsp'],
ignorePatterns: ['**/{node_modules,lib}', '**/.eslintrc.js'],
parserOptions: {
tsconfigRootDir: __dirname,
project: 'tsconfig.eslint.json'
},
rules: {
'@typescript-eslint/no-floating-promises': 'error',
'no-null/no-null': 'off', // Accessing the browser DOM returns "null" instead of "undefined"
'no-restricted-imports': [
'error',
{
paths: [
{
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/client' instead"
}
],
patterns: ['**/../index']
}
]
}
};