Skip to content

Commit

Permalink
ts: clean up tsconfigs
Browse files Browse the repository at this point in the history
  • Loading branch information
rodmax committed Nov 6, 2019
1 parent 76d9296 commit 1d9660c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
"stylelint": "stylelint -f unix 'src/**/*.scss'",
"lint:all": "run-p -ln eslint stylelint",
"prettier:fix": "prettier --check --write './*.js'",
"test:watch": "jest --watch",
"test": "jest",
"jest:watch": "jest --watch",
"jest": "jest",
"testcafe:prod": "E2E_MODE=prod testcafe --app 'npm run app:serve'",
"testcafe:live": "E2E_MODE=dev testcafe chrome --live",
"pre-commit": "run-p -ln lint:all",
"pre-push": "run-p -ln lint:all app:build test"
"pre-push": "run-s -ln pre-push:stage-1 pre-push:stage-2",
"pre-push:stage-1": "run-p -ln lint:all app:build",
"pre-push:stage-2": "run-p -ln testcafe:prod"
},
"husky": {
"hooks": {
Expand Down
2 changes: 1 addition & 1 deletion src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../tsconfig.base.json",
"extends": "../tsconfig.json",
"compilerOptions": {
"baseUrl": "./",
"checkJs": false, /* Report errors in .js files. */
Expand Down
2 changes: 1 addition & 1 deletion testcafe/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../tsconfig.base.json",
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../build/testcafe",
"types": ["node"]
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.base.json → tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"noImplicitReturns": true /* Report error when not all code paths in function return a value. */,
"noFallthroughCasesInSwitch": true /* Report errors for fallthrough cases in switch statement. */,
/* Module Resolution Options */
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
Expand Down

0 comments on commit 1d9660c

Please sign in to comment.