Skip to content

Commit

Permalink
chore: update linting
Browse files Browse the repository at this point in the history
  • Loading branch information
martinheidegger committed Mar 22, 2022
1 parent 2eadd0d commit ad35be1
Show file tree
Hide file tree
Showing 8 changed files with 166 additions and 153 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['lts/*', 17, 16, 14, 12, 10, 8, 6, 4, '0.12', '0.10']
node-version: ['lts/*', 17, 16, 14, 12, 10, 8, 6, 4]

steps:
- uses: actions/checkout@v2
Expand Down
7 changes: 4 additions & 3 deletions example.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
var schema = require('./')
var fs = require('fs')
'use strict'
const schema = require('./')
const fs = require('fs')

var sch = schema.parse(fs.readFileSync('example.proto'))
const sch = schema.parse(fs.readFileSync('example.proto'))

console.log('Parsed schema:')
console.log(JSON.stringify(sch, null, 2))
Expand Down
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var parse = require('./parse')
var stringify = require('./stringify')
'use strict'
const parse = require('./parse')
const stringify = require('./stringify')

module.exports = parse
module.exports.parse = parse
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "No nonsense protocol buffers schema parser written in Javascript",
"main": "index.js",
"devDependencies": {
"standard": "^10.0.3",
"standard": "^16.0.4",
"tape": "^5.5.2"
},
"scripts": {
Expand Down
Loading

0 comments on commit ad35be1

Please sign in to comment.