-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: dependency update + lint settings
- Loading branch information
Johan
committed
Nov 16, 2019
1 parent
ae32baa
commit 0398e1d
Showing
7 changed files
with
560 additions
and
497 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.py] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.rb] | ||
indent_style = space | ||
indent_size = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
# /node_modules/* in the project root is ignored by default | ||
**/node_modules | ||
# build artefacts | ||
**/dist | ||
**/coverage/* | ||
# data definition files | ||
**/*.d.ts | ||
# 3rd party libs | ||
**/src/public/ | ||
# custom definition files | ||
**/src/types/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"semi": true, | ||
"tabWidth": 2, | ||
"printWidth": 120, | ||
"singleQuote": false, | ||
"trailingComma": "none" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,16 @@ | ||
// // jest.config.js | ||
// // eslint-disable-next-line @typescript-eslint/no-var-requires | ||
// const { pathsToModuleNameMapper } = require("ts-jest/utils"); | ||
// // In the following statement, replace `./tsconfig` with the path to your `tsconfig` file | ||
// // which contains the path mapping (ie the `compilerOptions.paths` option): | ||
// // eslint-disable-next-line @typescript-eslint/no-var-requires | ||
// const { compilerOptions } = require("./tsconfig.json"); | ||
|
||
module.exports = { | ||
// roots: [SRC_PATH], | ||
globals: { | ||
"ts-jest": { | ||
tsConfig: "tsconfig.json" | ||
} | ||
collectCoverageFrom: ["src/**/{!(*.d.ts),}.{ts,js,.tsx,.jsx}"], | ||
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"], | ||
moduleNameMapper: { | ||
"^.+\\.(css|scss)$": "identity-obj-proxy" | ||
}, | ||
modulePathIgnorePatterns: ["<rootDir>/dist/"], | ||
preset: "ts-jest", | ||
roots: ["<rootDir>/src", "<rootDir>/test"], | ||
setupFilesAfterEnv: ["jest-extended"], | ||
// moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, { | ||
// prefix: "<rootDir>/" | ||
// }), | ||
moduleFileExtensions: ["ts", "js"], | ||
modulePathIgnorePatterns: [ | ||
"<rootDir>/dist/", | ||
"<rootDir>/test/jest/flex.test-data" | ||
], | ||
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$", | ||
transform: { | ||
"^.+\\.(ts|tsx)$": "ts-jest" | ||
"^.+\\.tsx?$": "ts-jest" | ||
}, | ||
testMatch: ["**/test/**/*.test.(ts|js)"], | ||
testEnvironment: "node", | ||
collectCoverageFrom: ["src/**/{!(*.d.ts),}.{ts,js}"] | ||
verbose: true | ||
}; |
Oops, something went wrong.