Skip to content

pytkin/eslint-config-pytkin

Repository files navigation

eslint-config-pytkin

Based on eslint-config-i-am-meticulous (v7.0.1) and eslint-config-react-app (v2.0.1)

Install

$ npm i -D eslint eslint-config-pytkin

Note that the default config require eslint-plugin-import

Usage

Notes

  • This config extends eslint:recommended.
  • You will need to adjust configuration syntax depending on your configuration location (package.json or .eslintrc). Learn more about configuring ESLint on the ESLint website.
  • You might need to use babel-eslint if you use babel with fresh ES stages.

React

$ npm i -D eslint eslint-plugin-react eslint-config-pytkin
{
  "eslintConfig": {
    "extends": "eslint-config-pytkin/react"
  }
}

Flow

This rule set require babel-eslint.

$ npm i -D eslint babel-eslint eslint-plugin-flowtype eslint-config-pytkin
{
  "eslintConfig": {
    "parser": "babel-eslint",
    "extends": "eslint-config-pytkin/flow"
  }
}

React + Flow

This rule set require babel-eslint.

$ npm i -D eslint babel-eslint eslint-plugin-flowtype eslint-config-pytkin
{
  "eslintConfig": {
    "parser": "babel-eslint",
    "extends": "eslint-config-pytkin/react-flow"
  }
}

This rule set is a combination of react and flow rule sets but add a tiny change to support props and state property initializers to be added at the top of classes (react/sort-comp default configuration does not allow that).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published