@enormora/eslint-config-react-tsx

0.0.17 • Public • Published

@enormora/eslint-config-react-tsx

Config preset for react and JSX per typescript, enabling specific rules and compiler settings.

Install & Setup

Install the @enormora/eslint-config-react-tsx, the base preset and the typescript package via npm:

npm install --save-dev @enormora/eslint-config-base @enormora/eslint-config-typescript @enormora/eslint-config-react-tsx

Create an ESLint configuration file (e.g., eslint.config.js) in your project and add the base and react config to the configuration array:

import { baseConfig } from '@enormora/eslint-config-base';
import { reactTsxConfig } from '@enormora/eslint-config-react-tsx';

export default [
    {
        ignores: ['dist/**/*']
    },
    baseConfig,
    {
        ...reactTsxConfig,
        files: ['src/components/**/*.tsx']
    }
];

Readme

Keywords

none

Package Sidebar

Install

npm i @enormora/eslint-config-react-tsx

Weekly Downloads

401

Version

0.0.17

License

MIT

Unpacked Size

3.19 kB

Total Files

4

Last publish

Collaborators

  • lo1tuma
  • screendriver