0.0.1-alpha.0 • Published 2 years ago

@misterbridge/eslint-config-base v0.0.1-alpha.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

ESLint config, mrbridge's style

This package provides mrbridge's eslint config for TypeScript projects without react.

  • .eslintrc as an extensible shared config

Installing

  1. In your project folder, run:

    npm i -D @misterbridge/eslint-config-base
    npx install-peerdeps --dev @misterbridge/eslint-config-base

    You will see several dependencies were installed.

  2. Now, create (or update) a .eslintrc file with the following content:

    {
        "extends": ["@misterbridge/eslint-config-base"]
    }

    If you need to extend the configuration with other plugins, make sure that @misterbridge/eslint-config-base/prettier is the last item of the array

    {
       "extends": [
          "@misterbridge/eslint-config-base",
          // ...,
          "@misterbridge/eslint-config-base/prettier"
       ]
    }