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
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"
}
}
]
}

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
**/reports
.nyc_output
node_modules
dist
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
}
6 changes: 6 additions & 0 deletions .nycrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"nyc": {
"extends": "@istanbuljs/nyc-config-typescript",
"report-dir": "test/reports"
}
}
10 changes: 10 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
'use strict';

module.exports = {
semi: true,
trailingComma: 'es5',
singleQuote: true,
printWidth: 120,
tabWidth: 2,
quoteProps: 'as-needed',
};
Loading