Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ root = true
[*]
# change these settings to your own preference
indent_style = space
indent_size = 4
indent_size = 2

# we recommend you to keep these unchanged
end_of_line = lf
Expand Down
33 changes: 32 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,34 @@
{
"extends": "sparkpost/api"
"root": true,
"extends": [ "sparkpost/api" ],
"overrides": [
{
"files": ["*.ts"],
"env": {
"es6": true,
"node": true,
"mocha": true
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"mocha"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"mocha/no-exclusive-tests": "error",
"mocha/no-mocha-arrows": "error",
"mocha/no-identical-title": "error",
"mocha/no-sibling-hooks": "error"
}
}
]
}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ api/node_modules
.node-version
api/dist
test/report
test/reports
lambda/test/reports
atlassian-ide-plugin.xml

Expand Down Expand Up @@ -55,3 +56,6 @@ jspm_packages

# Optional REPL history
.node_repl_history

# compiled js code
dist
157 changes: 0 additions & 157 deletions index.js

This file was deleted.

35 changes: 32 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 13 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,45 @@
"name": "@sparkpost/nock-inspector",
"version": "0.2.0",
"description": "A wrapper for nock that exposes request data",
"main": "index.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"test": "NODE_ENV=test NODE_CONFIG_PERSIST_ON_CHANGE=N NODE_PATH=$NODE_PATH:. nyc --reporter=text-summary --reporter=lcov --report-dir=test/report/ mocha test/"
"test": "tsc && npm run test:unit --",
"test:unit": "tsc && NODE_ENV=test NODE_PATH=$NODE_PATH:. nyc --reporter=text-summary --reporter=lcov --report-dir=test/reports/unit/ mocha test/unit/",
"tsc": "tsc"
},
"author": "",
"license": "MIT",
"dependencies": {
"deep-equal": "^1.0.1",
"lodash": "^4.17.15",
"lodash.isequal": "^4.5.0",
"nock": "^9.5.0"
},
"devDependencies": {
"@types/lodash.isequal": "^4.5.5",
"@types/nock": "^11.1.0",
"bluebird": "^3.7.2",
"chai": "^4.1.2",
"chai-as-promised": "^7.1.1",
"eslint-config-sparkpost": "^2.0.0",
"husky": "^4.2.3",
"lint-staged": "^10.0.7",
"lodash": "^4.17.15",
"mocha": "^5.2.0",
"nyc": "^14.1.1",
"prettier-eslint-cli": "^5.0.0",
"request": "^2.87.0",
"request-promise": "^4.2.2"
"request-promise": "^4.2.2",
"typescript": "^3.8.3"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"**/*.js": [
"(src|test)/**/*.[jt]s": [
"prettier-eslint --write",
"eslint --fix"
"git add"
]
}
}
Loading