{"id":18613054,"url":"https://github.com/eduzz/eslint-config","last_synced_at":"2025-04-10T23:31:51.260Z","repository":{"id":178693018,"uuid":"662232567","full_name":"eduzz/eslint-config","owner":"eduzz","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-12T21:15:47.000Z","size":139,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-29T21:04:03.649Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eduzz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-04T16:41:32.000Z","updated_at":"2024-08-12T21:15:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"48adba61-7dfe-4aa6-9f57-601fdf1fbed4","html_url":"https://github.com/eduzz/eslint-config","commit_stats":null,"previous_names":["eduzz/eslint-config"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduzz%2Feslint-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduzz%2Feslint-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduzz%2Feslint-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduzz%2Feslint-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eduzz","download_url":"https://codeload.github.com/eduzz/eslint-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223450446,"owners_count":17147105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T03:19:42.458Z","updated_at":"2024-11-07T03:19:43.096Z","avatar_url":"https://github.com/eduzz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ESLint Config\n\nConfiguração padrão do eslint para os projetos da Eduzz.\n\n## Instalação\n\n```sh\nyarn add --dev @eduzz/eslint-config\n```\n\n1. `eslint.config.js`\n```js\nconst { ignores, configs } = require('@eduzz/eslint-config'); // Javascript / Typescript / Node\nconst { ignores, configs } = require('@eduzz/eslint-config/react'); // React\nconst { ignores, configs } = require('@eduzz/eslint-config/react-native'); // React Native\n\n/** @type import('eslint').Linter.Config[] */\nmodule.exports = [...configs, { ignores: ignores() }];\n```\n2. `.prettierrc.js`\n```js\nmodule.exports = {\n  ...require('@eduzz/eslint-config/.prettierrc')\n};\n```\n\n## Configurações Extras\n\n### Ignore\n\nPor padrão todos os arquivos do `.gitignore` já são removidos, caso queira adicionar mais:\n\n```js\n/** @type import('eslint').Linter.Config[] */\nmodule.exports = [...configs, { ignores: ignores('**/ignore/**.js', 'ignore.js') }];\n```\n\n### Custom Rules\n\nCaso queira adicionar/remover alguma rule basta adicionar `rules` na última config:\n```js\n/** @type import('eslint').Linter.Config[] */\nmodule.exports = [\n  ...configs, \n  {\n    ignores: ignores(),\n    rules: {\n      '@typescript-eslint/no-unused-vars': ['off']\n    }\n  }\n];\n```\n\n\n### VSCode\n\n- Adicione a extensão do [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint).\n  **SUGERIMOS DESISTALAR OU DESATIVAR A EXTENSÃO DO PRETTIER POIS O ESLINT QUE APLICARÁ O PRETTIER.**\n\n- Crie/Adicione no .vscode/settings.json (não na suas configurações, pois assim ficará no projeto e o time já terá acesso):\n\n```json\n{\n  //... suas configurações\n  \"editor.codeActionsOnSave\": {\n    \"source.organizeImports\": false,\n    \"source.fixAll.eslint\": true\n  },\n  \"eslint.validate\": [\"javascript\", \"javascriptreact\", \"typescript\", \"typescriptreact\"],\n  \"editor.formatOnPaste\": false,\n  \"editor.formatOnSave\": false,\n  \"editor.formatOnType\": false,\n  \"editor.tabSize\": 2\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feduzz%2Feslint-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feduzz%2Feslint-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feduzz%2Feslint-config/lists"}