Skip to content

Commit d250f8b

Browse files
committed
refactor: Fix lint issues (automated)
1 parent 4f1f520 commit d250f8b

File tree

5 files changed

+15
-6
lines changed

5 files changed

+15
-6
lines changed

prettier.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
module.exports = {
24
arrowParens: 'always',
35
printWidth: 100,

src/serverless.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const { mergeDeepRight, pick } = require('ramda')
24
const AWS = require('aws-sdk')
35
const { Component } = require('@serverless/core')
@@ -29,7 +31,8 @@ class AwsDynamoDb extends Component {
2931
async deploy(inputs = {}) {
3032
// this error message assumes that the user is running via the CLI though...
3133
if (Object.keys(this.credentials.aws).length === 0) {
32-
const msg = 'Credentials not found. Make sure you have a .env file in the cwd. - Docs: https://git.io/JvArp'
34+
const msg =
35+
'Credentials not found. Make sure you have a .env file in the cwd. - Docs: https://git.io/JvArp'
3336
throw new Error(msg)
3437
}
3538

@@ -38,11 +41,9 @@ class AwsDynamoDb extends Component {
3841

3942
// If first deploy and no name is found, set default name..
4043
if (!config.name && !this.state.name) {
41-
config.name =
42-
`dynamodb-table-${
43-
Math.random()
44-
.toString(36)
45-
.substring(6)}`
44+
config.name = `dynamodb-table-${Math.random()
45+
.toString(36)
46+
.substring(6)}`
4647
this.state.name = config.name
4748
}
4849
// If first deploy, and a name is set...

src/utils.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const { isEmpty, not, equals, pick } = require('ramda')
24

35
function log(msg) {

tests/integration.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const { sleep, generateId, getCredentials, getServerlessSdk, getTable } = require('./utils')
24

35
// set enough timeout for deployment to finish

tests/utils.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const path = require('path')
24
const AWS = require('aws-sdk')
35
const { ServerlessSDK } = require('@serverless/platform-client')

0 commit comments

Comments
 (0)