Skip to content

Commit 0fbd74d

Browse files
sofislfhinkel
andauthored
build: update to latest version of gts and typescript (#1725)
Co-authored-by: F. Hinkelmann <[email protected]>
1 parent 5d9675d commit 0fbd74d

10 files changed

+38
-47
lines changed

.eslintrc

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"parserOptions": {
3+
"ecmaVersion": 2018,
4+
"sourceType": "module"
5+
},
6+
7+
"env": {
8+
"es6": true
9+
}
10+
}

.eslintrc.yml

-33
This file was deleted.

.estlintrc.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "./node_modules/gts"
3+
}
4+

.prettierignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
**/node_modules
2-
**/coverage
3-
test/fixtures
2+
**/.coverage
43
build/
54
docs/
65
protos/

.prettierrc

-8
This file was deleted.

.prettierrc.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
}

appengine/typescript/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14+
1415
import express = require('express');
1516

1617
const PORT = Number(process.env.PORT) || 8080;

appengine/typescript/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"wait-port": "^0.2.7",
2828
"@types/express": "^4.16.0",
2929
"chai": "^4.2.0",
30-
"tslint": "^6.0.0"
30+
"tslint": "^6.0.0",
31+
"typescript": "^3.8.3"
3132
}
3233
}

appengine/websockets/test/index.test.js

-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
'use strict';
1616

17-
/* eslint node/no-extraneous-require: "off" */
18-
1917
const assert = require('assert');
2018
const puppeteer = require('puppeteer');
2119
/* global document */

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
"eslint-plugin-node": "^11.0.0",
2424
"eslint-plugin-prettier": "^3.1.0",
2525
"eslint-plugin-promise": "^4.1.1",
26+
"gts": "^2.0.0",
2627
"prettier": "^2.0.0",
27-
"requestretry": "^4.0.0"
28+
"requestretry": "^4.0.0",
29+
"typescript": "^3.8.3"
2830
}
2931
}

0 commit comments

Comments
 (0)