Skip to content

Commit

Permalink
linter: re-add relaxed no-unused-vars rule
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Jan 6, 2024
1 parent 73f4bf6 commit 381a900
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
9 changes: 8 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
"node_modules"
],
"rules": {
"no-unused-vars": "off"
"no-unused-vars": [
"error",
{
"vars": "all",
"args": "none",
"ignoreRestSiblings": false
}
]
}
}
5 changes: 0 additions & 5 deletions build-docs.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
#!/usr/bin/env node

// todo: use import assertions once they're supported by Node.js & ESLint
// https://github.com/tc39/proposal-import-assertions
import {createRequire} from 'module'
const require = createRequire(import.meta.url)

import {createReadStream, createWriteStream} from 'node:fs'
import {copyFile} from 'node:fs/promises'
import _technicalDocsCli from '@derhuerst/technical-docs-cli'
Expand Down
1 change: 0 additions & 1 deletion lib/hafas.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict'

import {randomBytes} from 'crypto'
import {createIpPoolAgent} from 'localaddress-agent'
import _vbbProfile from 'hafas-client/p/vbb/index.js'
import defaultProfile from 'hafas-client/lib/default-profile.js'
Expand Down

0 comments on commit 381a900

Please sign in to comment.