Skip to content

Commit 44f689d

Browse files
authored
Remove semistandard from appengine configs (GoogleCloudPlatform#902)
Remove semistandard from appengine configs. Use eslint and prettier.
1 parent 0109b34 commit 44f689d

27 files changed

Lines changed: 44 additions & 74 deletions

File tree

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
appengine/loopback/*
33
functions/**
44
iot/*
5-
appengine/*
5+
appengine/parse-server/cloud/main.js

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,10 @@ on Google Cloud Platform.
131131

132132
Read more about [Google Cloud Platform Authentication][gcp_auth].
133133

134-
__Note for running unit tests:__
135-
136-
Install [semistandard][] (lint tool)
137134

138135
[node]: https://nodejs.org/
139136
[auth_command]: https://cloud.google.com/sdk/gcloud/reference/beta/auth/application-default/login
140137
[gcp_auth]: https://cloud.google.com/docs/authentication#projects_and_resources
141-
[semistandard]: https://www.npmjs.com/package/semistandard
142138

143139
### How to run a sample
144140

appengine/analytics/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
},
1515
"scripts": {
1616
"start": "node app.js",
17-
"lint": "semistandard '**/*.js'",
18-
"pretest": "npm run lint",
1917
"system-test": "repo-tools test app",
2018
"test": "npm run system-test"
2119
},
@@ -24,8 +22,7 @@
2422
"got": "8.3.2"
2523
},
2624
"devDependencies": {
27-
"@google-cloud/nodejs-repo-tools": "^3.0.0",
28-
"semistandard": "^12.0.1"
25+
"@google-cloud/nodejs-repo-tools": "^3.0.0"
2926
},
3027
"cloud-repo-tools": {
3128
"test": {

appengine/building-an-app/build/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
"scripts": {
88
"start": "node server.js",
99
"deploy": "gcloud app deploy",
10-
"lint": "samples lint",
11-
"pretest": "npm run lint",
1210
"test": "samples test app"
1311
},
1412
"repository": {
@@ -25,8 +23,7 @@
2523
},
2624
"devDependencies": {
2725
"@google-cloud/nodejs-repo-tools": "1.4.17",
28-
"ava": "0.25.0",
29-
"semistandard": "^12.0.1"
26+
"ava": "0.25.0"
3027
},
3128
"cloud-repo-tools": {
3229
"requiresKeyFile": false,

appengine/building-an-app/update/package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
"scripts": {
88
"start": "node server.js",
99
"deploy": "gcloud app deploy",
10-
"lint": "samples lint",
11-
"pretest": "npm run lint",
1210
"test": "ava --verbose test/*.test.js"
1311
},
1412
"repository": {
@@ -22,12 +20,10 @@
2220
"license": "Apache-2.0",
2321
"dependencies": {
2422
"body-parser": "^1.18.2",
25-
"express": "^4.16.3",
26-
"semistandard": "^12.0.1"
23+
"express": "^4.16.3"
2724
},
2825
"devDependencies": {
2926
"@google-cloud/nodejs-repo-tools": "1.4.17",
30-
"ava": "0.25.0",
31-
"semistandard": "^12.0.1"
27+
"ava": "0.25.0"
3228
}
3329
}

appengine/cloudsql/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
"node": ">=8"
1414
},
1515
"scripts": {
16-
"lint": "semistandard '**/*.js'",
17-
"pretest": "npm run lint",
1816
"unit-test": "ava --verbose test/*.test.js",
1917
"start-proxy": "! pgrep cloud_sql_proxy > /dev/null && cloud_sql_proxy -instances=$INSTANCE_CONNECTION_NAME=tcp:$SQL_PORT &",
2018
"system-test": "repo-tools test app -- server.js",
@@ -32,7 +30,9 @@
3230
"devDependencies": {
3331
"@google-cloud/nodejs-repo-tools": "^3.0.0",
3432
"ava": "0.25.0",
35-
"semistandard": "^12.0.1"
33+
"proxyquire": "^2.1.0",
34+
"sinon": "^7.1.1",
35+
"supertest": "^3.3.0"
3636
},
3737
"cloud-repo-tools": {
3838
"requiresKeyFile": true,

appengine/cloudsql_postgresql/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
"node": ">=8"
1414
},
1515
"scripts": {
16-
"lint": "semistandard '**/*.js'",
17-
"pretest": "npm run lint",
1816
"unit-test": "ava --verbose test/*.test.js",
1917
"start-proxy": "! pgrep cloud_sql_proxy > /dev/null && cloud_sql_proxy -instances=$INSTANCE_CONNECTION_NAME=tcp:$SQL_PORT &",
2018
"system-test": "repo-tools test app -- server.js",
@@ -32,7 +30,9 @@
3230
"devDependencies": {
3331
"@google-cloud/nodejs-repo-tools": "^3.0.0",
3432
"ava": "0.25.0",
35-
"semistandard": "^12.0.1"
33+
"proxyquire": "^2.1.0",
34+
"sinon": "^7.1.1",
35+
"supertest": "^3.3.0"
3636
},
3737
"cloud-repo-tools": {
3838
"requiresKeyFile": true,

appengine/datastore/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
},
1515
"scripts": {
1616
"start": "node app.js",
17-
"lint": "semistandard '**/*.js'",
18-
"pretest": "npm run lint",
1917
"system-test": "repo-tools test app",
2018
"test": "npm run system-test"
2119
},
@@ -24,8 +22,7 @@
2422
"express": "4.16.4"
2523
},
2624
"devDependencies": {
27-
"@google-cloud/nodejs-repo-tools": "^3.0.0",
28-
"semistandard": "^12.0.1"
25+
"@google-cloud/nodejs-repo-tools": "^3.0.0"
2926
},
3027
"cloud-repo-tools": {
3128
"test": {

appengine/endpoints/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@
1010
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
1111
},
1212
"engines": {
13-
"node": ">=4.3.2"
13+
"node": ">=8.0.0"
1414
},
1515
"scripts": {
1616
"deploy": "gcloud app deploy",
1717
"start": "node app.js",
18-
"lint": "semistandard '**/*.js'",
19-
"pretest": "npm run lint",
2018
"unit-test": "ava --verbose test/*.test.js",
2119
"system-test": "repo-tools test app",
2220
"all-test": "npm run unit-test && npm run system-test",
@@ -31,6 +29,8 @@
3129
"devDependencies": {
3230
"@google-cloud/nodejs-repo-tools": "^3.0.0",
3331
"ava": "0.25.0",
34-
"semistandard": "^12.0.1"
32+
"proxyquire": "^2.1.0",
33+
"sinon": "^7.1.1",
34+
"supertest": "^3.3.0"
3535
}
3636
}

appengine/errorreporting/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ app.get('/', (req, res, next) => {
2424
next(new Error('something is wrong!'));
2525
});
2626

27-
app.use((err, req, res, next) => {
27+
app.use((err, req, res) => {
2828
errors.report(err);
2929
res.status(500).send(err.message || 'Something broke!');
3030
});

0 commit comments

Comments
 (0)