Skip to content

Commit df3c160

Browse files
authored
Merge pull request #7 from ymyqwe/feature/typescript
Feature/typescript
2 parents 8c99089 + 2dcdb82 commit df3c160

21 files changed

+3474
-9958
lines changed

.eslintrc

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
{
2-
"parser": "babel-eslint",
3-
"extends": ["google", "eslint:recommended", "plugin:react/recommended"],
4-
"plugins": ["react"],
2+
"parser": "@typescript-eslint/parser",
53
"parserOptions": {
6-
"ecmaFeatures": {
7-
"jsx": true,
8-
"modules": true
9-
}
4+
"sourceType": "module"
105
},
6+
"extends": ["google", "eslint:recommended", "plugin:react/recommended"],
7+
"plugins": ["react", "@typescript-eslint"],
118
"rules": {
129
"no-console": 1,
1310
"react/prop-types": 0,
14-
"no-undef": 1
11+
"no-undef": 0,
12+
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
13+
"require-jsdoc": 1,
14+
"max-len": [1, { "code": 200 }],
15+
"object-curly-spacing": ["warn", "always"],
16+
"comma-dangle": [1, "never"]
1517
}
1618
}

.eslintrc.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
module.exports = {
2-
parser: 'babel-eslint',
3-
extends: ['google', 'eslint:recommended', 'plugin:react/recommended'],
4-
plugins: ['react'],
2+
parser: '@typescript-eslint/parser',
53
parserOptions: {
6-
ecmaFeatures: {
7-
jsx: true,
8-
modules: true
9-
}
4+
sourceType: 'module'
105
},
6+
extends: ['google', 'eslint:recommended', 'plugin:react/recommended'],
7+
plugins: ['react', '@typescript-eslint'],
118
rules: {
129
'no-console': 1,
1310
'react/prop-types': 0,
14-
'no-undef': 0
11+
'no-undef': 0,
12+
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
13+
'require-jsdoc': 1,
14+
'max-len': [1, { code: 200 }],
15+
'object-curly-spacing': ['warn', 'always'],
16+
'comma-dangle': [1, 'never']
1517
}
1618
};

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,21 @@ npm start
3838
- [x] [Redux](https://github.com/reduxjs/redux)-like style state manage
3939
- [x] [Log4js](https://github.com/log4js-node/log4js-node)
4040
- [ ] [React-router](https://github.com/ReactTraining/react-router)
41-
- [ ] [Typescript](https://github.com/Microsoft/TypeScript)
41+
- [x] [Typescript](https://github.com/Microsoft/TypeScript)
4242
- [x] [Webpack-v4](https://github.com/webpack/webpack)
4343
- [ ] Test
4444

4545
## Changelog
4646

47+
### [3.0.0] / 2019-11-19
48+
49+
- Refactor with Typescipt
50+
4751
### [2.2.1] / 2019-05-10
4852

4953
- Upgrade tar to <i>4.4.8</i> due to github security alerts
5054
- Upgrade [React](https://reactjs.org) and React-Dom to <i>16.8.6</i>
5155

52-
5356
### [2.2.0] / 2019-03-26
5457

5558
- Upgrade webpack to v4

index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
77
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0" name="viewport" />
88
<meta name="format-detection" content="telephone=no" />
9-
<script src="./node_modules/socket.io-client/dist/socket.io.js" type="text/javascript" charset="utf-8"></script>
109
</head>
1110
<body>
1211
<div id="app"></div>

0 commit comments

Comments
 (0)