2.0.2 • Published 4 months ago

@ghyston/eslint-config-ghyston v2.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

eslint-config-ghyston

Usage

Core

  1. npm install --save-dev @ghyston/eslint-config-ghyston
  2. Install the following peer dependencies, deleting where necessary: npm install --save-dev @typescript-eslint/eslint-plugin eslint eslint-plugin-import eslint-plugin-unused-imports
  3. Then add the following to your .eslintrc file:
{
  "extends": [
    "@ghyston/eslint-config-ghyston"
  ]
}

Modules

React

See React configuration

Jest

See Jest configuration

Development

Setup

  1. npm install

Editing the config

  1. Make changes to any of the index.js file

Adding new config

  1. Create a new folder for the config in root
  2. Add an index.js file
  3. Add a README.md file
  4. Add a link to the new config in the modules section

Testing the changes locally

  1. Update the version number in the package.json file e.g. 1.0.0
  2. Create a folder somewhere to store a local copy of the package e.g. ~/npm-test-packages
  3. npm pack --pack-destination ~/npm-test-packages
  4. Add the following to the package.json file of the project you want to test the changes in. Make sure you use the correct version number:
{
  "devDependencies": {
    "@ghyston/eslint-config-ghyston": "file:~/npm-test-packages/eslint-config-ghyston-1.0.0.tgz"
  }
}

Publishing

To publish you'll need to be part of the Ghyston organisation, contact an existing member to be added. Checkout main and run the following: 1. npm login 2. ./publish.sh patch (or minor, or major)

2.0.2

4 months ago

2.0.1

4 months ago

2.0.0

4 months ago

1.0.5

4 months ago

1.0.2

9 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.1

12 months ago

1.0.0

12 months ago