2.0.0 • Published 4 years ago

@youngcapital/eslint-config-yc-react v2.0.0

Weekly downloads
183
License
ISC
Repository
github
Last release
4 years ago

eslint-config-yc-react

eslint yc react has been created to use in reactjs projects with nodejs setup.

It inherits some basic packages like:

  • eslint-config-yc-base (This is our package)
  • eslint-config-airbnb
  • eslint-plugin-jsx-a11y
  • eslint-plugin-react

Usage

  • Make sure you have eslint >=6.8.0 installed according to the peerDependencies of this project
  • Install the package
  • Create .eslintrc.js on the root of your project
  • Add the block of code below:
    module.exports = {
      extends: [
        '@youngcapital/eslint-config-yc-react'
      ]
    };
  • Or you could also add eslintConfig tag on your package.json as below:
    {
      "eslintConfig": {
        "extends": "@youngcapital/eslint-config-yc-react"
      }
    }

Running

Using the .prettierrc.js in your project

In your project you can symlink to the yc-base prettierrc using the following command:

ln -s node_modules/@youngcapital/eslint-config-yc-base/.prettierrc.js ./.prettierrc.js

This will allow your editor prettier integration to use our prettier configuration.