made stateless components functional and added typeCheck

This commit is contained in:
Malar Kannan
2017-08-01 17:53:19 +05:30
parent f49df77601
commit 1e259c9a1c
5 changed files with 74 additions and 76 deletions

View File

@@ -134,7 +134,10 @@ module.exports = {
test: /\.(ts|tsx)$/,
loader: require.resolve('tslint-loader'),
enforce: 'pre',
include: paths.appSrc
include: paths.appSrc,
options: {
typeCheck:true
}
}, {
test: /\.js$/,
loader: require.resolve('source-map-loader'),

View File

@@ -83,7 +83,7 @@ module.exports = {
// https://github.com/facebookincubator/create-react-app/issues/290
extensions: ['.ts', '.tsx', '.js', '.json', '.jsx'],
alias: {
// Support React Native Web
// https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/
'react-native': 'react-native-web',
@@ -111,6 +111,9 @@ module.exports = {
loader: require.resolve('tslint-loader'),
enforce: 'pre',
include: paths.appSrc,
options: {
typeCheck:true
}
},
{
test: /\.js$/,