Add tsling standard config #16

This commit is contained in:
Qolzam
2017-10-10 08:41:48 +07:00
parent caee98b640
commit 181d2b8abd
3 changed files with 9 additions and 7 deletions

View File

@@ -14,11 +14,12 @@ import { ConnectedRouter } from 'react-router-redux'
// - Import app components
import Master from 'components/Master'
// - Impport actions
declare const window: any
declare const document: any
// Set default data
store.subscribe(() => {
})
// tslint:disable-next-line:no-empty
store.subscribe(() => {})
// Needed for onTouchTap
// http://stackoverflow.com/a/34015469/988941
@@ -29,13 +30,10 @@ injectTapEventPlugin()
// More on Colors: http://www.material-ui.com/#/customization/colors
const muiTheme = getMuiTheme({
})
// App css
require('applicationStyles')
import 'applicationStyles'
const supportsHistory = 'pushState' in window.history
ReactDOM.render(

View File

@@ -85,6 +85,7 @@
"ts-loader": "^2.3.7",
"ts-node": "^3.3.0",
"tslint": "^5.7.0",
"tslint-config-standard": "^6.0.1",
"typescript": "^2.5.3",
"webpack": "^3.6.0"
},

3
tslint.json Normal file
View File

@@ -0,0 +1,3 @@
{
"extends": "tslint-config-standard"
}