1.0.16 • Published 2 years ago
@leandro8279/eslint-config-react v1.0.16
eslint-config-react
Shared ESLint configs for Web and Mobile projects.
Installation
yarn add --dev @somosprte/eslint-config-reactYou will also need to install eslint and prettier:
yarn add --dev eslint prettierUsage
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.