Nth Phonetic Mnemonic

    @via-profit-services/eslint-config

    0.1.20 • Public • Published

    Via Profit Eslint configuration

    via-profit-eslint-cover

    ESlint configuration for a via-profit-services packages

    npm (scoped)

    Peer Dependencies

    Installation

    1. Install peer dependencies:
    $ yarn add --dev \
    @typescript-eslint/eslint-plugin \
    @typescript-eslint/parser \
    eslint \
    eslint-config-prettier \
    eslint-import-resolver-webpack \
    eslint-import-resolver-node \
    eslint-plugin-import \
    eslint-plugin-node \
    eslint-plugin-prettier \
    eslint-plugin-promise \
    prettier
    1. Install the common package:
    $ yarn add --dev @via-profit-services/eslint-config
    1. Make the eslint config file .eslintrc in project root with following contents:
    {
      "extends": ["@via-profit-services/eslint-config"]
    }
    1. Make the pretier config file .prettierrc in project root with following contents:
    {
      "trailingComma": "all",
      "tabWidth": 2,
      "semi": true,
      "singleQuote": true,
      "bracketSpacing": true,
      "arrowParens": "avoid",
      "printWidth": 100
    }

    For React environment

    Install packages:

    $ yarn add eslint-plugin-react eslint-plugin-react-hooks
    {
      "extends": ["@via-profit-services/eslint-config/react"]
    }
    1. Make the .eslintignore file in project root with following contents:
    /scripts/**
    /src/@types/**
    /dist/**
    /build/**
    .eslintrc
    
    1. Do not forgot restart your IDE

    Install

    npm i @via-profit-services/eslint-config

    DownloadsWeekly Downloads

    4

    Version

    0.1.20

    License

    MIT

    Unpacked Size

    737 kB

    Total Files

    9

    Last publish

    Collaborators

    • vasily-novosad
    • pashtet422