{"id":15013497,"url":"https://github.com/quavedev/eslint-config","last_synced_at":"2025-04-12T04:45:02.609Z","repository":{"id":42749532,"uuid":"150124426","full_name":"quavedev/eslint-config","owner":"quavedev","description":"group of eslint and prettier configurations to make your Meteor application organized in a standard way","archived":false,"fork":false,"pushed_at":"2024-10-06T22:05:43.000Z","size":199,"stargazers_count":2,"open_issues_count":2,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-12T04:44:51.728Z","etag":null,"topics":["eslint","meteor"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/quavedev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-24T15:24:53.000Z","updated_at":"2024-10-06T22:05:46.000Z","dependencies_parsed_at":"2024-01-08T22:26:04.500Z","dependency_job_id":"b7be8b2f-57f4-404b-ada4-c05d7fcf2df9","html_url":"https://github.com/quavedev/eslint-config","commit_stats":{"total_commits":37,"total_committers":5,"mean_commits":7.4,"dds":0.6756756756756757,"last_synced_commit":"9f229caa04784a4ed4f0dfa4dee42b80b4bb63fc"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quavedev%2Feslint-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quavedev%2Feslint-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quavedev%2Feslint-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quavedev%2Feslint-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quavedev","download_url":"https://codeload.github.com/quavedev/eslint-config/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248519473,"owners_count":21117757,"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":["eslint","meteor"],"created_at":"2024-09-24T19:44:21.579Z","updated_at":"2025-04-12T04:45:02.565Z","avatar_url":"https://github.com/quavedev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @quave/eslint-config-quave\n\n[![npm version](https://badge.fury.io/js/@quave%2Feslint-config-quave.svg)](https://badge.fury.io/js/@quave%2Feslint-config-quave)\n\n`@quave/eslint-config-quave` is a group of eslint and prettier configurations to make your Meteor application organized in a standard way.\n\n## Why\n\nWe believe applications should be organized and checked before every commit.\n\nWe believe we are not reinventing the wheel in this package but what we are doing is like putting together the wheels in the vehicle :).\n\n## Installation\n\nInstall the npm dependency\n```sh\nnpm i -D @quave/eslint-config-quave\n```\n\nAdd to the root of your package.json\n\n```json\n  \"eslintConfig\": {\n    \"extends\": [\n      \"@quave/quave\"\n    ]\n  },\n```\n\nCreate in the root of your project `prettier.config.js` file and paste this\n\n```javascript\nmodule.exports = require('@quave/eslint-config-quave/prettier.config');\n```\n\nCreate in the root of your project `.prettierignore` file and paste this\n\n`.meteor`\n\n### Script examples\n\nSet the custom commands if you want to run eslint or prettier manually or both. Add this to your `package.json`\n```json\n  {\n    \"scripts\": {\n      \"quave-eslint\": \"eslint . --fix\",\n      \"quave-prettier\": \"prettier --write \\\"**/*.js\\\"\",\n      \"quave-check\": \"npm run quave-eslint \u0026\u0026 npm run quave-prettier\"\n    }\n  }\n```\n\nIf you have jsx files as well, you can use:\n```json\n  \"quave-prettier\": \"prettier --write \\\"**/*.js\\\" \\\"**/*.jsx\\\"\",\n```\n\n## Automatic check before commit\n\nAutomatic check your changed files before every commit.\n\nInstall lefthook:\n\n```bash\nnpm i -D lefthook\n```\n\nthen create a file called `lefthook.yml` in the root of your project and paste this:\n\n```yaml\npre-commit:\n  commands:\n    quave-check:\n      run: npm run quave-check\n    update-index:\n      run: git update-index --again\n ```\n\n\u003e In the past we used husky but lefthook is much better in terms of dependency and speed.\n\n## Limitations\n\nWe consider an error `console.log` but in some cases you want to use it, then you should disable for the next line and use it.\n```javascript\n// eslint-disable-next-line no-console\nconsole.log('Important log...');\n```\n\n### License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquavedev%2Feslint-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquavedev%2Feslint-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquavedev%2Feslint-config/lists"}