Skip to content

Commit

Permalink
Merge e3946e8 into 7ff2bbd
Browse files Browse the repository at this point in the history
  • Loading branch information
jehy committed Nov 16, 2021
2 parents 7ff2bbd + e3946e8 commit 4c68835
Show file tree
Hide file tree
Showing 29 changed files with 648 additions and 9,655 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
coverage
lib
jest.config.js
14 changes: 10 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json"
},
"env": {
"browser": false,
"node": true,
Expand All @@ -25,7 +28,7 @@
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": ["test/**.js"]
"devDependencies": ["src/test/**.ts"]
}
],
"no-mixed-operators": "off",
Expand All @@ -45,13 +48,16 @@
"no-unused-vars": [
"warn",
{
"argsIgnorePattern": "unused",
"varsIgnorePattern": "unused"
"argsIgnorePattern": "_",
"varsIgnorePattern": "_"
}
],
"import/extensions": "off",
"import/no-unresolved": "off",
"import/prefer-default-export": "off",
"@typescript-eslint/no-unused-vars": "off"
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/consistent-type-imports": ["error", { "prefer": "type-imports" }],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-confusing-void-expression": ["error", { "ignoreArrowShorthand": true }]
}
}
4 changes: 2 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
maxWorkers: 1, // more workers can't share getPort() function
rootDir: './src',
testMatch: ['<rootDir>/test/*.test.ts'],
rootDir: '.',
testMatch: ['<rootDir>/src/**/test/*.test.*'],
collectCoverage: true,
coverageReporters: ['lcov'],
coverageThreshold: {
Expand Down
Loading

0 comments on commit 4c68835

Please sign in to comment.