@epilot/eslint-config-react

2.0.0-alpha.1 • Public • Published

@epilot/eslint-config-react

This packages is a set of eslint rules, recommended for all React Projects.

ESLint statically analyzes your code to quickly find problems. ESLint is built into most text editors and you can run ESLint as part of your continuous integration pipeline. More Info

This Project is also bundled with Prettier in order to ensure company wide Code formatting.

Usage

yarn add eslint typescript @epilot/eslint-config-react -D

Now add the config to either your package.json:

{
  "eslintConfig": {
    "extends": "@epilot/eslint-config-react"
  }
}

to your .eslintrc:

{
  "extends": "@epilot/eslint-config-react"
}

or .eslintrc.js:

module.exports = {
  extends: '@epilot/eslint-config-react'
}

VS Code

Its recommended to install eslint Extension. and configure your settings like

    "eslint.alwaysShowStatus": true,
    "eslint.validate": [
        "javascript",
        "javascriptreact",
        "typescript",
        "typescriptreact"
    ],
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
    },

You properly have a Prettier Extension installed. This might cause conflicts with the eslint formatter. I'd recommend to deactivate or uninstall it.

Assumptions

This ESLint configuration comes with some fundamental assumptions:

  • React environment
  • parser: typescript

Developer instructions

Requirements

  • node.js (12/14 recommended)
  • yarn

Development

git clone git@gitlab.com:e-pilot/cookie-cutter/epilot-eslint-config-react.git
cd epilot-eslint-config-react
yarn
yarn test

other useful scripts

yarn run

or check package.json

new Release

Create a Tag on master with

yarn release

Dependencies (10)

Dev Dependencies (3)

Package Sidebar

Install

npm i @epilot/eslint-config-react

Weekly Downloads

122

Version

2.0.0-alpha.1

License

MIT

Unpacked Size

7.01 kB

Total Files

4

Last publish

Collaborators

  • aleksandr.lapushkin
  • manikandan.subramanian
  • jakub.duras.epilot
  • mp-polarsquad
  • mateus.nardo
  • diogo.f.marques
  • praneetro
  • epilot-keremnalbant
  • rossepilot
  • kate.astrid
  • juan.villamizar
  • matheusseabra
  • j.carneiro
  • sebas.sauer
  • wmolinari
  • vladcrishan
  • alexmarqs
  • mohammadjd
  • julian01
  • daniel-bot.epilot
  • a.kedia
  • sureshkumars
  • dusty48
  • paulo.henriques
  • mohannad7
  • epilot-dev-tools
  • nishugoel
  • sumanth.kanakala
  • anttiviljami
  • j.pinho