{"id":20332595,"url":"https://github.com/socialengine/eslint-config","last_synced_at":"2026-06-08T15:31:31.512Z","repository":{"id":57229192,"uuid":"53387714","full_name":"SocialEngine/eslint-config","owner":"SocialEngine","description":"ESLint Configs by SocialEngine used in our JavaScript Projects","archived":false,"fork":false,"pushed_at":"2016-06-15T04:13:22.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-27T22:12:18.214Z","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/SocialEngine.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":"2016-03-08T06:17:31.000Z","updated_at":"2016-03-22T20:39:34.000Z","dependencies_parsed_at":"2022-09-14T14:50:23.272Z","dependency_job_id":null,"html_url":"https://github.com/SocialEngine/eslint-config","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SocialEngine%2Feslint-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SocialEngine%2Feslint-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SocialEngine%2Feslint-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SocialEngine%2Feslint-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SocialEngine","download_url":"https://codeload.github.com/SocialEngine/eslint-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241852094,"owners_count":20030966,"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-14T20:27:27.037Z","updated_at":"2026-06-08T15:31:31.482Z","avatar_url":"https://github.com/SocialEngine.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-config-socialengine\n\n[![](http://img.shields.io/npm/v/eslint-config-socialengine.svg)](https://npmjs.org/package/eslint-config-socialengine)\n[![](https://api.travis-ci.org/SocialEngine/eslint-config.svg?branch=master)](https://travis-ci.org/SocialEngine/eslint-config)\n\nA composable set of ESLint configurations used by [SocialEngine](https://www.socialengine.com) to unify code style and \nlinting rules.\n\n***\n\n## Installation\n\nInstall this config package and ESLint:\n\n```bash\n$ npm install --save-dev eslint eslint-config-socialengine eslint@~2.2.0\n```\n\n## Usage\n\n### Full Configurations\n\nThis package includes the following complete and ready to use configurations:\n\n- `es5-node` - ES5 style node-optimized config\n- `es5-react` - ES5 (old school) style react-optimized config\n- `es5` - Plain old ES5\n- `es6-react` - `babel-eslint` powered es6 react-optimized config\n\n###### Dependencies\n\n- Any React config (`\u003cprefix\u003e-react`) - [eslint-plugin-react](https://www.npmjs.com/package/eslint-plugin-react)\n- Any ES6 config (`es6-\u003csuffix\u003e`) - [babel-eslint](https://github.com/babel/babel-eslint)\n\nTo consume and extend a config in ESLint just add the extends attribute to your `.eslintrc`. For\nmore details about how shareable configs work, see the\n[ESLint documentation](http://eslint.org/docs/developer-guide/shareable-configs).\n\n```json\n{\n  \"extends\": [\n    \"socialengine/es5-node\"\n  ] \n}\n```\n\nMultiple is allowed:\n```json\n{\n  \"extends\": [\n    \"socialengine/es5-node\",\n    \"socialengine/rules/mocha\"\n  ] \n}\n```\n\n**NOTE:** Extending multiple complete configs can cause unexpected results, if you need to do this you should consider a piecemeal config as explained below.\n\n### Piecemeal Configurations\n\nESLint configuration is broken apart in `./rules` containing ESLint's rules and rules for specific ESLint plugins. The full set of ESLint rules (`./rules/`) are broken into categories that mirror ESLint's documentation.\n\n###### Examples\n\n```json\n{\n  \"extends\": [\n    \"socialengine/rules/best-practicies\",\n    \"socialengine/rules/mocha\"\n  ],\n  \"rules\": {},\n  \"env\": {\n    \"phantomjs\": true\n  }\n}\n```\n\n## Limitations\n\nDue to an issue with ESLint, config extension cannot be called from a globally installed (`npm install -g eslint`) eslint. It can however be run properly using eslint installed directly to your package's `node_modules`. This can be done by either calling it directly (`./node_modules/.bin/eslint .`) or from within an npm script since they automatically check local `node_modules` first. \n\n### This package tracks config in the following versions:\n\n- [ESLint](https://github.com/eslint/eslint) 2.2.0\n- [eslint-plugin-react](https://www.npmjs.com/package/eslint-plugin-react) 4.2.0\n\n## License\n\n[MIT License](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocialengine%2Feslint-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsocialengine%2Feslint-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocialengine%2Feslint-config/lists"}