Skip to content

Commit

Permalink
chore: update lint
Browse files Browse the repository at this point in the history
  • Loading branch information
caijf committed Jul 11, 2024
1 parent 8047f82 commit 724b6b1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
dist
dist-bak
esm
lib
lib
types
docs
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/utils/native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 724b6b1

Please sign in to comment.