diff --git a/jest.config.js b/jest.config.js index 0b378e0..2f148ea 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,6 +1,12 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed + * under the Apache 2.0 license (see LICENSE). + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020 Datadog, Inc. + */ + module.exports = { preset: 'ts-jest', testEnvironment: 'node', - testMatch: ['/test/**/*.[jt]s'] + testMatch: ['/test/**/*.test.[jt]s'] }; - diff --git a/prettier.config.js b/prettier.config.js index 5668029..12c6fa6 100644 --- a/prettier.config.js +++ b/prettier.config.js @@ -1,3 +1,10 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed + * under the Apache 2.0 license (see LICENSE). + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020 Datadog, Inc. + */ + module.exports = { printWidth: 80, tabWidth: 4, diff --git a/tsconfig.json b/tsconfig.json index 15f1c49..6c38b38 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,11 +4,17 @@ "module": "commonjs", "declaration": true, "strict": true, + "noImplicitAny": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "noImplicitThis": true, + "alwaysStrict": true, + "noFallthroughCasesInSwitch": true, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "outDir": "./dist" }, "include": [ - "./src" + "./src", "./test" ] }