diff --git a/.eslintignore b/.eslintignore index b159cfa8..1d823400 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,3 +1,6 @@ dist +dist-bak esm -lib \ No newline at end of file +lib +types +docs \ No newline at end of file diff --git a/package.json b/package.json index c2f2062f..ee00dee1 100644 --- a/package.json +++ b/package.json @@ -19,8 +19,8 @@ "doc": "rm -rf docs && rm -rf docs-src && tsc -p tsconfig.build.json -t esnext --outDir docs-src && jsdoc -c conf.json && rm -rf docs-src", "doc:open": "open ./docs/index.html", "prettier": "prettier --write 'src/**/*.ts' && prettier --write 'test/**/*.ts'", - "lint": "eslint . --ext .ts", - "lint:fix": "eslint . --ext .ts --fix", + "lint": "eslint . --ext .js,.jsx,.ts,.tsx", + "lint:fix": "eslint . --ext .js,.jsx,.ts,.tsx --fix", "commit": "cz", "prepublishOnly": "npm test && npm run build", "tsc": "tsc --noEmit", diff --git a/src/utils/native.ts b/src/utils/native.ts index a83e215b..5859b0d6 100644 --- a/src/utils/native.ts +++ b/src/utils/native.ts @@ -3,8 +3,8 @@ import { URLExisted } from './setup'; export const nativeUndefined = void 0; -export const objectKeys: typeof Object.keys = Object.keys; -export const objectValues: typeof Object.values = Object.values; +export const objectKeys = Object.keys; +export const objectValues = Object.values; export const createObjectURL = URLExisted ? URL.createObjectURL : constant(''); export const revokeObjectURL = URLExisted ? URL.revokeObjectURL : noop;