{"id":22409030,"url":"https://github.com/hubspotwebteam/wt-eslint-browser","last_synced_at":"2025-07-31T20:31:12.089Z","repository":{"id":37958042,"uuid":"486936213","full_name":"HubSpotWebTeam/wt-eslint-browser","owner":"HubSpotWebTeam","description":"This is a list of ESLint rules that are recommended for use with Hubspot Marketing WebTeam projects.","archived":false,"fork":false,"pushed_at":"2024-11-26T14:34:11.000Z","size":931,"stargazers_count":3,"open_issues_count":3,"forks_count":4,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-11-28T00:33:30.557Z","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/HubSpotWebTeam.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-29T10:49:42.000Z","updated_at":"2024-11-26T14:17:18.000Z","dependencies_parsed_at":"2024-10-03T15:14:47.616Z","dependency_job_id":"10583434-fbcf-4d27-9547-a57ada3b1969","html_url":"https://github.com/HubSpotWebTeam/wt-eslint-browser","commit_stats":{"total_commits":25,"total_committers":4,"mean_commits":6.25,"dds":"0.31999999999999995","last_synced_commit":"1fb5aacdcb595066a1e091f4cba69104f6567528"},"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HubSpotWebTeam%2Fwt-eslint-browser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HubSpotWebTeam%2Fwt-eslint-browser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HubSpotWebTeam%2Fwt-eslint-browser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HubSpotWebTeam%2Fwt-eslint-browser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HubSpotWebTeam","download_url":"https://codeload.github.com/HubSpotWebTeam/wt-eslint-browser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228295622,"owners_count":17897596,"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-12-05T12:06:22.438Z","updated_at":"2025-07-31T20:31:12.027Z","avatar_url":"https://github.com/HubSpotWebTeam.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hubspot Marketing WebTeam ESLint rules for Browsers\n\nThis is a list of ESLint rules that are recommended for use with Hubspot Marketing WebTeam projects.\n\nhttps://www.npmjs.com/package/@hs-web-team/eslint-config-browser\n\n\u003c!-- index-start --\u003e\n\n## Index\n\n- [Introduction](#introduction)\n- [Setup](#setup)\n- [Migrating from an exisiting .eslint config](#migrating-from-an-existing-eslint-config)\n- [Where to use it](#where-to-use-it)\n\u003c!-- index-end --\u003e\n\n## Introduction\n\nThis is a set of ESLint rules that are recommended for use with Hubspot Marketing WebTeam projects, and it also include StyleLint as a linter for CSS/SCSS files.\n\n## Setup\n\n1. Install as dev dependency\n\n```\nnpm i -D @hs-web-team/eslint-config-browser\n```\n\n2. Add to `.eslintrc` in project root directory\n\n```json\n{\n  \"extends\": \"@hs-web-team/eslint-config-browser\"\n}\n```\n\n3. Extend the eslint on a project basis by adding rules to `.eslintrc` e.g.\n\n```\n{\n  \"extends\": \"@hs-web-team/eslint-config-browser\",\n  \"settings\": {\n    \"import/resolver\": \"webpack\"\n  }\n}\n```\n\n4. Extend the style-lint rules on a project basis by adding a`.stylelintrc.json`:\n\n```json\n{\n  \"extends\": \"./node_modules/@hs-web-team/eslint-config-browser/.stylelintrc.json\",\n  \"ignoreFiles\": [\n    // any folders to ignore\n    // e.g. \"./dist/**/*.{css,scss,sass}\"\n  ]\n}\n```\n\n5. (Optional) Import cypress default configuration\n\n```js\n// cypress.config.js\nconst { defineConfig } = require('cypress');\nconst { getDevBaseUrl, config, envs } = require('@hs-web-team/eslint-config-browser/cypress.config.js');\n\nconst devBaseUrl = getDevBaseUrl();\nconst baseUrls = {\n  [envs.DEV]: devBaseUrl,\n  [envs.QA]: '{{QA_URL}}',\n  [envs.PROD]: '{{PROD_URL}}',\n};\n\nconst baseUrl = baseUrls[envs.currentEnv];\nmodule.exports = defineConfig({\n  ...config,\n  e2e: {\n    baseUrl,\n  },\n});\n```\n\n## Migrating from an existing .eslint config\n\n1. Remove `node_modules`\n2. Delete `package-lock.json`\n3. `npm i`\n4. Re open your vscode/editor workspace\n5. Check if `js` linting and `sass` linting works\n\nReference\nhttps://eslint.org/docs/developer-guide/shareable-configs\n\n## Where to use it\n\nThis package is intended to be used as a starting point for ESLint rules for FrontEnd projects, and should be used in browser environments.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhubspotwebteam%2Fwt-eslint-browser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhubspotwebteam%2Fwt-eslint-browser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhubspotwebteam%2Fwt-eslint-browser/lists"}