File tree 14 files changed +126
-90
lines changed
14 files changed +126
-90
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : " ./node_modules/gts"
3
+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- node_modules /*
2
- samples /node_modules /*
3
- src /** /doc /*
1
+ ** /node_modules
2
+ ** /.coverage
3
+ build /
4
+ docs /
5
+ protos /
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // Copyright 2020 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ module . exports = {
16
+ ...require ( 'gts/.prettierrc.json' )
17
+ }
Original file line number Diff line number Diff line change 23
23
],
24
24
"scripts" : {
25
25
"prepare" : " npm run compile && node ./build/tools/prepublish.js" ,
26
- "lint" : " gts check && eslint '**/*.js' " ,
26
+ "lint" : " gts check" ,
27
27
"test" : " c8 mocha build/test" ,
28
- "fix" : " gts fix && eslint --fix '**/*.js' " ,
28
+ "fix" : " gts fix" ,
29
29
"system-test" : " echo no system tests 😱" ,
30
30
"samples-test" : " cd samples && npm link ../ && npm test && cd ../" ,
31
31
"docs" : " compodoc src/" ,
48
48
"@types/sinon" : " ^5.0.7" ,
49
49
"codecov" : " ^3.0.0" ,
50
50
"decompress-zip" : " ^0.3.2" ,
51
- "eslint" : " ^6.0.0" ,
52
- "eslint-config-prettier" : " ^6.0.0" ,
53
- "eslint-plugin-node" : " ^11.0.0" ,
54
- "eslint-plugin-prettier" : " ^3.0.0" ,
55
51
"got" : " ^8.0.3" ,
56
- "gts" : " ^1.0.0 " ,
52
+ "gts" : " next " ,
57
53
"linkinator" : " ^2.0.0" ,
58
- "mocha" : " ^7.0.0 " ,
59
- "c8" : " ^7.0 .0" ,
54
+ "mocha" : " ^7.1.1 " ,
55
+ "c8" : " ^7.1 .0" ,
60
56
"prettier" : " ^1.10.2" ,
61
57
"proxyquire" : " ^2.0.0" ,
62
58
"sinon" : " ^9.0.0" ,
63
- "typescript" : " 3.6.4 "
59
+ "typescript" : " ^3.8.3 "
64
60
}
65
61
}
Original file line number Diff line number Diff line change 1
- /*!
2
- * Copyright 2018 Google LCC. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
1
+ // Copyright 2020 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
16
14
17
15
'use strict' ;
18
16
Original file line number Diff line number Diff line change 1
- /**
2
- * Copyright 2018 Google LLC
3
- *
4
- * Distributed under MIT license.
5
- * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
6
- */
1
+ // Copyright 2020 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
7
14
8
15
import * as path from 'path' ;
9
16
import * as loader from './load' ;
Original file line number Diff line number Diff line change 1
- /**
2
- * Copyright 2018 Google LLC
3
- *
4
- * Distributed under MIT license.
5
- * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
6
- */
1
+ // Copyright 2020 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
7
14
8
15
import * as path from 'path' ;
9
16
import * as protobuf from 'protobufjs' ;
@@ -12,7 +19,7 @@ import * as walk from 'walkdir';
12
19
let COMMON_PROTO_FILES : string [ ] ;
13
20
14
21
export interface GoogleProtoFilesRootOptions {
15
- // tslint: disable-next-line no -any
22
+ // eslint- disable-next-line @typescript-eslint/no-explicit -any
16
23
[ index : string ] : any ;
17
24
}
18
25
Original file line number Diff line number Diff line change 1
- /**
2
- * Copyright 2018 Google LLC
3
- *
4
- * Distributed under MIT license.
5
- * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
6
- */
1
+ // Copyright 2020 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
7
14
8
15
import * as assert from 'assert' ;
9
16
import { describe , it } from 'mocha' ;
Original file line number Diff line number Diff line change 1
- /**
2
- * Copyright 2018 Google LLC
3
- *
4
- * Distributed under MIT license.
5
- * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
6
- */
1
+ // Copyright 2020 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
7
14
8
15
import * as assert from 'assert' ;
9
16
import { describe , it } from 'mocha' ;
Original file line number Diff line number Diff line change 1
- /**
2
- * Copyright 2018 Google LLC
3
- *
4
- * Distributed under MIT license.
5
- * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
6
- */
1
+ // Copyright 2020 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
7
14
8
15
import * as assert from 'assert' ;
9
- import { describe , it } from 'mocha' ;
16
+ import { before , describe , it } from 'mocha' ;
10
17
import * as pq from 'proxyquire' ;
11
18
import * as sinon from 'sinon' ;
12
19
Original file line number Diff line number Diff line change 1
- /**
2
- * Copyright 2018 Google LLC
3
- *
4
- * Distributed under MIT license.
5
- * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
6
- */
1
+ // Copyright 2020 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
7
14
import { promisify } from 'util' ;
8
15
import * as fs from 'fs' ;
9
16
import * as got from 'got' ;
10
17
import * as path from 'path' ;
11
18
12
- // tslint: disable-next-line variable-name
19
+ // eslint- disable-next-line @typescript-eslint/no-var-requires
13
20
const DecompressZip = require ( 'decompress-zip' ) ;
14
21
15
22
const extract = ( input , opts , callback ) => {
Original file line number Diff line number Diff line change 1
1
{
2
2
"extends" : " ./node_modules/gts/tsconfig-google.json" ,
3
3
"compilerOptions" : {
4
+ "lib" : [" es2018" , " dom" ],
4
5
"rootDir" : " ." ,
5
6
"outDir" : " build" ,
6
7
"noImplicitAny" : false
You can’t perform that action at this time.
0 commit comments