{"id":18623558,"url":"https://github.com/codica2/eslint-config-codica","last_synced_at":"2025-04-11T03:31:43.940Z","repository":{"id":34720090,"uuid":"182992117","full_name":"codica2/eslint-config-codica","owner":"codica2","description":"This package provides Codica's .eslintrc as an extensible shared config.","archived":false,"fork":false,"pushed_at":"2023-04-27T12:35:56.000Z","size":196,"stargazers_count":6,"open_issues_count":4,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-26T16:42:03.482Z","etag":null,"topics":["eslint","eslint-config","prettier","prettier-eslint"],"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/codica2.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-23T10:32:18.000Z","updated_at":"2024-02-03T11:30:53.000Z","dependencies_parsed_at":"2024-11-07T04:30:52.852Z","dependency_job_id":"9079dc83-9228-4227-bb7a-9ae54e711f27","html_url":"https://github.com/codica2/eslint-config-codica","commit_stats":{"total_commits":13,"total_committers":3,"mean_commits":4.333333333333333,"dds":0.5384615384615384,"last_synced_commit":"81456d4fc16fb349b760032d45324618b535de3f"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codica2%2Feslint-config-codica","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codica2%2Feslint-config-codica/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codica2%2Feslint-config-codica/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codica2%2Feslint-config-codica/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codica2","download_url":"https://codeload.github.com/codica2/eslint-config-codica/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248335472,"owners_count":21086601,"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","eslint-config","prettier","prettier-eslint"],"created_at":"2024-11-07T04:25:00.236Z","updated_at":"2025-04-11T03:31:38.916Z","avatar_url":"https://github.com/codica2.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-config-codica\n\nThis package provides Codica's .eslintrc as an extensible shared config.\n\n## Usage\n\n## eslint-config-codica\n\n### Install the config via `npm`\n\n```bash\nnpm install eslint-config-codica --save-dev\n```\n\n### or via `yarn`\n\n```bash\nyarn add -D eslint-config-codica\n```\n\n### Extend our config in your `.eslintrc` file:\n\n```json\n{\n  \"extends\": [\"codica\"]\n}\n```\n\nOur config based on [airbnb](https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb) including some rewrites for ES6+ and React with [config-prettier](https://github.com/prettier/eslint-config-prettier) onboard. It requires `eslint`, `eslint-plugin-import`, `eslint-plugin-prettier`, `eslint-plugin-react`, and `eslint-plugin-jsx-a11y`.\n\nTo be sure, that you're using correct version of each package, you can list them by the command:\n\n```bash\nnpm info \"eslint-config-codica@latest\" peerDependencies\n```\n\nIf you don't need a `React` and `Prettier` onboard - `eslint-config-codica-base` and `eslint-config-codica-react` is coming soon!\n\n## Recommendations\n\n### Code formatting with Prettier\n\nThis config includes `eslint-config-prettier` and `eslint-config-prettier/react`. To feel up all advantages of automatic code formatting just add [prettier](https://prettier.io) to your project.\n\n```bash\nyarn add -D prettier\n```\n\nand add `.prettierrc` to your project root with such a config to avoid conflicts with `airbnb` and `prettier` eslint configs.\n\n```json\n{\n  \"singleQuote\": true,\n  \"trailingComma\": \"all\"\n}\n```\n\n### Pre-commit hooks\n\nThe nice way to make your teammates or/and outstuff developers to push only valid and pretty code is to use pre-commit hooks using [lint-staged](https://github.com/okonet/lint-staged) and [husky](https://github.com/typicode/husky).\n\nThe configuration steps is next:\n\n1. Install packages:\n\n```bash\nyarn add -D husky lint-staged\n```\n\n2. Add some configuration to `rc` files or to `package.json` directly:\n\n```json\n{\n  ...\n  \"scripts\": {\n    ...\n    \"lint:write\": \"./node_modules/.bin/eslint --debug . --fix\",\n    \"prettier\": \"./node_modules/.bin/prettier --write ./**/*.js\"\n  },\n  \"lint-staged\": {\n    \"*.(js|jsx)\": [\n      \"yarn lint:write\",\n      \"git add\"\n    ]\n  },\n  \"husky\": {\n    \"hooks\": {\n      \"pre-commit\": \"lint-staged\"\n    }\n  }\n}\n```\n\n3. You are beautiful! Next time you'll try to commit something, husky will hook up your commit and run `eslint` to validate all the new code!\n\n## License\n\neslint-config-codica is Copyright © 2015-2019 Codica. It is released under the [MIT License](https://opensource.org/licenses/MIT).\n\n## About Codica\n\n[![Codica logo](https://www.codica.com/assets/images/logo/logo.svg)](https://www.codica.com)\n\nWe love open source software! See [our other projects](https://github.com/codica2) or [hire us](https://www.codica.com/) to design, develop, and grow your product.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodica2%2Feslint-config-codica","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodica2%2Feslint-config-codica","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodica2%2Feslint-config-codica/lists"}