Skip to content

Commit

Permalink
Move stuff out of package.json (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Apr 18, 2023
1 parent 0ea49f0 commit 1f14050
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 21 deletions.
3 changes: 3 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*.{ts,json,md,yml}": ["prettier --write", "git add"]
}
10 changes: 10 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
'use strict';

module.exports = {
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
testEnvironment: 'node',
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
};
21 changes: 0 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,26 +45,5 @@
"precommit": "lint-staged",
"prettier": "prettier --write ."
},
"lint-staged": {
"*.{ts,json,md,yml}": [
"prettier --write",
"git add"
]
},
"jest": {
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testEnvironment": "node",
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
]
},
"runkitExampleFilename": "runkitExample.js"
}

0 comments on commit 1f14050

Please sign in to comment.