{"id":19009138,"url":"https://github.com/gamtiq/eslint-config-guard","last_synced_at":"2025-07-17T17:41:46.464Z","repository":{"id":57228277,"uuid":"73617909","full_name":"gamtiq/eslint-config-guard","owner":"gamtiq","description":"ESLint configuration files (shareable configs) to guard from problems in different areas of JavaScript development","archived":false,"fork":false,"pushed_at":"2022-11-02T14:52:58.000Z","size":62,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-18T03:35:36.637Z","etag":null,"topics":["config","configuration","development","es2015","es6","eslint","eslint-config","eslintconfig","esnext","guard","javascript-development","node","nodejs","optimum","prevent","protect","react","shareable-configs","style","validate"],"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/gamtiq.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","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":"2016-11-13T13:35:26.000Z","updated_at":"2022-06-08T15:13:04.000Z","dependencies_parsed_at":"2023-01-21T12:00:08.906Z","dependency_job_id":null,"html_url":"https://github.com/gamtiq/eslint-config-guard","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamtiq%2Feslint-config-guard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamtiq%2Feslint-config-guard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamtiq%2Feslint-config-guard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamtiq%2Feslint-config-guard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gamtiq","download_url":"https://codeload.github.com/gamtiq/eslint-config-guard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232126171,"owners_count":18476190,"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":["config","configuration","development","es2015","es6","eslint","eslint-config","eslintconfig","esnext","guard","javascript-development","node","nodejs","optimum","prevent","protect","react","shareable-configs","style","validate"],"created_at":"2024-11-08T19:06:45.471Z","updated_at":"2025-01-01T21:13:23.571Z","avatar_url":"https://github.com/gamtiq.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-config-guard\r\n\r\nSet of configuration files ([shareable configs](https://eslint.org/docs/developer-guide/shareable-configs))\r\nfor [ESLint](https://eslint.org) to guard/protect from problems in different areas of JavaScript development.\r\n\r\nIncludes:\r\n\r\n* `guard` - contains rules for possible errors, best practices, strict mode and variables; extends `eslint:recommended`;\r\n* `guard/editor` - rules corresponding to editor preferences (like [`editorconfig`](https://editorconfig.org/))\r\n    such as `eol-last`, `linebreak-style`, `no-trailing-spaces`;\r\n* `guard/esnext` - configuration for ECMAScript 6/2015+ features;\r\n* `guard/indent` - configuration of `indent` rule;\r\n* `guard/jsdoc` - contains rules related to [JSDoc](https://jsdoc.app/);\r\n* `guard/no-prettier` - adds `\"prettier/prettier\": \"off\"` to rules; can be helpful to use with [TSDX](https://github.com/jaredpalmer/tsdx);\r\n* `guard/node` - configuration related to Node.js and CommonJS;\r\n* `guard/proper-arrows` - configuration for stylistic rules related to arrow functions (see [`@getify/eslint-plugin-proper-arrows`](https://github.com/getify/eslint-plugin-proper-arrows));\r\n* `guard/react` - configuration for React and JSX; extends [`plugin:react/recommended`](https://github.com/yannickcr/eslint-plugin-react);\r\n* `guard/style` - rules for stylistic issues;\r\n* `guard/test` - appropriate for use in tests (relaxes some rules from other configs);\r\n* `guard/test-jest` - appropriate for use in [Jest](https://jestjs.io/) tests; extends `guard/test`;\r\n* `guard/test-mocha` - appropriate for use in [Mocha](https://mochajs.org/) tests; extends `guard/test`;\r\n\r\nThe following files are combined configs which extend other configs:\r\n\r\n* `guard/ext-style` - extends `guard/indent` and `guard/style`;\r\n* `guard/optimum` - extends `guard` and `guard/ext-style`;\r\n* `guard/optimum-next` - extends `guard/optimum` and `guard/esnext`.\r\n\r\nSee [eslint-config-ts-guard](https://github.com/gamtiq/eslint-config-ts-guard) for configuration files related to TypeScript.\r\n\r\n## Installation\r\n\r\n    npm install eslint-config-guard --save-dev\r\n\r\nIf you are going to use `guard/node` you should install [`eslint-plugin-node`](https://github.com/mysticatea/eslint-plugin-node):\r\n\r\n    npm install eslint-plugin-node --save-dev\r\n\r\nIf you are going to use `guard/proper-arrows` you should install [`@getify/eslint-plugin-proper-arrows`](https://github.com/getify/eslint-plugin-proper-arrows):\r\n\r\n    npm install @getify/eslint-plugin-proper-arrows --save-dev\r\n\r\nIf you are going to use `guard/react` you should install [`eslint-plugin-react`](https://github.com/yannickcr/eslint-plugin-react):\r\n\r\n    npm install eslint-plugin-react --save-dev\r\n\r\n## Usage\r\n\r\nIn a `.eslintrc.json` file:\r\n\r\n```json\r\n{\r\n    \"extends\": [\r\n        \"guard\",\r\n        \"guard/node\"\r\n    ]\r\n}\r\n```\r\n\r\nIn a `package.json`:\r\n\r\n```json\r\n{\r\n    \"eslintConfig\": {\r\n        \"extends\": [\r\n            \"guard/optimum-next\",\r\n            \"guard/proper-arrows\",\r\n            \"guard/react\"\r\n        ]\r\n    }\r\n}\r\n```\r\n\r\n## License\r\nCopyright (c) 2016-2022 Denis Sikuler  \r\nLicensed under the MIT license.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgamtiq%2Feslint-config-guard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgamtiq%2Feslint-config-guard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgamtiq%2Feslint-config-guard/lists"}