Skip to content

Commit e557648

Browse files
second commit
1 parent 539ba25 commit e557648

File tree

13 files changed

+410
-111
lines changed

13 files changed

+410
-111
lines changed

.eslintrc.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
"node": true,
55
"jest": true
66
},
7-
"extends": ["standard", "plugin:@typescript-eslint/recommended"],
7+
"extends": [
8+
"standard",
9+
"plugin:@typescript-eslint/recommended",
10+
"plugin:prettier/recommended"
11+
],
812
"parser": "@typescript-eslint/parser",
913
"overrides": [
1014
{
@@ -18,13 +22,14 @@
1822
"ecmaVersion": 11,
1923
"sourceType": "module"
2024
},
21-
"plugins": ["@typescript-eslint"],
25+
"plugins": ["@typescript-eslint", "prettier"],
2226
"rules": {
2327
"@typescript-eslint/no-unused-vars": "off",
2428
"@typescript-eslint/explicit-module-boundary-types": "off",
2529
"no-unused-vars": "off",
2630
"@typescript-eslint/no-floating-promises": "error",
2731
"space-before-function-paren": "off",
28-
"no-useless-constructor": "off"
32+
"no-useless-constructor": "off",
33+
"prettier/prettier": ["error", { "semi": false, "singleQuote": true }]
2934
}
3035
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,4 @@ testem.log
4242
Thumbs.db
4343
.vscode
4444
.env
45+
logs

.prettierrc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
2-
"printWidth": 180,
2+
"semi": false,
33
"singleQuote": true,
4-
"trailingComma": "none",
5-
"semi": false
4+
"trailingComma": "none"
65
}

jest.config.js

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ module.exports = {
1212
// Stop running tests after `n` failures
1313
// bail: 1,
1414

15-
// The glob patterns Jest uses to detect test files
15+
// The glob patterns Jest uses to detect test files
1616
testMatch: [
1717
// "**/__tests__/**/?(*.)+(spec|test).ts",
1818
// "**/__tests__/construction.spec.ts",
1919
// "**/src/**/account-recovery.spec.ts",
20-
"**/src/**/?(*.)+(spec|test).ts"
20+
'**/src/**/?(*.)+(spec|test).ts'
2121
],
2222

2323
// The directory where Jest should store its cached dependency information
@@ -35,20 +35,15 @@ module.exports = {
3535
// collectCoverageFrom: undefined,
3636

3737
// The directory where Jest should output its coverage files
38-
coverageDirectory: "<rootDir>/coverage/",
38+
coverageDirectory: '<rootDir>/coverage/',
3939

4040
// An array of regexp pattern strings used to skip coverage collection
4141
// coveragePathIgnorePatterns: [
4242
// "/node_modules/"
4343
// ],
4444

4545
// A list of reporter names that Jest uses when writing coverage reports
46-
coverageReporters: [
47-
"json",
48-
"text",
49-
"lcov",
50-
"clover"
51-
],
46+
coverageReporters: ['json', 'text', 'lcov', 'clover'],
5247

5348
// An object that configures minimum threshold enforcement for coverage results
5449
// coverageThreshold: undefined,
@@ -91,10 +86,12 @@ module.exports = {
9186
// ],
9287

9388
// A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
94-
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, { prefix: '<rootDir>' }),
89+
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, {
90+
prefix: '<rootDir>'
91+
}),
9592

9693
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
97-
// modulePathIgnorePatterns: ["<rootDir>/src/__tests__/"],
94+
// modulePathIgnorePatterns: ["<rootDir>/src/__tests__/"],
9895

9996
// Activates notifications for test results
10097
// notify: false,
@@ -144,7 +141,7 @@ module.exports = {
144141
// snapshotSerializers: [],
145142

146143
// The test environment that will be used for testing
147-
testEnvironment: 'node',
144+
testEnvironment: 'node'
148145

149146
// Options that will be passed to the testEnvironment
150147
// testEnvironmentOptions: {},

middlewares/authMaster.js

Lines changed: 0 additions & 37 deletions
This file was deleted.

middlewares/authMiddleware.js

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)