Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@lite-v3/eslint-plugin
Advanced tools
ESLint rules for tokopedia web services.
You'll first need to install ESLint:
pnpm add eslint --save-dev
Next, install eslint-plugin-tokopedia-lite
:
pnpm add eslint-plugin-tokopedia-lite --save-dev
Note: This plugin doesn't have "recommended" rule set at the moment. We are currently still considering of the right rules to be the recommended default set. Please make sure to enable rules based on your needs.
To get started, add tokopedia-lite
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": ["tokopedia-lite"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"tokopedia-lite/no-workspace-url-deps": "error",
"tokopedia-lite/no-window-checking": "warn",
"tokopedia-lite/no-var-expression-dynamic-import": "error"
}
}
Name | Type | Docs |
---|---|---|
no-window-checking | Possible Error | Link |
no-var-expression-dynamic-import | Possible Error | Link |
no-invalid-loadable-specifier | Possible Error | Link |
no-empty-leading-comment-dynamic-import | Best Practice | Link |
jest-no-identical-title | Best Practice | TBD |
jest-no-duplicate-hooks | Best Practice | Link |
json-no-pluggables | Possible Error | Link |
json-no-restricted-imports | Possible Error | Link |
json-no-dependencies | Possible Error | Link |
wpe-lite-theme/ban-hex-colors | Possible Error | Link |
You can disable certain rule by using ESLint directive syntax (marked with #) to hint ESLint to disable in specific line or entire file. You can find a list of ESLint directives here.
# eslint-disable-next-line no-window-checking
if (window) {
...
}
FAQs
ESLint rules for tokopedia web services.
The npm package @lite-v3/eslint-plugin receives a total of 272 weekly downloads. As such, @lite-v3/eslint-plugin popularity was classified as not popular.
We found that @lite-v3/eslint-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.