Node People Magic

    @goodrequest/eslint-config-typescript

    1.2.0 • Public • Published

    eslint-config-typescript

    npm version

    ESLint config for TypeScript projects.

    Usage

    1. If using npm 7+ you can install this package and npm automatically installs all peer dependencies.
    npm install @goodrequest/eslint-config-typescript --save-dev
    

    If you are using an older npm version, then the next step is to install all the peer dependencies listed with:

    npm info "@goodrequest/eslint-config-typescript" peerDependencies
    
    {
      eslint: '^8.2.0',
      'eslint-plugin-import': '^2.25.3',
      'eslint-plugin-prettier': '^4.0.0',
      '@typescript-eslint/eslint-plugin': '^5.4.0',
      prettier: '^2.4.1'
    }
    

    Here is npm install command you can use:

    npm install eslint@^8.2.0 eslint-plugin-import@^2.25.3 eslint-plugin-prettier@^4.0.0 @typescript-eslint/eslint-plugin@^5.4.0 prettier@^2.4.1 --save-dev
    
    1. Create .eslintrc.json file in your project root directory and add following lines:
    {
      "extends": ["@goodrequest/eslint-config-typescript"]
    }
    
    1. Create .prettierrc.json file in your project root directory and add following lines:
    {
      "useTabs": true,
      "semi": false,
      "singleQuote": true,
      "jsxSingleQuote": true,
      "trailingComma": "none",
      "printWidth": 160,
      "tabWidth": 4
    }
    
    1. Create .editorconfig file in your project root directory and add following lines:
    [*]
    indent_style = tab
    indent_size = 4
    end_of_line = lf
    charset = utf-8
    trim_trailing_whitespace = true
    insert_final_newline = true
    

    Install

    npm i @goodrequest/eslint-config-typescript

    DownloadsWeekly Downloads

    159

    Version

    1.2.0

    License

    ISC

    Unpacked Size

    3.36 kB

    Total Files

    3

    Last publish

    Collaborators

    • logingoodrequest
    • lubomirigonda