@leandro8279/eslint-config-react
v1.0.16
Published
ESLint configuration used by PRTE - Tecnologia & Soluções.
Downloads
41
Readme
eslint-config-react
Shared ESLint configs for Web and Mobile projects.
Installation
yarn add --dev @somosprte/eslint-config-react
You will also need to install eslint
and prettier
:
yarn add --dev eslint prettier
Usage
Import this config into your own ESLint configuration using the extends
option. ESLint checks both package.json
and .eslintrc.*
files for its configuration:
package.json
{
"eslintConfig": {
"extends": "@somosprte/eslint-config-react"
}
}
.eslintrc.js
module.exports = {
extends: '@somosprte/eslint-config-react',
};
Customizing Prettier
If you would like to customize the Prettier settings, create a file named .prettierrc
in your project directory. An example of Prettier configuration file:
{
"printWidth": 100,
"tabWidth": 2,
"singleQuote": true,
"bracketSameLine": true
}
Read more about configuring prettier
and all of the available options.