-
Notifications
You must be signed in to change notification settings - Fork 329
/
.eslintrc.yaml
54 lines (54 loc) · 1.17 KB
/
.eslintrc.yaml
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
root: true
extends:
- openlayers
- .eslintrc-es6.yaml
- plugin:import/recommended
- plugin:import/typescript
settings:
import/resolver:
# You will also need to install and configure the TypeScript resolver
# See also https://github.com/import-js/eslint-import-resolver-typescript#configuration
typescript: true
node: true
rules:
no-console: 0
comma-dangle: 0
no-extra-boolean-cast: 0
brace-style: 0
prefer-template: 0
no-multiple-empty-lines: 0
valid-jsdoc: 0
indent: [2, 2, {
VariableDeclarator: 2,
SwitchCase: 1,
MemberExpression: 2,
FunctionDeclaration: {
parameters: 2,
body: 1
},
FunctionExpression: {
parameters: 2,
body: 1
},
CallExpression: {
arguments: 2
}
}]
'@typescript-eslint/consistent-type-imports': error
'@typescript-eslint/no-unused-vars': [error, {vars: all, args: none}]
overrides:
- files: [ "examples/*.js" ]
rules:
import/no-unresolved: 0
- files: ['*.ts']
rules:
import/extensions: [
"error",
{
"ts": "never",
"js": "always"
}
]
globals:
webpack: false
Cesium: false