diff --git a/.eslintrc.js b/.eslintrc.js index 6d6d78328..81997dcd6 100755 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -6,7 +6,7 @@ module.exports = { ...fabric.eslint.rules, '@typescript-eslint/prefer-interface': 0, '@typescript-eslint/no-explicit-any': 0, - '@typescript-eslint/array-type': ['error', 'array-simple'], + '@typescript-eslint/array-type': ['error', { default: 'array-simple' }], 'no-return-assign': 0, semi: ['error', 'always'], 'no-console': 0, diff --git a/package.json b/package.json index 4879c991e..978a60770 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "@types/jest": "^25.1.4", "@types/lodash": "^4.14.129", "@types/vfile-message": "1.x", - "@umijs/fabric": "^1.1.10", + "@umijs/fabric": "^2.0.7", "@vuepress/plugin-google-analytics": "^1.2.0", "@vuepress/plugin-pwa": "^1.2.0", "babel-plugin-import": "^1.12.1", @@ -87,7 +87,8 @@ }, "husky": { "hooks": { - "pre-commit": "lint-staged" + "pre-commit": "lint-staged", + "pre-push": "yarn test" } }, "lint-staged": {