{"id":19438023,"url":"https://github.com/labnol/eslint-config-labnol","last_synced_at":"2025-04-24T21:32:40.633Z","repository":{"id":57228531,"uuid":"321597956","full_name":"labnol/eslint-config-labnol","owner":"labnol","description":"ESLint and Prettier configuration for Digital Inspiration projects","archived":false,"fork":false,"pushed_at":"2022-01-08T06:19:25.000Z","size":450,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T12:02:22.228Z","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/labnol.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":"2020-12-15T08:13:46.000Z","updated_at":"2024-11-29T09:45:23.000Z","dependencies_parsed_at":"2022-09-13T01:32:08.842Z","dependency_job_id":null,"html_url":"https://github.com/labnol/eslint-config-labnol","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labnol%2Feslint-config-labnol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labnol%2Feslint-config-labnol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labnol%2Feslint-config-labnol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labnol%2Feslint-config-labnol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/labnol","download_url":"https://codeload.github.com/labnol/eslint-config-labnol/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250713172,"owners_count":21475140,"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-10T15:16:33.393Z","updated_at":"2025-04-24T21:32:40.354Z","avatar_url":"https://github.com/labnol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-config-labnol\n\nESLint and Prettier configuration for [Digital Inspiration](https://digitalinspiration.com/) projects\n\n## Installation\n\n```sh\nnpm install --save-dev eslint-config-labnol\n```\n\n## Usage\n\nThen add the extends to your `.eslintrc.js` file:\n\nThe ESLint rules go directly under \"rules\" while prettier options go under \"prettier/prettier\". Note that prettier rules overwrite anything in my config (trailing comma, and single quote), so you'll need to include those as well.\n\n```js\nmodule.exports = {\n  extends: 'labnol',\n  rules: {\n    'no-debugger': 'off',\n    'no-await-in-loop': 'warning',\n    'prettier/prettier': [\n      'error',\n      {\n        printWidth: 120,\n        trailingComma: 'es5',\n        singleQuote: true,\n      },\n    ],\n  },\n};\n```\n\n## ESlint and Prettier in VS Code\n\nUpdate your VS Code settings to run the linter action on saving the file.\n\n```json\n{\n  \"editor.formatOnSave\": true,\n  \"editor.defaultFormatter\": \"esbenp.prettier-vscode\",\n  \"[javascript]\": {\n    \"editor.formatOnSave\": false\n  },\n  \"editor.codeActionsOnSave\": {\n    \"source.fixAll.eslint\": true,\n    \"source.organizeImports\": true\n  },\n  \"files.autoSave\": \"onFocusChange\",\n  \"eslint.validate\": [\"javascript\", \"javascriptreact\"]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabnol%2Feslint-config-labnol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flabnol%2Feslint-config-labnol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabnol%2Feslint-config-labnol/lists"}