Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
eslint-config-monots
Advanced tools
This package provides the default eslint configurations used within the monots codebase.
yarn add eslint-config-monots
In your package.json
files add the following configuration
{
"name": "my-cool-library",
"version": "0.0.0",
"eslintConfig": {
"extends": ["monots"],
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"extends": ["monots/full"],
"parserOptions": {
"project": ["./path/to/tsconfig.lint.json"]
}
},
{ "files": ["*.tsx"], "extends": ["monots/react"] }
]
}
}
If you don't want to use your package.json
file, you can use any of the supported eslint configuration formats to export a string, e.g. .eslintrc.json
:
{
"extends": ["monots"]
}
You can always add your own rules and disable any rules you don't like by adding a rules property to the configuration.
module.exports = {
extends: ['monots'],
};
This config is primarily for use within a monots
repo. Rules are strict but they do allow multiple people working on a project to conform to the same standard.
monots
Provides the default rules and sets the parser to use @typescript-eslint/parser
.
monots/full
Provides stricter rules and the cpu intensive @typescript-eslint/eslint-plugin
/ eslint-plugin-import
which should be scoped to *.ts
files in your project.
monots/react
Rules for a react codebase.
monots/markdown
Experimental rules for markdown files. This currently doesn't interop well with @typescript-eslint/parser
when the project option is set.
monots/full-off
Can be used to disable the full
rule for certain groups of files.
module.exports = {
extends: ['monots'],
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"extends": ["monots/full"],
"parserOptions": {
"project": ["./path/to/tsconfig.lint.json"]
}
},
{ "files": ["*.tsx"], "extends": ["monots/react"] },
// Disable the `full` rules for certain matching files.
{"files": ["*.d.ts"], extends: ['monots/full-off'] }
]
}
};
FAQs
Provides the monots eslint configuration
The npm package eslint-config-monots receives a total of 15 weekly downloads. As such, eslint-config-monots popularity was classified as not popular.
We found that eslint-config-monots 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.