{"id":21152349,"url":"https://github.com/iamdevlinph/eslint-config-iamdevlinph","last_synced_at":"2025-07-09T10:32:41.195Z","repository":{"id":34329875,"uuid":"177427650","full_name":"iamdevlinph/eslint-config-iamdevlinph","owner":"iamdevlinph","description":"ESLint and Prettier Setup","archived":true,"fork":false,"pushed_at":"2022-02-11T18:18:31.000Z","size":262,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-24T16:56:37.555Z","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/iamdevlinph.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}},"created_at":"2019-03-24T14:43:30.000Z","updated_at":"2024-12-09T23:30:02.000Z","dependencies_parsed_at":"2022-08-08T00:16:14.339Z","dependency_job_id":null,"html_url":"https://github.com/iamdevlinph/eslint-config-iamdevlinph","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/iamdevlinph/eslint-config-iamdevlinph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamdevlinph%2Feslint-config-iamdevlinph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamdevlinph%2Feslint-config-iamdevlinph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamdevlinph%2Feslint-config-iamdevlinph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamdevlinph%2Feslint-config-iamdevlinph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamdevlinph","download_url":"https://codeload.github.com/iamdevlinph/eslint-config-iamdevlinph/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamdevlinph%2Feslint-config-iamdevlinph/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263776015,"owners_count":23509636,"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-20T10:38:37.123Z","updated_at":"2025-07-09T10:32:40.906Z","avatar_url":"https://github.com/iamdevlinph.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ESLint and Prettier Configuration\n\nESLint and Prettier Configuration I use on VS Code. Inspired by [wesbos'](https://github.com/wesbos/eslint-config-wesbos)\n\nWorks on:\n- React\n- styled-components in react\n\n## Installation\n1. Make sure your project already has a `package.json`, if not create one using `npm init`.\n\n2. Install dependencies needed by the config.\n```\nnpx install-peerdeps --dev eslint-config-iamdevlinph\n```\n\nNote: If you're using yarn, `npx` will ask if you want to use it for the installation. At least on `npm -v 6.4.1`.\n\n\n3. Some dependencies will be added to your `devDependencies`.\n\n4. Create a `.eslintrc` file in the root of your project.\n```\n{\n  \"extends\": [\n    \"iamdevlinph\"\n  ]\n}\n```\nOr `.eslintrc.js`\n```\nmodule.exports = {\n  \"extends\": [\n    \"iamdevlinph\"\n  ],\n};\n```\n\n5. Customize the configuration.\n```\n{\n  \"extends\": [\n    \"iamdevlinph\n  ],\n  \"rules\": {\n    \"react/jsx-filename-extension\": 0,\n    \"import/prefer-default-export\": 0\n  },\n  \"globals\": {\n    \"firebase\": true,\n    \"window\": true\n  },\n}\n\n```\n\n6. Add some scripts to your `package.json`.\n```\n\"scripts\": {\n  \"lint\": \"eslint .\",\n  \"lint:fix\": \"eslint . --fix\"\n}\n```\n\n7. Create a `.eslintignore` beside `.eslintrc` and ignore the usual folders\n```\n**/node_modules/*\n```\n\n## Using with VS Code\n1. Install [ESLint extension](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n2. Press `Ctrl + ,` to open your `settings.json` then click on the `{}` on the upper right corner to enter the `.json` format.\n\n![settings.json](./settings-json.jpg)\n\nAnd copy the settings below:\n```\n\"editor.formatOnSave\": true,\n\"eslint.autoFixOnSave\": true,\n\"[javascript]\": {\n  \"editor.formatOnSave\": false\n},\n\"[javascriptreact]\": {\n  \"editor.formatOnSave\": false\n},\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamdevlinph%2Feslint-config-iamdevlinph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamdevlinph%2Feslint-config-iamdevlinph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamdevlinph%2Feslint-config-iamdevlinph/lists"}