Skip to content

Commit 2b57d74

Browse files
committed
chore(renovate): add renovate config and tslint plugin
1 parent 0d81f90 commit 2b57d74

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

.spire/spire-plugin-tslint.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
function tslint({ setState }) {
2+
return {
3+
name: 'spire-plugin-tslint',
4+
async precommit() {
5+
setState(state => ({
6+
linters: [
7+
...state.linters,
8+
{ '**/*.tsx?': ['tsc', '--project', 'types'] },
9+
],
10+
}));
11+
},
12+
};
13+
}
14+
15+
module.exports = tslint;

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@
7272
"spire": {
7373
"extends": "@researchgate/spire-config",
7474
"plugins": [
75-
"spire-plugin-semantic-release"
75+
"spire-plugin-semantic-release",
76+
"<rootDir>/.spire/spire-plugin-tslint"
7677
]
7778
},
7879
"scripts": {

renovate.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "@researchgate"
3+
}

0 commit comments

Comments
 (0)