Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
40 changes: 39 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,41 @@
{
"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",
"plugin:prettier/recommended"
],
"rules": {
"quote-props": ["error","as-needed"],
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/camelcase": "off",
"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
9 changes: 9 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

module.exports = {
semi: true,
trailingComma: 'es5',
singleQuote: true,
tabWidth: 2,
quoteProps: 'as-needed',
};
157 changes: 0 additions & 157 deletions index.js

This file was deleted.

9 changes: 9 additions & 0 deletions mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"require": [
"ts-node/register/transpile-only",
"source-map-support/register"
],
"recursive": "true",
"reporter": "spec",
"timeout": 20000
}
Loading