0.5.0 • Published 5 months ago

@beequip/eslint-config-react-typescript v0.5.0

Weekly downloads
6
License
MIT
Repository
-
Last release
5 months ago

eslint-config-react-typescript

Shareable config for ESLint, used in React.js and TypeScript projects at BEEQUIP.

Installing

Install with yarn.

yarn add --dev @beequip/eslint-config-react-typescript

Or npm.

npm install --save-dev @beequip/eslint-config-react-typescript

How to use

Create a new .eslintrc.js file in the root of your project with the following content:

module.exports = {
    'extends': [
        '@beequip/eslint-config-react-typescript',
    ],
}

For an optimal experience, add a Prettier override by creating a .prettierrc file in the root of your project.

{
    "tabWidth": 4,
    "printWidth": 80,
    "semi": false,
    "singleQuote": true,
    "trailingComma": "es5"
}

Further reading

For more information on shareable configs for ESLint, see the docs: https://eslint.org/docs/6.0.0/developer-guide/shareable-configs