Skip to content

Commit

Permalink
set lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Luiz Barrile committed Nov 6, 2024
1 parent 436cf85 commit b37b8be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@
"plugin:storybook/recommended"
],
"rules": {
"prettier/prettier": "error",
"prettier/prettier": ["error", { "endOfLine": "auto" }],
"react-hooks/rules-of-hooks": "off",
"react-hooks/exhaustive-deps": "off"
},
"linterOptions": {
"reportUnusedDisableDirectives": true
}
}
5 changes: 3 additions & 2 deletions .github/workflows/eslint-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ jobs:
run: |
cp .env.example .env # Copia .env.example para .env para uso local, se necessário
- name: Install dependencies
- name: Install dependencies and update ESLint packages
run: |
npm install
npm install
npm install eslint@latest eslint-config-next@latest eslint-plugin-prettier@latest eslint-plugin-react-hooks@latest
- name: Run ESLint
run: |
Expand Down

0 comments on commit b37b8be

Please sign in to comment.