Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
eslint-plugin-baseui
Advanced tools
eslint-plugin-baseui
This ESLint plugin is for developers using the Base Web component library. Mainly it attempts to:
Assuming you already have ESLint installed, run:
# npm
npm install eslint-plugin-baseui --save-dev
# yarn
yarn add eslint-plugin-baseui --dev
Then add it to your ESLint configuration:
{
"plugins": [
// ...
"baseui",
],
"rules": {
// ...
'baseui/deprecated-theme-api': "warn",
'baseui/deprecated-component-api': "warn",
'baseui/no-deep-imports': "warn",
'baseui/no-block-style': "warn",
'baseui/no-component-classname': "warn",
'baseui/no-shorthand-properties': "warn",
}
}
Or extend the recommended config
{
"extends": ["plugin:baseui/recommended"]
}
To get linting specific to your version of baseui
, simply install the matching version of eslint-plugin-baseui
.
{
"dependencies": {
"baseui": "10.0.0"
},
"devDependencies": {
"eslint-plugin-baseui": "10.0.0"
}
}
We sync the versions for each package, so you shouldn't have to worry about it.
ℹ️ Note that the first available version of this package is 9.41.0
.
Rule | Responsibility |
---|---|
deprecated-theme-api | Identify theme properties that are deprecated. |
deprecated-component-api | Identify components and props that are deprecated. |
no-deep-imports | Identify importing unsupported modules from baseui source code. |
no-block-style | Identify instances of Block being used with style/$style instead of overrides. (not supported) |
no-component-classname | Identify instances of components being styled using className. (not supported) |
no-shorthand-properties | Identify instances of component overrides using shorthand css properties. |
To publish new versions of this package all you need to do is release a new version of baseui
. Our deploy script will publish a new version of the eslint plugin which matches the new version of baseui
. Note, this also means every version of baseui
will publish a corresponding version of eslint-plugin-baseui
, even if there are no changes to the package.
MIT
FAQs
ESLint rules for Base Web
The npm package eslint-plugin-baseui receives a total of 15,559 weekly downloads. As such, eslint-plugin-baseui popularity was classified as popular.
We found that eslint-plugin-baseui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.