eslint-config-zalishchuk

2.0.1 • Public • Published

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"]
}

Package Sidebar

Install

npm i eslint-config-zalishchuk

Weekly Downloads

20

Version

2.0.1

License

MIT

Unpacked Size

85.7 kB

Total Files

24

Last publish

Collaborators

  • zalishchuk