
Security News
MCP Steering Committee Launches Official MCP Registry in Preview
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
@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
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
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.