@@ -1,4 +1,16 @@
module.exports = {
"parser": "babel-eslint",
- "extends": 'umi'
+ "extends": 'umi',
+ "parserOptions": {
+ "ecmaVersion": 2019,
+ "sourceType": "module",
+ "impliedStrict": true,
+ "ecmaFeatures": {
+ "jsx": true,
+ "globalReturn": false,
+ "experimentalObjectRestSpread": true,
+ "legacyDecorators": true
+ }
+ },
};
@@ -27,7 +27,11 @@ pipeline {
stage('Install') {
steps {
+ sh 'cnpm cache clean --force'
+ sh 'cnpm cache verify'
sh 'cnpm install'
+ // sh 'cnpm install' 2018/9/5 有报告cnpm会在这里出错 暂时用回npm
+
}
@@ -45,5 +45,8 @@
"husky": "^0.12.0",
"redbox-react": "^1.4.3",
"roadhog": "^2.0.0"
+ "cnpm": {
+ "mode": "npm"