🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@gravitywelluk/eslint-plugin

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gravitywelluk/eslint-plugin

Gravitywell defined ESLint rule sets as an ESLint plugin

latest
Source
npmnpm
Version
4.0.2
Version published
Weekly downloads
29
-79.58%
Maintainers
1
Weekly downloads
 
Created
Source

Gravitywell ESLint Plugin

Gravitywell defined ESLint rule sets for ESLint.

CI License Downloads Version


Table of Contents

Getting started / Installation

# Yarn
yarn add -D @gravitywelluk/eslint-plugin


# NPM
npm install --save-dev @gravitywelluk/eslint-plugin

Usage

In your .eslintrc file, add the package as a plugin.

plugins: [ "@gravitywelluk/eslint-plugin" ]

There are 4 configurations to choose from:

  • @gravitywelluk/eslint-recommended
  • @gravitywelluk/typescript-recommended
  • @gravitywelluk/react-recommended
  • @gravitywelluk/react-native-recommended

Note: You will only need to choose ONE from the list above as they inherit each other. Make sure that it is placed last in the extends array.

plugins: [ "@gravitywelluk/eslint-plugin" ]
extends: [ "plugin:@gravitywelluk/react-recommended" ],
extends: [ "plugin:@gravitywelluk/eslint-recommended" ],

This includes the following plugins and rules including Gravitywell's own override rules:

  • eslint
    • eslint:recommended
  • eslint-plugin-import
    • plugin:import/errors
    • plugin:import/warnings
  • eslint-plugin-json
    • plugin:json/recommended
extends: [ "plugin:@gravitywelluk/typescript-recommended" ],

This includes @gravitywelluk/eslint-recommended and the following plugins and rules :

  • @gravitywelluk/eslint-recommended
  • @typescript-eslint/eslint-plugin
    • plugin:@typescript-eslint/eslint-recommended
    • plugin:@typescript-eslint/recommended
  • eslint-plugin-import
    • plugin:import/typescript
extends: [ "plugin:@gravitywelluk/react-recommended" ],

This includes @gravitywelluk/typescript-recommended and the following plugins and rules:

  • @gravitywelluk/typescript-recommended
  • react
    • plugin:react/recommended
  • react-hooks
    • plugin:react-hooks/recommended
extends: [ "plugin:@gravitywelluk/react-native-recommended" ],

This includes @gravitywelluk/react-recommended and the following plugins and rules :

  • @gravitywelluk/react-recommended
  • @react-native-community/eslint-config

Contributing

To contribute to this package you will need to first setup access to NPM packages.

  • You will firstly need to create an NPM Access Token. Use the following link on Creating and viewing authentication tokens.

  • You will then need to add the following to your ~/.npmrc file.

    //registry.npmjs.org/:_authToken=ACCESS_TOKEN
    
  • Contribute using the Git Truck flow (pull-request > master).

Note: Publishing is automated via a CI workflow.

Keywords

gravitywell

FAQs

Package last updated on 30 Apr 2024

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