Skip to content

Commit

Permalink
feat: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
danieloprado committed Jul 11, 2023
1 parent 8152671 commit ccf27ce
Show file tree
Hide file tree
Showing 5 changed files with 1,611 additions and 39 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
*.d.ts
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ jobs:
run: yarn install --immutable
- name: Setup NPM Registry
run: echo '//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}' > ~/.npmrc && npm config get registry && npm whoami
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Publish
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# Eduzz Hooks: Promises

[![version](https://img.shields.io/npm/v/@eduzz/ui-hooks-promises)](https://www.npmjs.com/package/@eduzz/ui-hooks-promises)
[![size](https://img.shields.io/bundlephobia/min/@eduzz/ui-hooks-promises)](https://www.npmjs.com/package/@eduzz/ui-hooks-promises)
[![version](https://img.shields.io/npm/v/@eduzz/ui-antd-hooks)](https://www.npmjs.com/package/@eduzz/ui-antd-hooks)
[![size](https://img.shields.io/bundlephobia/min/@eduzz/ui-antd-hooks)](https://www.npmjs.com/package/@eduzz/ui-antd-hooks)

Hooks diversos para auxiliar no desenvolvimento.

## Instalação

```bash
yarn add @eduzz/ui-hooks-promises
yarn add @eduzz/ui-antd-hooks
```

## Hooks

- [usePromise](https://github.com/eduzz/ui-hooks-promises/blob/master/usePromise/index.md).
- [usePromiseCallback](https://github.com/eduzz/ui-hooks-promises/blob/master/usePromiseCallback/index.md).
- [usePromiseEffect](https://github.com/eduzz/ui-hooks-promises/blob/master/usePromiseEffect/index.md).
- [usePromisePaginated](https://github.com/eduzz/ui-hooks-promises/blob/master/usePromisePaginated/index.md).
- [usePromiseRefresh](https://github.com/eduzz/ui-hooks-promises/blob/master/usePromiseRefresh/index.md).
- [usePromise](https://github.com/eduzz/ui-antd-hooks/blob/master/usePromise/index.md).
- [usePromiseCallback](https://github.com/eduzz/ui-antd-hooks/blob/master/usePromiseCallback/index.md).
- [usePromiseEffect](https://github.com/eduzz/ui-antd-hooks/blob/master/usePromiseEffect/index.md).
- [usePromisePaginated](https://github.com/eduzz/ui-antd-hooks/blob/master/usePromisePaginated/index.md).
- [usePromiseRefresh](https://github.com/eduzz/ui-antd-hooks/blob/master/usePromiseRefresh/index.md).
36 changes: 22 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,48 +1,56 @@
{
"name": "@eduzz/ui-hooks-promises",
"name": "@eduzz/ui-antd-hooks",
"description": "Eduzz Hooks: Promises",
"version": "0.0.4",
"keywords": ["promise", "react-hooks", "hooks", "react", "eduzz"],
"keywords": [
"antd",
"react-hooks",
"hooks",
"react",
"eduzz"
],
"main": "./index.js",
"types": "./index.d.ts",
"author": "Eduzz Team",
"license": "MIT",
"private": false,
"homepage": "https://github.com/eduzz/ui-hooks-promises",
"homepage": "https://github.com/eduzz/ui-antd-hooks",
"repository": {
"type": "git",
"url": "https://github.com/eduzz/ui-hooks-promises"
"url": "https://github.com/eduzz/ui-antd-hooks"
},
"bugs": {
"url": "https://github.com/eduzz/ui-hooks-promises/issues"
"url": "https://github.com/eduzz/ui-antd-hooks/issues"
},
"scripts": {
"clean": "git add . && git clean -fdx . -e node_modules",
"prebuild": "yarn clean && yarn lint",
"build": "yarn tsc -p tsconfig.json",
"lint": "eslint . --ext js,ts,tsx"
"lint": "eslint . --ext ts,tsx",
"update-deps": "yarn ncu -u"
},
"dependencies": {
"lodash-es": "^4"
},
"devDependencies": {
"@eduzz/eslint-config": "^0.0.3",
"@eduzz/eslint-config": "^1.0.0",
"@types/lodash-es": "^4",
"@types/react-dom": "^18.2.6",
"@types/react": "^18.2.14",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"@types/react-dom": "^18.2.6",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.44.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-eslint-plugin": "^5.1.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-prettier": "^4",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-unused-imports": "^2.0.0",
"eslint": "^8.44.0",
"npm-check-updates": "^16.10.15",
"prettier": "^2",
"react-dom": "^18.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^5.1.6"
}
}
Loading

0 comments on commit ccf27ce

Please sign in to comment.