File tree Expand file tree Collapse file tree 3 files changed +112
-41
lines changed
Expand file tree Collapse file tree 3 files changed +112
-41
lines changed Original file line number Diff line number Diff line change 1- {
2- root : true,
3- extends : [
4- ' openlayers' ,
5- ' .eslintrc-es6.yaml'
6- ],
7- rules : {
8- no-console : 0,
9- comma-dangle : 0,
10- no-extra-boolean-cast : 0,
11- brace-style : 0,
12- prefer-template : 0,
13- no-multiple-empty-lines : 0,
14- valid-jsdoc : 0,
15- indent : [2, 2, {
16- VariableDeclarator : 2,
17- SwitchCase : 1,
18- MemberExpression : 2,
19- FunctionDeclaration : {
20- parameters : 2,
21- body : 1
22- },
23- FunctionExpression : {
24- parameters : 2,
25- body : 1
26- },
27- CallExpression : {
28- arguments : 2
29- }
1+ root : true
2+ extends :
3+ - openlayers
4+ - .eslintrc-es6.yaml
5+ - plugin:import/recommended
6+ - plugin:import/typescript
7+ settings :
8+ import/resolver :
9+ # You will also need to install and configure the TypeScript resolver
10+ # See also https://github.com/import-js/eslint-import-resolver-typescript#configuration
11+ typescript : true
12+ node : true
13+ rules :
14+ no-console : 0
15+ comma-dangle : 0
16+ no-extra-boolean-cast : 0
17+ brace-style : 0
18+ prefer-template : 0
19+ no-multiple-empty-lines : 0
20+ valid-jsdoc : 0
21+ indent : [2, 2, {
22+ VariableDeclarator : 2,
23+ SwitchCase : 1,
24+ MemberExpression : 2,
25+ FunctionDeclaration : {
26+ parameters : 2,
27+ body : 1
28+ },
29+ FunctionExpression : {
30+ parameters : 2,
31+ body : 1
32+ },
33+ CallExpression : {
34+ arguments : 2
35+ }
3036 }]
31- },
32- overrides : [{
33- " files " : [ "examples/*.js" ],
34- " rules " : {
35- " import/no-unresolved " : 0
36- }
37- }],
38- globals : {
39- webpack : false,
40- Cesium : false
41- }
42- }
37+ overrides :
38+ - files : [ "examples/*.js" ]
39+ rules :
40+ import/no-unresolved : 0
41+ - files : ['*.ts']
42+ rules :
43+ import/extensions : [
44+ " error" ,
45+ {
46+ " ts " : " never" ,
47+ " js " : " always"
48+ }
49+ ]
50+ globals :
51+ webpack : false
52+ Cesium : false
Original file line number Diff line number Diff line change 4242 "cross-env" : " 7.0.3" ,
4343 "eslint" : " 8.48.0" ,
4444 "eslint-config-openlayers" : " 12.0.0" ,
45+ "eslint-import-resolver-typescript" : " ^3.6.0" ,
4546 "eslint-import-resolver-webpack" : " 0.13.7" ,
4647 "eslint-plugin-import" : " ^2.28.0" ,
4748 "html-loader" : " 4.2.0" ,
You can’t perform that action at this time.
0 commit comments