diff --git a/.eslintrc.js b/.eslintrc.js index 598b09c13..46bf9e429 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,6 +1,3 @@ module.exports = { "extends": "react-impression", - rules: { - "import/no-extraneous-dependencies": ["error", {"devDependencies": true, "optionalDependencies": true, "peerDependencies": true}] - }, }; diff --git a/gulpfile.js b/gulpfile.js index 900b9aa8f..5d8e6152a 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -95,7 +95,6 @@ gulp.task('edit:package.json', function() { delete json.devDependencies; delete json.dependencies['highlight.js']; - delete json.dependencies['perfect-scrollbar']; delete json.dependencies['react-router']; return json; diff --git a/index.html b/index.html index 2044064d2..82203dd77 100755 --- a/index.html +++ b/index.html @@ -1,4 +1,3 @@ -
diff --git a/package.json b/package.json index fd081df2b..4322d9f86 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-impression", - "version": "1.2.21", + "version": "1.3.1", "author": "NewDadaFE", "description": "UI Components with React.", "main": "./dist/scripts/index.js", @@ -34,7 +34,7 @@ "perfect-scrollbar": "^0.6.12", "prop-types": "^15.5.10", "react": "^15.4.1", - "react-addons-css-transition-group": "^15.4.1", + "react-addons-css-transition-group": "^15.6.0", "react-dom": "^15.4.1", "react-router": "3.0.5" }, @@ -53,7 +53,8 @@ "babel-preset-react": "^6.5.0", "babel-preset-stage-0": "^6.5.0", "babel-runtime": "^6.11.6", - "eslint-config-react-impression": "^1.1.4", + "eslint-config-react-impression": "^1.2.0", + "eslint-loader": "^1.9.0", "file-loader": "^0.8.5", "gulp": "^3.9.1", "gulp-autoprefixer": "^3.1.1", diff --git a/src/scripts/components/Breadcrumb.js b/src/scripts/components/Breadcrumb.js index 49822f035..74ff62176 100644 --- a/src/scripts/components/Breadcrumb.js +++ b/src/scripts/components/Breadcrumb.js @@ -12,13 +12,13 @@ const WrapBreadcrumb = ({ routes }) => { { routes.map((route, index) => { if(index < length - 1) { return ( - + {route.path === 'app' ? 'home' : route.path} ); } - return {route.path}; + return {route.path}; })} ); diff --git a/src/scripts/components/CommenTable.js b/src/scripts/components/CommenTable.js index 2a8638775..a9e65feae 100644 --- a/src/scripts/components/CommenTable.js +++ b/src/scripts/components/CommenTable.js @@ -4,9 +4,9 @@ import PropTypes from 'prop-types'; * React组件 */ const CommenTable = ({ data }) => { - let rows = data.map((item, index) => { + let rows = data.map(item => { return ( -