forked from eclipse-glsp/glsp-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
32 lines (31 loc) · 1004 Bytes
/
.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', '**/scripts/*.ts'],
parserOptions: {
tsconfigRootDir: __dirname,
project: 'tsconfig.eslint.json'
},
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/client' instead"
}
],
'@typescript-eslint/no-unused-vars': [
'error',
{
args: 'none',
varsIgnorePattern: 'svg|html'
}
]
}
};