Skip to content

Commit 1ac348a

Browse files
committedNov 24, 2023
chore: fix eslint configuration
1 parent 924f397 commit 1ac348a

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed
 

‎.eslintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
"env": {
1111
"mocha": true
1212
},
13-
"ignorePatterns": ["dist", "coverage", ".nyc_output"]
13+
"ignorePatterns": ["dist", "coverage", ".nyc_output", "examples"]
1414
}

‎index.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import ObserveWriteStream from './lib/observe_write_stream'
1515
import { parameters, refreshTiming, defaultTiming } from './lib/parameters'
1616
import { isIPv6 } from 'net'
1717
import { registerOption, registerFormat, ignoreOption } from './lib/option_converter'
18-
import { CoapServerOptions, requestListener, CoapRequestParams, ParametersUpdate, AgentOptions, CoapPacket, Option, OptionValue } from './models/models'
18+
import type { CoapServerOptions, requestListener, CoapRequestParams, ParametersUpdate, AgentOptions, CoapPacket, Option, OptionValue } from './models/models'
1919

2020
export let globalAgent = new Agent({ type: 'udp4' })
2121
export let globalAgentIPv6 = new Agent({ type: 'udp6' })
@@ -98,11 +98,11 @@ export {
9898
ObserveWriteStream,
9999
Agent,
100100
Server,
101-
ParametersUpdate,
102-
CoapRequestParams,
103-
AgentOptions,
104-
CoapPacket,
105-
Option,
106-
OptionValue,
107-
CoapServerOptions
101+
type ParametersUpdate,
102+
type CoapRequestParams,
103+
type AgentOptions,
104+
type CoapPacket,
105+
type Option,
106+
type OptionValue,
107+
type CoapServerOptions
108108
}

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"prepublishOnly": "npm run build",
1111
"test": "mocha ./dist/test --exit",
1212
"coverage": "c8 -a --reporter=lcov --reporter=text --reporter=html npm run test",
13-
"lint": "eslint .",
14-
"lint:fix": "eslint . --fix"
13+
"lint": "eslint *.ts",
14+
"lint:fix": "eslint *.ts --fix"
1515
},
1616
"repository": {
1717
"type": "git",

0 commit comments

Comments
 (0)
Please sign in to comment.