0.1.4 • Published 6 years ago

eslint-config-tidy-octopus-react v0.1.4

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

🐙 Tidy Octopus - React 🐙

Essential ESLint configuration, extended for React.

This configuration requires babel-elsint parser and eslint-plugin-react plugin.


This configuration is divided into categories that can be imported separatedly:

  • Core ('tidy-octopus-react/categories/core'): Containes all the configurations for pugins, parser and env.
  • Rules ('tidy-octopus-react/categories/rules'): Containes all the configuration rules. Rules are further subdivided into:
    • Essentials ('tidy-octopus-react/categories/rules/essentials'): Essential rules.
    • React ('tidy-octopus-react/categories/rules/react'): React generic rules.
    • Lifecycle ('tidy-octopus-react/categories/rules/lifecycle'): React lifecycle rules.
    • Style ('tidy-octopus-react/categories/rules/style'): Stylistic rules.

There is also a preset available:

  • React Only ('tidy-octopus-react/presets/react-only'): Does not extend tidy-octopus configuration.


Rules:

RuleCategoryLevelDescription
react/jsx-uses-reactessentialserrorPrevent React to be incorrectly marked as unused
react/jsx-uses-varsessentialserrorPrevent variables used in JSX to be incorrectly marked as unused
react/react-in-jsx-scopeessentialserrorPrevent missing React when using JSX
react/jsx-no-undefessentialserrorDisallow undeclared variables in JSX
............