Commit 63aebe91 authored by ι™ˆεΈ…'s avatar ι™ˆεΈ…

fix lint error

parent 5282d098
...@@ -43,10 +43,17 @@ ...@@ -43,10 +43,17 @@
"lint-staged": { "lint-staged": {
"**/*.less": "stylelint --syntax less", "**/*.less": "stylelint --syntax less",
"**/*.{js,jsx}": "npm run lint-staged:js", "**/*.{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" "**/*.{ts,tsx}": "npm run lint-staged:ts"
}, },
"browserslist": [ "> 1%", "last 2 versions", "not ie <= 10" ], "browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 10"
],
"dependencies": { "dependencies": {
"@ant-design/pro-layout": "^4.2.0", "@ant-design/pro-layout": "^4.2.0",
"@antv/data-set": "^0.10.1", "@antv/data-set": "^0.10.1",
...@@ -79,11 +86,12 @@ ...@@ -79,11 +86,12 @@
"devDependencies": { "devDependencies": {
"@types/classnames": "^2.2.7", "@types/classnames": "^2.2.7",
"@types/history": "^4.7.2", "@types/history": "^4.7.2",
"@types/jest": "^24.0.13",
"@types/lodash": "^4.14.123", "@types/lodash": "^4.14.123",
"@types/qs": "^6.5.3",
"@types/react": "^16.8.1", "@types/react": "^16.8.1",
"@types/react-document-title": "^2.0.3", "@types/react-document-title": "^2.0.3",
"@types/react-dom": "^16.0.11", "@types/react-dom": "^16.0.11",
"@types/qs": "^6.5.3",
"antd-pro-merge-less": "^1.0.0", "antd-pro-merge-less": "^1.0.0",
"antd-theme-webpack-plugin": "^1.2.0", "antd-theme-webpack-plugin": "^1.2.0",
"babel-eslint": "^10.0.1", "babel-eslint": "^10.0.1",
...@@ -142,8 +150,14 @@ ...@@ -142,8 +150,14 @@
], ],
"create-umi": { "create-umi": {
"copy": [ "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": [ "ignore": [
".dockerignore", ".dockerignore",
......
...@@ -9,7 +9,7 @@ describe('isUrl tests', () => { ...@@ -9,7 +9,7 @@ describe('isUrl tests', () => {
expect(isUrl(true as any)).toBeFalsy(); expect(isUrl(true as any)).toBeFalsy();
expect(isUrl(NaN as any)).toBeFalsy(); expect(isUrl(NaN as any)).toBeFalsy();
expect(isUrl(null 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(); expect(isUrl('')).toBeFalsy();
}); });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment