@sanv/eslint-config-react-typescript

2.1.2 • Public • Published

Eslint React Configuration with Typescript Support

npm version

  1. Install the correct version of package, which are listed by the command:
npm install "@sanv/eslint-config-react-typescript" --save-dev
  1. Add next line to your .eslintrc.js:
module.exports = {
  parser: '@typescript-eslint/parser',
  plugins: ['prettier', 'react', 'jsx-a11y', '@typescript-eslint'],
  parserOptions: {
    project: './tsconfig.json',
    sourceType: 'module',
  },
  extends: [
    '@sanv/eslint-config-react-typescript',
    'plugin:prettier/recommended',
    'prettier/react',
    'prettier/@typescript-eslint',
  ],
}

Package Sidebar

Install

npm i @sanv/eslint-config-react-typescript

Weekly Downloads

23

Version

2.1.2

License

ISC

Unpacked Size

17 kB

Total Files

11

Last publish

Collaborators

  • sv92