{"id":18406149,"url":"https://github.com/nodebb/eslint-config-nodebb","last_synced_at":"2025-09-04T05:37:55.525Z","repository":{"id":46036188,"uuid":"394003905","full_name":"NodeBB/eslint-config-nodebb","owner":"NodeBB","description":"ESLint configuration for NodeBB Core, plugins, and themes","archived":false,"fork":false,"pushed_at":"2025-07-21T14:36:33.000Z","size":93,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-07-21T16:39:09.796Z","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/NodeBB.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-08-08T15:51:16.000Z","updated_at":"2025-07-21T14:36:11.000Z","dependencies_parsed_at":"2025-06-06T16:25:54.527Z","dependency_job_id":"d94610ca-159a-46ad-afe2-732f9c1f7a14","html_url":"https://github.com/NodeBB/eslint-config-nodebb","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/NodeBB/eslint-config-nodebb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NodeBB%2Feslint-config-nodebb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NodeBB%2Feslint-config-nodebb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NodeBB%2Feslint-config-nodebb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NodeBB%2Feslint-config-nodebb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NodeBB","download_url":"https://codeload.github.com/NodeBB/eslint-config-nodebb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NodeBB%2Feslint-config-nodebb/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268022313,"owners_count":24182849,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-06T03:07:09.175Z","updated_at":"2025-07-31T10:13:21.670Z","avatar_url":"https://github.com/NodeBB.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-config-nodebb\n\nThis package provides NodeBB's .eslintrc for server \u0026 client sides as an extensible shared config.\n\n## Usage\n\nWe export two ESLint configurations for your usage.\nBoth configurations require `eslint` and `eslint-plugin-import`.\n\n### `eslint-config-nodebb`\n\nOur default export is used to lint the backend-side.\nYou should use it at the root of your plugins/themes/etc.\n\nThis config is based on [`airbnb-base`](https://www.npmjs.com/package/eslint-config-airbnb-base) config with some overwritten rules.\n\n1. [Install `peerDependencies`](#Peer-dependencies)\n2. Add `\"extends\": \"nodebb\"` or `\"extends\": \"nodebb/lib\"` to your `.eslintrc`.\n\n### `eslint-config-nodebb/public`\n\nSecond configuration is used to lint the frontend-side.\nYou should use it in the folder with files for client (scripts, acpScripts, etc.).\n\n1. [Install `peerDependencies`](#Peer-dependencies)\n2. Add `\"extends\": \"nodebb/public\"` to your `.eslintrc`.\n\n## Peer dependencies\n\nThis config requires `eslint` and `eslint-plugin-import`.\n\nInstall the correct versions of each package, which are listed by the command:\n\n```sh\nnpm info \"eslint-config-nodebb@latest\" peerDependencies\n```\n\nIf using **npm 5+**, use this shortcut\n\n```sh\nnpx install-peerdeps --dev eslint-config-nodebb\n```\n\nIf using **yarn**, you can also use the shortcut described above if you have npm 5+ installed on your machine, as the command will detect that you are using yarn and will act accordingly.\nOtherwise, run `npm info \"eslint-config-nodebb@latest\" peerDependencies` to list the peer dependencies and versions, then run `yarn add --dev \u003cdependency\u003e@\u003cversion\u003e` for each listed peer dependency.\n\n\nIf using **npm \u003c 5**, Linux/OSX users can run\n\n```sh\n(\n  export PKG=eslint-config-nodebb;\n  npm info \"$PKG@latest\" peerDependencies --json | command sed 's/[\\{\\},]//g ; s/: /@/g' | xargs npm install --save-dev \"$PKG@latest\"\n)\n```\n\nWhich produces and runs a command like:\n\n```sh\nnpm install --save-dev eslint-config-nodebb eslint@^#.#.# eslint-plugin-import@^#.#.#\n```\n\nIf using **npm \u003c 5**, Windows users can either install all the peer dependencies manually, or use the [install-peerdeps](https://github.com/nathanhleung/install-peerdeps) cli tool.\n\n```sh\nnpm install -g install-peerdeps\ninstall-peerdeps --dev eslint-config-nodebb\n```\n\nThe cli will produce and run a command like:\n\n```sh\nnpm install --save-dev eslint-config-nodebb eslint@^#.#.# eslint-plugin-import@^#.#.#\n```\n\n## Credits\n- [eslint](https://www.npmjs.com/package/eslint)\n- [eslint-plugin-import](https://www.npmjs.com/package/eslint-plugin-import)\n- [eslint-config-airbnb-base](https://www.npmjs.com/package/eslint-config-airbnb-base)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodebb%2Feslint-config-nodebb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodebb%2Feslint-config-nodebb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodebb%2Feslint-config-nodebb/lists"}