Skip to content

Commit 4679e4d

Browse files
authored
chore: update to 2 space indent (#47)
1 parent 050fca2 commit 4679e4d

File tree

5 files changed

+35
-40
lines changed

5 files changed

+35
-40
lines changed

.eslintrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"overrides": [
1616
{
1717
"files": [
18-
"test/**/*"
18+
"{src,test}/**/*.ts",
19+
"jest.config.js"
1920
],
2021
"rules": {
2122
"@typescript-eslint/no-var-requires": "off"

jest.config.js

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
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,
1110
},
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'],
1717
};

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"prepublish": "npm run build",
1313
"test": "jest --coverage --config ./jest.config.js",
1414
"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 ."
1717
},
1818
"repository": {
1919
"type": "git",

tsconfig.build.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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+
}

tsconfig.json

+10-16
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
{
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+
}

0 commit comments

Comments
 (0)