
Security News
Scaling Socket from Zero to 10,000+ Organizations
Socket CEO Feross Aboukhadijeh shares lessons from scaling a developer security startup to 10,000+ organizations in this founder interview.
@ottofeller/eslint-plugin-ottofeller
Advanced tools
npm install @ottofeller/eslint-plugin-ottofeller --save-dev
Add ottofeller to the plugins section of your eslint configuration:
{
"plugins": [
"@ottofeller/ottofeller"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"@ottofeller/ottofeller/rule-name-without-options": [
"error"
],
"@ottofeller/ottofeller/rule-name-with-options": [
"error",
{
"option": "value"
}
]
}
}
{
"rules": {
"@ottofeller/ottofeller/jsx-newline-block": ["error"]
}
}
The rule has a single option, which is an object with require property. The latter one is an object that defines the following options:
CallExpression - requires a comment before useEffect(...); defaults to true.MemberExpression - requires a comment before React.useEffect(...); defaults to true.{
"rules": {
"@ottofeller/ottofeller/require-comment-before-useeffect": ["error", {
"require": {
"CallExpression": true,
"MemberExpression": false,
}
}],
}
}
All the options are enabled by default. To use defaults just keep the config object off.
{
"rules": {
"@ottofeller/ottofeller/require-comment-before-useeffect": ["error"],
}
}
The rule forbids namespace and default imports from React. Named imports are encouraged.
{
"rules": {
"@ottofeller/ottofeller/no-import-react": ["error"],
}
}
For multiline Object Expressions the rule requires:
NOTE: the rule does not handle comments within Object Expressions.
An autofix is available for the rule.
{
"rules": {
"@ottofeller/ottofeller/object-properties-multiline-padding": ["error"],
}
}
FAQs
Plugin utilized in ottofeller.com projects
The npm package @ottofeller/eslint-plugin-ottofeller receives a total of 210 weekly downloads. As such, @ottofeller/eslint-plugin-ottofeller popularity was classified as not popular.
We found that @ottofeller/eslint-plugin-ottofeller demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
Socket CEO Feross Aboukhadijeh shares lessons from scaling a developer security startup to 10,000+ organizations in this founder interview.

Research
Socket Threat Research maps a rare inside look at OtterCookie’s npm-Vercel-GitHub chain, adding 197 malicious packages and evidence of North Korean operators.

Research
Socket researchers identified a malicious Chrome extension that manipulates Raydium swaps to inject an undisclosed SOL transfer, quietly routing fees to an attacker wallet.