Socket
Socket
Sign inDemoInstall

@ferocia-oss/eslint-plugin

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ferocia-oss/eslint-plugin

Shareable ESLint Rules


Version published
Weekly downloads
250
increased by3.73%
Maintainers
1
Install size
147 kB
Created
Weekly downloads
 

Readme

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

Last updated on 02 Feb 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc