@tivix/eslint-config

1.2.5 • Public • Published

@tivix/eslint-config

This package contains a root ESLint config, with automatic support for TypeScript and React.

Methodology

Style rules

As linting configs are often heavily debated, this config uses Prettier for most code-style choices.

The base config is eslint-config-airbnb.

TypeScript support

When working with TypeScript, the recommended rules from @typescript-eslint/eslint-plugin are applied.

You should also ensure that your IDE is set up to run ESLint on TypeScript files. In VSCode, this setting is:

  "eslint.validate": [
      "javascript",
      "javascriptreact",
      "typescript",
      "typescriptreact"
  ],

Installation

To manually install, add this package to the "extends" array in your project’s ESLint config.

{
  "extends": ["@tivix/eslint-config/typescript-react"]
}

The following configs are available:

  • @tivix/typescript
  • @tivix/typescript-react
  • @tivix/react
  • @tivix/eslint-config

Config generator

For advanced cases, you can use the exported generateConfig function to build a config.

Readme

Keywords

none

Package Sidebar

Install

npm i @tivix/eslint-config

Weekly Downloads

26

Version

1.2.5

License

UNLICENSED

Unpacked Size

5.87 kB

Total Files

12

Last publish

Collaborators

  • groinder
  • grzegorzduda
  • johniak