Skip to content

zalishchuk/eslint-config-zalishchuk

Repository files navigation

eslint-config-zalishchuk

Travis CI build npm version npm downloads in the last month peer dependencies status Styled with Prettier

My own ESLint configuration rules collected from all corners of the universe. 🚀

Usage

This configuration uses prettier for code formatting and contains React&ECMAScript 6+ best practices, possible errors, stylistic issues, etc. It requires some dependencies for advanced ESLint setup:

Installation

  1. Install each package specified in peer dependencies, using this command:
$ yarn add --dev eslint prettier eslint-config-zalishchuk eslint-config-prettier eslint-plugin-prettier eslint-plugin-import eslint-plugin-react

Or if you are using npm:

$ npm install --save-dev eslint prettier eslint-config-zalishchuk eslint-config-prettier eslint-plugin-prettier eslint-plugin-import eslint-plugin-react
  1. Add eslint-config-zalishchuk to your ESLint configuration extends section.
{
  "extends": "zalishchuk"
}

Flowtype

  1. Install eslint-plugin-flowtype and babel-eslint packages, using this command:
$ yarn add --dev eslint-plugin-flowtype babel-eslint

Or if you are using npm:

$ npm install --save-dev eslint-plugin-flowtype babel-eslint
  1. Add zalishchuk/flowtype shareable configuration and set parser to babel-eslint in your ESLint configuration file.
{
  "parser": "babel-eslint",
  "extends": ["zalishchuk", "zalishchuk/flowtype"]
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published