Skip to content

Commit 9978208

Browse files
author
chenghao
committed
最新组件
1 parent fa215c5 commit 9978208

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+15711
-69
lines changed

.env

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PORT=3006

.eslintrc

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"extends": "react-app",
3+
"rules": {
4+
"no-multi-spaces": 1,
5+
"react/jsx-space-before-closing": 1, // 总是在自动关闭的标签前加一个空格,正常情况下也不需要换行
6+
"jsx-quotes": 1,
7+
"react/jsx-closing-bracket-location": 1, // 遵循JSX语法缩进/格式
8+
"react/jsx-boolean-value": 1, // 如果属性值为 true, 可以直接省略
9+
"react/no-string-refs": 1, // 总是在Refs里使用回调函数
10+
"react/self-closing-comp": 1, // 对于没有子元素的标签来说总是自己关闭标签
11+
"react/sort-comp": 1, // 按照具体规范的React.createClass 的生命周期函数书写代码
12+
"react/jsx-pascal-case": 1 // React模块名使用帕斯卡命名,实例使用骆驼式命名
13+
}
14+
}

config/webpack.config.dev.js

+10
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,16 @@ module.exports = {
8989
{
9090
test: /\.(js|jsx)$/,
9191
loader: 'eslint',
92+
enforce: 'pre',
93+
use: [{
94+
// @remove-on-eject-begin
95+
// Point ESLint to our predefined config.
96+
options: {
97+
useEslintrc: true
98+
},
99+
// @remove-on-eject-end
100+
loader: 'eslint-loader'
101+
}],
92102
include: paths.appSrc,
93103
}
94104
],

package.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,16 @@
4545
},
4646
"dependencies": {
4747
"antd": "^2.9.1",
48+
"axios": "^0.16.1",
4849
"babel-plugin-import": "^1.1.1",
50+
"echarts-for-react": "^1.2.0",
4951
"less": "^2.7.2",
5052
"less-loader": "^4.0.3",
51-
"react": "^15.5.3",
52-
"react-dom": "^15.5.3"
53+
"nprogress": "^0.2.0",
54+
"react": "^15.4.2",
55+
"react-dom": "^15.4.2",
56+
"react-router": "^3.0.2",
57+
"recharts": "^0.22.3"
5358
},
5459
"scripts": {
5560
"start": "node scripts/start.js",

0 commit comments

Comments
 (0)