Skip to content

Commit 3bfecf1

Browse files
committed
Add api-extractor linting
1 parent 42109d6 commit 3bfecf1

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

api-extractor.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
"ae-internal-missing-underscore": {
3030
"logLevel": "none",
3131
"addToApiReportFile": false
32+
},
33+
"ae-forgotten-export": {
34+
"logLevel": "error",
35+
"addToApiReportFile": false
3236
}
3337
},
3438
"tsdocMessageReporting": {

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,12 @@
9191
"scripts": {
9292
"build:evergreen": "node .evergreen/generate_evergreen_tasks.js",
9393
"build:ts": "rimraf lib && tsc",
94-
"build:dts": "npm run build:ts && api-extractor run --typescript-compiler-folder node_modules/typescript --local && rimraf 'lib/**/*.d.ts*'",
94+
"build:dts": "npm run build:ts && api-extractor run && rimraf 'lib/**/*.d.ts*'",
9595
"build:docs": "npm run build:dts && typedoc",
9696
"check:bench": "node test/benchmarks/driverBench",
9797
"check:coverage": "nyc npm run check:test",
98-
"check:lint": "npm run check:ts && eslint -v && eslint --max-warnings=0 --ext '.js,.ts' src test",
98+
"check:lint": "npm run build:dts && npm run check:eslint",
99+
"check:eslint": "eslint -v && eslint --max-warnings=0 --ext '.js,.ts' src test",
99100
"check:test": "mocha --recursive test/functional test/unit",
100101
"check:ts": "tsc -v && tsc --noEmit",
101102
"check:atlas": "mocha --config \"test/manual/mocharc.json\" test/manual/atlas_connectivity.test.js",

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ export type {
144144
RemoveOptions as WireRemoveOptions
145145
} from './cmap/wire_protocol/index';
146146
export type { CollationOptions, WriteCommandOptions } from './cmap/wire_protocol/write_command';
147+
export type { QueryOptions } from './cmap/wire_protocol/query';
147148
export type { CollectionPrivate, CollectionOptions } from './collection';
148149
export type { AggregationCursorOptions } from './cursor/aggregation_cursor';
149150
export type {

tsdoc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
3-
// Correct url: https://developer.microsoft.com/en-us/json-schemas/tsdoc/v0/tsdoc.schema.json
43
"tagDefinitions": [
54
{
65
"syntaxKind": "block",

0 commit comments

Comments
 (0)