@nighttrax/eslint-config

NiGhTTraX's ESLint config

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
60Jun 21, 2021Apr 12, 2018Minified + gzip package size for @nighttrax/eslint-config in KB

Readme

Install

npm i @nighttrax/eslint-config

# Or equivalent.
npm i babel-eslint

# These are optional and are required by their respective configs.
npm i \
    eslint-plugin-import \
    eslint-plugin-jsx-a11y \
    eslint-plugin-react \
    eslint-plugin-typescript \

Unfortunately, until eslint/eslint#3458 is resolved, plugins need to be installed manually.

Use

// .eslintrc.js
module.exports = {
  'extends': [
    '@nighttrax/eslint-config/jsx',
  ].map(require.resolve)
};

or more granular

// .eslintrc.js
module.exports = {
  'extends': [
    '@nighttrax/eslint-config',
    '@nighttrax/eslint-config/react',
    '@nighttrax/eslint-config/react-a11y',
    '@nighttrax/eslint-config/imports'
  ].map(require.resolve)
};

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.