Skip to content

Commit 1901b71

Browse files
committed
build: rename to tsconfig.lint-staged.json and add "include" array in both tsconfig files
1 parent 23854d8 commit 1901b71

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
"./packages/*"
134134
],
135135
"lint-staged": {
136-
"*.ts": "tsc-files --project tsconfig-lint-staged.json",
136+
"*.ts": "tsc-files --project tsconfig.lint-staged.json",
137137
"*.{js,ts,mjs,cjs,html}": "eslint --cache --fix -c .eslintrc.js",
138138
"*": "prettier --ignore-unknown --write"
139139
},

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@
2525
"resolveJsonModule": true,
2626
"skipLibCheck": true,
2727
"useDefineForClassFields": false
28-
}
28+
},
29+
"include": ["**/*.ts"]
2930
}

tsconfig-lint-staged.json renamed to tsconfig.lint-staged.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"emitDeclarationOnly": false,
55
"noEmit": true
66
},
7+
"include": ["**/*.ts"],
78
"exclude": ["src/**/*"]
89
}

0 commit comments

Comments
 (0)