@super-protocol/eslint-config-typescript

2.0.1 • Public • Published

Shared ESLint and Typescript configuration

Integrate into new project

  1. Turn off VS code extention "Prettier" for the project if you use it
  • Create file .vscode/settings.json
  • add "prettier.enable": false to the json
  1. Install this package as devDependency
# with npm
$ npm i -D @super-protocol/eslint-config-typescript
  1. Use ESLint config in your project

Add .eslintrc.json file based on your project type:

For CommonJS projects:

{
  "extends": [
    "@super-protocol/eslint-config-typescript/eslint/node-cjs"
  ]
}

For ESM projects:

{
  "extends": [
    "@super-protocol/eslint-config-typescript/eslint/node-esm"
  ]
}
  1. Use Typescript config in your project

Add the following tsconfig.json file based on your project type:

For CommonJS projects:

{
  "extends": "@super-protocol/eslint-config-typescript/tsconfig/node-cjs"
}

For ESM projects:

{
  "extends": "@super-protocol/eslint-config-typescript/tsconfig/node-esm"
}

/@super-protocol/eslint-config-typescript/

    Package Sidebar

    Install

    npm i @super-protocol/eslint-config-typescript

    Weekly Downloads

    161

    Version

    2.0.1

    License

    ISC

    Unpacked Size

    6.15 kB

    Total Files

    9

    Last publish

    Collaborators

    • serega_k
    • dmitry_smv
    • nukri
    • vkspmstr
    • dorianhost
    • villain88
    • galkinsden
    • yen
    • vkpicyn
    • idris0v
    • vyuv
    • denisbezrukov
    • agentrx
    • denisbezrukovsp