{"id":17809285,"url":"https://github.com/codfish/eslint-config-codfish","last_synced_at":"2025-03-17T16:30:45.710Z","repository":{"id":49986661,"uuid":"161969438","full_name":"codfish/eslint-config-codfish","owner":"codfish","description":"ESList configuration I use in personal and work projects. Airbnb w/ prettier, supports react \u0026 non-react, docker \u0026 dApps.","archived":false,"fork":false,"pushed_at":"2022-08-12T18:42:14.000Z","size":82,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-28T01:37:53.483Z","etag":null,"topics":["eslint","eslint-config","eslint-config-airbnb","linter-config","linting","prettier","react"],"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/codfish.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-16T05:02:15.000Z","updated_at":"2022-08-10T01:50:13.000Z","dependencies_parsed_at":"2022-08-12T20:50:56.208Z","dependency_job_id":null,"html_url":"https://github.com/codfish/eslint-config-codfish","commit_stats":null,"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codfish%2Feslint-config-codfish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codfish%2Feslint-config-codfish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codfish%2Feslint-config-codfish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codfish%2Feslint-config-codfish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codfish","download_url":"https://codeload.github.com/codfish/eslint-config-codfish/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243871357,"owners_count":20361338,"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","eslint-config-airbnb","linter-config","linting","prettier","react"],"created_at":"2024-10-27T15:16:19.253Z","updated_at":"2025-03-17T16:30:45.377Z","avatar_url":"https://github.com/codfish.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-config-codfish\n\n\u003e Opinionated ESLint configuration that extends airbnb to not conflict with prettier.\n\n[![version](https://img.shields.io/npm/v/eslint-config-codfish.svg)](http://npm.im/eslint-config-codfish)\n[![downloads](https://img.shields.io/npm/dm/eslint-config-codfish.svg)](http://npm-stat.com/charts.html?package=eslint-config-codfish\u0026from=2015-08-01)\n[![MIT License](https://img.shields.io/npm/l/eslint-config-codfish.svg)](http://opensource.org/licenses/MIT)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n\n## Features\n\n- Uses [Airbnb's config](https://github.com/airbnb/javascript/tree/master/packages) as the\n  foundation.\n- Leverages [prettier's eslint plugin](https://github.com/prettier/eslint-plugin-prettier), which\n  run's prettier within ESLint, and overrides ESLint/Airbnb rules that may conflict with Prettier.\n- Supports both React \u0026 non-React applications dynamically based on your project's dependencies.\n- Supports linting TypeScript (`.ts` and `.tsx` files) dynamically based on your project's\n  dependencies.\n- Extends\n  [Kent C Dodd's Jest config](https://github.com/kentcdodds/eslint-config-kentcdodds/blob/main/jest.js)\n  dynamically based on your project's dependencies.\n- Enforces js instead of jsx files.\n- Turns off `import/no-unresolved` errors for node modules in projects using Docker, to avoid false\n  positives.\n- Helpful opt-in config for dApp's.\n\n## Usage\n\nInstall by running:\n\n```sh\nnpx install-peerdeps eslint-config-codfish\n```\n\n[My preferred setup](https://gist.github.com/codfish/91ef26f3a56a5c5ca0912aa8c0c5c020) includes\ntools like husky, lint-staged \u0026 commitlint in addition to prettier \u0026 eslint. However that's\noptional.\n\nThen add the extends to your .eslintrc:\n\n```js\nmodule.exports = {\n  extends: ['codfish'],\n  rules: {\n    // your overrides here\n  },\n};\n```\n\nOptionally add a .prettierrc.js configuration file:\n\n```js\nmodule.exports = {\n  printWidth: 100,\n  tabWidth: 2,\n  useTabs: false,\n  semi: true,\n  singleQuote: true,\n  trailingComma: 'all',\n  bracketSpacing: true,\n  jsxBracketSameLine: false,\n  proseWrap: 'always',\n};\n```\n\n### With dApps\n\nSimilar to the issues with docker, there may be rules you want to adjust for dApp's. This config\nwill set some globals as well as ignore missing build artifact imports. While you obviously need\nthose to run your app, sometimes you might want to run the linter in a ci/cd environment and build\nartifacts might not be present.\n\n**Note**: The dApp config also includes the `import/no-unresolved` rule found in the docker config.\n\n```js\nmodule.exports = {\n  extends: ['codfish', 'codfish/dapp'],\n  rules: {\n    // your overrides here\n  },\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodfish%2Feslint-config-codfish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodfish%2Feslint-config-codfish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodfish%2Feslint-config-codfish/lists"}