eslint-config-translated

    1.0.26 • Public • Published

    Translated ESLint config

    This package provides the ESLint configuration for JavaScript projects, both NodeJS and ReactJS, of Translated organization.

    You can check eslint plugins used directly from the plugins section.

    Rules

    The following rules are explicitly applied on top of the base configuration exported from plugins:

    • "no-console": "off": services currently log using the native console.log and console.error without using 3rd party logging libraries
    • "max-lines-per-function": ["error", 200]: good indicator of a too complex function
    • "import/order": "error": for improved readability
    • "singleQuote": true: for improved readability
    • "printWidth": 160: for improved readability, assuming company developers are supposed to use at least a 24" display

    Installation

    Install package as a devDependency:

    yarn add --dev eslint-config-translated

    Configuration

    Create a .eslintrc file with the following content:

    {
      "extends": ["eslint-config-translated"]
    }

    Linting

    Fix codebase errors:

    yarn eslint --fix .

    Install

    npm i eslint-config-translated

    DownloadsWeekly Downloads

    218

    Version

    1.0.26

    License

    MIT

    Unpacked Size

    3.85 kB

    Total Files

    7

    Last publish

    Collaborators

    • translatedteam