npm.io
6.0.4 • Published yesterday

eslint-config-jonhaddow

Licence
MIT
Version
6.0.4
Deps
6
Size
5 kB
Vulns
0
Weekly
0
Stars
1

eslint-config-jonhaddow

- ESLint configuration for use across my projects

Install

npm install --save-dev eslint-config-jonhaddow

Usage

Add the extends property to your eslint.config.js:

const config = require('eslint-config-jonhaddow')

module.exports = {
  ...config.base,
  ...config.react, // This can be omitted if you're not using React
  { 
    languageOptions: {
      parserOptions: {
        project: true,
        tsconfigRootDir: __dirname,
      },
    },
  }
};

Publishing

Run npm version [major|minor|patch] and push that corresponding commit.

Create a Github release and associate with the pushed tag. This will trigger an Github Action to publish the npm package.