made stateless components functional and added typeCheck
This commit is contained in:
@@ -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'),
|
||||
|
||||
@@ -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$/,
|
||||
|
||||
Reference in New Issue
Block a user