1.0.0 • Published 11 months ago

@gergerwuu/eslint-config v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

This package provides .eslintrc as an extensible shared config.

  1. Install

    npm install -D @gergerwuu/eslint-config

  2. Add the following configuration to the eslintrc.js file

    module.exports = {
      parser: '@babel/eslint-parser',
      extends: ['@gergerwuu/eslint-config'],
    };
  3. If need lint for jest, please add another extends like this
    module.exports = {
      parser: '@babel/eslint-parser',
      extends: ['@gergerwuu/eslint-config', '@gergerwuu/eslint-config/jest'],
    };
  4. Only provide rules, other config, such as parser, env, parserOptions, settings... It needs to be configured in the business project.

  5. Style Guide: https://github.com/airbnb/javascript