Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ferocia-oss/eslint-plugin

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ferocia-oss/eslint-plugin

Shareable ESLint Rules

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
263
decreased by-25.07%
Maintainers
1
Weekly downloads
 
Created
Source

@ferocia/eslint-plugin

Shareable ESLint Rules

Install

Pick the latest git commit hash and substitute it below.

To install via HTTPS:

yarn add --dev https://github.com/ferocia/eslint-plugin.git#GIT_COMMIT_HASH

Or SSH:

yarn add --dev ferocia/eslint-plugin.git#GIT_COMMIT_HASH

Configure

In your ESLint config file...

plugins: [
  // ...
  '@ferocia/eslint-plugin',
]

rules: {
  // ...

  // Enforce `Readonly<{...}>` over `{readonly ...}` when there are multiple props.
  '@ferocia/prefer-generic-readonly': 'error',

  // Enforce use of smart-quotes.
  '@ferocia/prefer-special-apostrophe': 'error',

  // Enforce `Nullable<X>` over `X | null | undefined`.
  // requires adding `declare type Nullable<T> = T | null | undefined`
  // to your `global.d.ts`.
  '@ferocia/prefer-nullable': 'error',
}

Development

To work on this, check out the ESLint Plugin docs.

To run the tests in watch mode, run:

yarn dev

To format all code, run:

yarn format

FAQs

Package last updated on 02 Feb 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc