提交 63aebe91 编写于 作者: 陈帅

fix lint error

上级 5282d098
......@@ -43,10 +43,17 @@
"lint-staged": {
"**/*.less": "stylelint --syntax less",
"**/*.{js,jsx}": "npm run lint-staged:js",
"**/*.{js,ts,tsx,md,json,jsx,less}": [ "npm run prettier", "git add" ],
"**/*.{js,ts,tsx,md,json,jsx,less}": [
"npm run prettier",
"git add"
],
"**/*.{ts,tsx}": "npm run lint-staged:ts"
},
"browserslist": [ "> 1%", "last 2 versions", "not ie <= 10" ],
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 10"
],
"dependencies": {
"@ant-design/pro-layout": "^4.2.0",
"@antv/data-set": "^0.10.1",
......@@ -79,11 +86,12 @@
"devDependencies": {
"@types/classnames": "^2.2.7",
"@types/history": "^4.7.2",
"@types/jest": "^24.0.13",
"@types/lodash": "^4.14.123",
"@types/qs": "^6.5.3",
"@types/react": "^16.8.1",
"@types/react-document-title": "^2.0.3",
"@types/react-dom": "^16.0.11",
"@types/qs": "^6.5.3",
"antd-pro-merge-less": "^1.0.0",
"antd-theme-webpack-plugin": "^1.2.0",
"babel-eslint": "^10.0.1",
......@@ -142,8 +150,14 @@
],
"create-umi": {
"copy": [
["create-umi/README.md", "README.md"],
["create-umi/package.json", "package.json"]
[
"create-umi/README.md",
"README.md"
],
[
"create-umi/package.json",
"package.json"
]
],
"ignore": [
".dockerignore",
......
......@@ -9,7 +9,7 @@ describe('isUrl tests', () => {
expect(isUrl(true as any)).toBeFalsy();
expect(isUrl(NaN as any)).toBeFalsy();
expect(isUrl(null as any)).toBeFalsy();
expect(isUrl(void 0 as any)).toBeFalsy();
expect(isUrl(undefined as any)).toBeFalsy();
expect(isUrl('')).toBeFalsy();
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册