File tree 5 files changed +35
-40
lines changed
5 files changed +35
-40
lines changed Original file line number Diff line number Diff line change 15
15
"overrides": [
16
16
{
17
17
"files": [
18
- "test/**/*"
18
+ "{src,test}/**/*.ts",
19
+ "jest.config.js"
19
20
],
20
21
"rules": {
21
22
"@typescript-eslint/no-var-requires": "off"
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
- verbose : false ,
3
- silent : true ,
4
- forceExit : true ,
5
- testEnvironment : "node" ,
6
- globals : {
7
- "ts-jest" : {
8
- tsconfig : "./tsconfig.json" ,
9
- isolatedModules : true
10
- }
2
+ verbose : false ,
3
+ silent : true ,
4
+ forceExit : true ,
5
+ testEnvironment : 'node' ,
6
+ globals : {
7
+ 'ts-jest' : {
8
+ tsconfig : './tsconfig.json' ,
9
+ isolatedModules : true ,
11
10
} ,
12
- transform : {
13
- "^.+\\.tsx?$" : "ts-jest"
14
- } ,
15
- testRegex : "/.+test/.+.(test|spec).(ts|js)" ,
16
- collectCoverageFrom : [ '<rootDir>/src/**/*.ts' ] ,
11
+ } ,
12
+ transform : {
13
+ '^.+\\.tsx?$' : 'ts-jest' ,
14
+ } ,
15
+ testRegex : '/.+test/.+.(test|spec).(ts|js)' ,
16
+ collectCoverageFrom : [ '<rootDir>/src/**/*.ts' ] ,
17
17
} ;
Original file line number Diff line number Diff line change 12
12
"prepublish" : " npm run build" ,
13
13
"test" : " jest --coverage --config ./jest.config.js" ,
14
14
"ci" : " npm run lint && npm run test" ,
15
- "lint:fix" : " eslint . --ext .ts -- fix" ,
16
- "lint" : " eslint . --ext .ts "
15
+ "lint:fix" : " eslint . --fix" ,
16
+ "lint" : " eslint ."
17
17
},
18
18
"repository" : {
19
19
"type" : " git" ,
Original file line number Diff line number Diff line change 1
- {
2
- "extends" : " ./tsconfig.json" ,
3
- "compilerOptions" : {
4
- "rootDir" : " ./src" ,
5
- },
6
- "exclude" : [" test" ," lib" ]
7
- }
1
+ {
2
+ "extends" : " ./tsconfig.json" ,
3
+ "compilerOptions" : {
4
+ "rootDir" : " ./src"
5
+ },
6
+ "exclude" : [" test" , " lib" ]
7
+ }
Original file line number Diff line number Diff line change 1
1
{
2
- "extends" : " @artus/tsconfig" ,
3
- "compilerOptions" : {
4
- "outDir" : " ./lib" ,
5
- "strictNullChecks" : true ,
6
- "strictFunctionTypes" : true ,
7
- "strictPropertyInitialization" : true ,
8
- "types" : [
9
- " node" ,
10
- " jest" ,
11
- " reflect-metadata"
12
- ],
13
- },
14
- "exclude" : [
15
- " lib"
16
- ],
17
- }
2
+ "extends" : " @artus/tsconfig" ,
3
+ "compilerOptions" : {
4
+ "outDir" : " ./lib" ,
5
+ "strictNullChecks" : true ,
6
+ "strictFunctionTypes" : true ,
7
+ "strictPropertyInitialization" : true ,
8
+ "types" : [" node" , " jest" , " reflect-metadata" ]
9
+ },
10
+ "exclude" : [" lib" ]
11
+ }
You can’t perform that action at this time.
0 commit comments