Skip to content

Commit

Permalink
lint: apply standard 12 style
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Sep 11, 2018
1 parent e329663 commit e02de38
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -21,7 +21,7 @@ before_install:
- "npm config set shrinkwrap false"
# Setup Node.js version-specific dependencies
- "test $TRAVIS_NODE_VERSION != '0.8' || npm rm --save-dev istanbul"
- "test $(echo $TRAVIS_NODE_VERSION | cut -d. -f1) -ge 4 || npm rm --save-dev $(grep -E '\"eslint\\S*\"' package.json | cut -d'\"' -f2)"
- "test $(echo $TRAVIS_NODE_VERSION | cut -d. -f1) -ge 6 || npm rm --save-dev $(grep -E '\"eslint\\S*\"' package.json | cut -d'\"' -f2)"
# Update Node.js modules
- "test ! -d node_modules || npm prune"
- "test ! -d node_modules || npm rebuild"
Expand Down
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -294,10 +294,10 @@ var path = require('path')
var app = express()

// create a write stream (in append mode)
var accessLogStream = fs.createWriteStream(path.join(__dirname, 'access.log'), {flags: 'a'})
var accessLogStream = fs.createWriteStream(path.join(__dirname, 'access.log'), { flags: 'a' })

// setup the logger
app.use(morgan('combined', {stream: accessLogStream}))
app.use(morgan('combined', { stream: accessLogStream }))

app.get('/', function (req, res) {
res.send('hello, world!')
Expand Down Expand Up @@ -330,7 +330,7 @@ var accessLogStream = rfs('access.log', {
})

// setup the logger
app.use(morgan('combined', {stream: accessLogStream}))
app.use(morgan('combined', { stream: accessLogStream }))

app.get('/', function (req, res) {
res.send('hello, world!')
Expand Down Expand Up @@ -364,7 +364,7 @@ app.use(morgan('dev', {

// log all requests to access.log
app.use(morgan('common', {
stream: fs.createWriteStream(path.join(__dirname, 'access.log'), {flags: 'a'})
stream: fs.createWriteStream(path.join(__dirname, 'access.log'), { flags: 'a' })
}))

app.get('/', function (req, res) {
Expand Down
12 changes: 6 additions & 6 deletions package.json
Expand Up @@ -22,13 +22,13 @@
"on-headers": "~1.0.1"
},
"devDependencies": {
"eslint": "4.19.1",
"eslint-config-standard": "11.0.0",
"eslint-plugin-import": "2.12.0",
"eslint": "5.5.0",
"eslint-config-standard": "12.0.0",
"eslint-plugin-import": "2.14.0",
"eslint-plugin-markdown": "1.0.0-beta.6",
"eslint-plugin-node": "6.0.1",
"eslint-plugin-promise": "3.8.0",
"eslint-plugin-standard": "3.1.0",
"eslint-plugin-node": "7.0.1",
"eslint-plugin-promise": "4.0.1",
"eslint-plugin-standard": "4.0.0",
"istanbul": "0.4.5",
"mocha": "2.5.3",
"split": "1.0.1",
Expand Down
6 changes: 3 additions & 3 deletions test/morgan.js
Expand Up @@ -439,7 +439,7 @@ describe('morgan()', function () {
})
})

var agent = new https.Agent({ca: cert})
var agent = new https.Agent({ ca: cert })
var createConnection = agent.createConnection

agent.createConnection = function (options) {
Expand Down Expand Up @@ -1226,7 +1226,7 @@ describe('morgan()', function () {
})
var server = createServer(':method :url', {
buffer: true,
stream: {write: writeLog}
stream: { write: writeLog }
})
var time = Date.now()

Expand Down Expand Up @@ -1254,7 +1254,7 @@ describe('morgan()', function () {
})
var server = createServer(':method :url', {
buffer: 200,
stream: {write: writeLog}
stream: { write: writeLog }
})
var time = Date.now()

Expand Down

0 comments on commit e02de38

Please sign in to comment.