Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
@hs-web-team/eslint-config-browser
Advanced tools
Readme
This is a list of ESLint rules that are recommended for use with Hubspot Marketing WebTeam projects.
https://www.npmjs.com/package/@hs-web-team/eslint-config-browser
This 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.
npm i -D @hs-web-team/eslint-config-browser
.eslintrc
in project root directory{
"extends": "@hs-web-team/eslint-config-browser"
}
.eslintrc
e.g.{
"extends": "@hs-web-team/eslint-config-browser",
"settings": {
"import/resolver": "webpack"
}
}
.stylelintrc.json
:{
"extends": "./node_modules/@hs-web-team/eslint-config-browser/.stylelintrc.json",
"ignoreFiles": [
// any folders to ignore
// e.g. "./dist/**/*.{css,scss,sass}"
]
}
// cypress.config.js
const { defineConfig } = require('cypress');
const { getDevBaseUrl, config, envs } = require('@hs-web-team/eslint-config-browser/cypress.config.js');
const devBaseUrl = getDevBaseUrl();
const baseUrls = {
[envs.DEV]: devBaseUrl,
[envs.QA]: '{{QA_URL}}',
[envs.PROD]: '{{PROD_URL}}',
};
const baseUrl = baseUrls[envs.currentEnv];
module.exports = defineConfig({
...config,
e2e: {
baseUrl,
},
});
node_modules
package-lock.json
npm i
js
linting and sass
linting worksReference https://eslint.org/docs/developer-guide/shareable-configs
This package is intended to be used as a starting point for ESLint rules for FrontEnd projects, and should be used in browser environments.
FAQs
HubSpot Marketing WebTeam ESLint rules for Browsers
The npm package @hs-web-team/eslint-config-browser receives a total of 247 weekly downloads. As such, @hs-web-team/eslint-config-browser popularity was classified as not popular.
We found that @hs-web-team/eslint-config-browser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 71 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.