4.0.2 • Published 9 days ago

@gravitywelluk/eslint-plugin v4.0.2

Weekly downloads
16
License
MIT
Repository
github
Last release
9 days ago

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" ],

@gravitywelluk/eslint-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

@gravitywelluk/typescript-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

@gravitywelluk/react-recommended

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

@gravitywelluk/react-native-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.

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

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

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

Note: Publishing is automated via a CI workflow.

4.0.1

9 days ago

4.0.2

9 days ago

3.0.2

1 year ago

3.0.1

1 year ago

2.0.1

3 years ago

1.0.38

3 years ago

1.0.37

3 years ago

1.0.36

3 years ago

1.0.33

3 years ago

1.0.35

3 years ago

1.0.34

3 years ago

1.0.32

3 years ago

1.0.31

3 years ago

1.0.29

3 years ago

1.0.30

3 years ago

1.0.28

3 years ago

1.0.27

3 years ago

1.0.26

4 years ago

1.0.25

4 years ago

1.0.24

4 years ago

1.0.23

4 years ago

1.0.22

4 years ago

1.0.21

4 years ago

1.0.19

4 years ago

1.0.20

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.4

4 years ago

1.0.1

4 years ago