Skip to content

Instantly share code, notes, and snippets.

{
"rulesDirectory": ["tslint-plugin-prettier"],
"plugins": ["prettier"],
"extends": [
"tslint-config-airbnb",
"tslint-config-standard",
"tslint-config-prettier"
],
"linterOptions": {
"exclude": ["config/**/*.js", "node_modules/**/*.ts"]
@babie
babie / config-overrides.js
Created May 26, 2018 20:35
Transform aws-sam & create-react-app codes from JavaScript to TypeScript
const fs = require('fs')
const path = require('path')
const appDirectory = fs.realpathSync(process.cwd())
const resolveApp = relativePath => path.resolve(appDirectory, relativePath)
module.exports = {
webpack: (config, env) => ({
...config,
entry: [resolveApp('src/server.ts')],
{
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$",
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"],
"testPathIgnorePatterns": [
"<rootDir>/src/",
"<rootDir>/build/",
"<rootDir>/dist/",
const fs = require('fs')
const path = require('path')
const traverse = require('traverse')
const setupTestsFile = fs.existsSync(
path.resolve(__dirname, 'src/setupTests.ts')
)
? '<rootDir>/src/setupTests.ts'
: undefined

Keybase proof

I hereby claim:

To claim this, I am signing this object: