@amollo-lint/eslint-config-tsx

2.0.0 • Public • Published

@amollo-lint/eslint-config-tsx

MIT License npm version

ESLint rules for React TSX

Note: This package was not developed on demand for general use, the rules that are configured in it refer to the use of specific projects for the needs of the owner. Use it if you need such rules for your linter

Installation

  • npm
npm install --save-dev @amollo-lint/eslint-config-tsx eslint typescript
  • yarn
yarn add -D @amollo-lint/eslint-config-tsx eslint typescript

Usage

Create a tsconfig.json file:

$ tsc --init

Set your eslint config to: .eslintrc.js

module.exports = {
    "extends": "@amollo-lint/eslint-config-tsx",
    "parserOptions": {
        "project": "tsconfig.json",
        "tsconfigRootDir": __dirname,
    }
}

Extends

  • @amollo-lint/eslint-config-ts
  • @amollo-lint/eslint-config-jsx

Package Sidebar

Install

npm i @amollo-lint/eslint-config-tsx

Weekly Downloads

35

Version

2.0.0

License

MIT

Unpacked Size

2.7 kB

Total Files

3

Last publish

Collaborators

  • amollo