{"id":13991821,"url":"https://github.com/keithamus/eslint-config-strict","last_synced_at":"2025-09-21T03:31:18.588Z","repository":{"id":32492431,"uuid":"36073014","full_name":"keithamus/eslint-config-strict","owner":"keithamus","description":"ESLint sharable config for strict linting","archived":false,"fork":false,"pushed_at":"2020-05-24T20:05:48.000Z","size":253,"stargazers_count":26,"open_issues_count":3,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-03T03:42:07.805Z","etag":null,"topics":["best-practices","code-style","eslint","eslint-config","eslint-rules","javascript","linter-config","shareable-configs"],"latest_commit_sha":null,"homepage":"","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/keithamus.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":"2015-05-22T13:12:33.000Z","updated_at":"2023-12-15T10:20:25.000Z","dependencies_parsed_at":"2022-08-29T02:30:47.654Z","dependency_job_id":null,"html_url":"https://github.com/keithamus/eslint-config-strict","commit_stats":null,"previous_names":[],"tags_count":42,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keithamus%2Feslint-config-strict","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keithamus%2Feslint-config-strict/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keithamus%2Feslint-config-strict/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keithamus%2Feslint-config-strict/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keithamus","download_url":"https://codeload.github.com/keithamus/eslint-config-strict/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233705878,"owners_count":18717202,"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":["best-practices","code-style","eslint","eslint-config","eslint-rules","javascript","linter-config","shareable-configs"],"created_at":"2024-08-09T14:01:36.907Z","updated_at":"2025-09-21T03:31:13.220Z","avatar_url":"https://github.com/keithamus.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# eslint-config-strict\n\n\n\nESLint sharable config for strict linting.\n\n## Rules\n\nEvery rule is documented, justified, and has examples within the [rules](./rules) folder. If you feel like a rule is wrong, take a read of this file, or refer others to it!\n\n## Installation\n\nInstall this config package and ESLint:\n\n```bash\n$ npm install --save-dev eslint-config-strict\n```\n\nIf you're using npm \u003c v3 you'll also need to install all of the dependencies of this project:\n\n```bash\n$ npm install --save-dev eslint eslint-plugin-filenames\n```\n\nIf you use React, also have a look at the [`eslint-config-strict-react`](https://github.com/keithamus/eslint-config-strict-react) plugin.\n\n## Usage\n\nThis set of configs is meant to be extended on a per-project basis as necessary\nusing ESLint's [shareable configs][] feature.\n\nTo start, you probably want to use pick either `strict/es6` or `strict/es5` (note:\n `strict` can be used as an alias for `strict/es6`). You can then layer additional\n rulesets on top using eslint, the additive rules are:\n\nThis package includes the following configurations:\n\n- `strict/mocha` (adds `env.mocha` true, `assert`, `expect`, `must` and `should` are\n   added as globals, and `func-names`, `padded-blocks` and `max-nested-callbacks` rules\n   are explicitly turned off)\n- `strict/browser` (simply sets `env.browser` to true)\n- `strict/d3` (relaxes strict identifier rules, allowing for identifiers like `d3`, `d`, `dx`, `dy`)\n- `strict/babel` (for use with the [`eslint-plugin-babel`](https://github.com/babel/eslint-plugin-babel) plugin) \n\n### How to use\n\nSimply define your `.eslintrc` (or add a `eslintConfig` object to `package.json`)\nlike so:\n\n```json\n{\n  \"extends\": [\"strict\"]\n}\n```\n\nAdd any additional plugins you want, for example:\n\n```json\n{\n  \"extends\": [\"strict\", \"strict/browser\"]\n}\n```\n\n\nAlso, you can define a `test/.eslintrc` to override the projects main one:\n\n```json\n{\n  \"extends\": [\"strict\", \"strict/browser\", \"strict/mocha\"]\n}\n```\n\nIf your project is a front-end project and you're not transpiling ES6 code, you\nmight have an `.eslintrc` that looks like this:\n\n```json\n{\n  \"extends\": [\"strict/es5\", \"strict/browser\"]\n}\n```\n\nFeel free to define additional globals or rules, or override them as you see fit:\n\n```json\n{\n  \"extends\": [\"strict\"],\n\n  \"globals\": {\n    \"blarg\": true\n  },\n\n  \"rules\": {\n      \"eol-last\": 0\n  }\n}\n```\n\nFor more details about how shareable configs work, see the\n[ESLint documentation][extend].\n\n[shareable configs]: http://eslint.org/docs/developer-guide/shareable-configs\n[extend]: http://eslint.org/docs/user-guide/configuring#extending-configuration-files\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeithamus%2Feslint-config-strict","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeithamus%2Feslint-config-strict","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeithamus%2Feslint-config-strict/lists"}