{"id":13708173,"url":"https://github.com/instantcommerce/eslint-config-instant","last_synced_at":"2026-01-27T23:53:57.023Z","repository":{"id":38172527,"uuid":"284810654","full_name":"instantcommerce/eslint-config-instant","owner":"instantcommerce","description":"Shareable config for eslint with prettier integrated","archived":false,"fork":false,"pushed_at":"2023-07-20T14:16:02.000Z","size":878,"stargazers_count":8,"open_issues_count":6,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-13T17:45:53.998Z","etag":null,"topics":["eslint"],"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/instantcommerce.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-03T21:26:37.000Z","updated_at":"2023-09-29T16:02:19.000Z","dependencies_parsed_at":"2024-11-13T17:34:36.191Z","dependency_job_id":"cbe9d55a-c1b1-479e-8594-54148586b385","html_url":"https://github.com/instantcommerce/eslint-config-instant","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instantcommerce%2Feslint-config-instant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instantcommerce%2Feslint-config-instant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instantcommerce%2Feslint-config-instant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instantcommerce%2Feslint-config-instant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/instantcommerce","download_url":"https://codeload.github.com/instantcommerce/eslint-config-instant/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225911779,"owners_count":17544036,"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"],"created_at":"2024-08-02T22:01:58.106Z","updated_at":"2026-01-25T01:05:28.441Z","avatar_url":"https://github.com/instantcommerce.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# ⚙️ eslint-config-instant\n\nA shareable eslint config used in projects created by Instant Commerce. The eslint config relies on several eslint plugins and implements prettier as a rule set.\n\n## Installation\n\nStart by removing any .eslintrc or .prettierrc files in your project. (**Note that eslintignore and prettierignore are still needed per project**)\n\nOnce done, drop the following line in your favorite terminal:\n\nFor frontend:\n```bash\nyarn add -D eslint-config-instant eslint eslint-config-prettier eslint-plugin-jsx-a11y eslint-plugin-prettier eslint-plugin-react eslint-plugin-import eslint-import-resolver-alias eslint-plugin-react-hooks eslint-plugin-mdx prettier\n```\n\nFor backend:\n```bash\nyarn add -D eslint eslint-config-prettier eslint-import-resolver-alias eslint-plugin-import eslint-plugin-prettier\n```\n\nFinally add this to your package.json\nVarious available packages are:\n\n- instant\nFor libraries/packages/etc where /react or /backend is overkill\n\n```js\n\"eslintConfig\": {\n  \"extends\": [\n    \"instant\"\n  ]\n},\n```\n\n- instant/react\nFor all things frontend\n\n```js\n\"eslintConfig\": {\n  \"extends\": [\n    \"instant/react\"\n  ]\n},\n```\n\n- instant/backend\nFor all things backend\n\n```js\n\"eslintConfig\": {\n  \"extends\": [\n    \"instant/backend\"\n  ]\n},\n```\n\n## formatOnSave With VS Code\n\nOnce you have installed the eslint-config, you probably want your editor to lint and fix for you.\nHere are the instructions for VS Code:\n\n1. Install the [ESLint package](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n2. Now we need to setup some VS Code settings via `Code/File` → `Preferences` → `Settings`. It's easier to enter these settings while editing the `settings.json` file, so click the `{}` icon in the top right corner:\n\n```js\n// These are all my auto-save configs\n\"editor.formatOnSave\": true,\n// turn it off for JS and JSX, we will do this via eslint\n\"[javascript]\": {\n\"editor.formatOnSave\": false\n},\n\"[javascriptreact]\": {\n\"editor.formatOnSave\": false\n},\n// tell the ESLint plugin to run on save\n\"editor.codeActionsOnSave\": {\n\"source.fixAll\": true\n},\n// Optional BUT IMPORTANT: If you have the prettier extension enabled for other languages like CSS and HTML, turn it off for JS since we are doing it through Eslint already\n\"prettier.disableLanguages\": [\"javascript\", \"javascriptreact\"],\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finstantcommerce%2Feslint-config-instant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finstantcommerce%2Feslint-config-instant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finstantcommerce%2Feslint-config-instant/lists"}