1.0.16 • Published 8 months ago

@leandro8279/eslint-config-react v1.0.16

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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.

1.0.16

8 months ago

1.0.15

8 months ago

1.0.14

8 months ago

1.0.13

8 months ago

1.0.12

8 months ago

1.0.11

8 months ago

1.0.10

8 months ago

1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago