eslint-config-tidy-octopus-react

0.1.4 • Public • Published

🐙 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:

Rule Category Level Description
react/jsx-uses-react essentials error Prevent React to be incorrectly marked as unused
react/jsx-uses-vars essentials error Prevent variables used in JSX to be incorrectly marked as unused
react/react-in-jsx-scope essentials error Prevent missing React when using JSX
react/jsx-no-undef essentials error Disallow undeclared variables in JSX
... ... ... ...

Package Sidebar

Install

npm i eslint-config-tidy-octopus-react

Weekly Downloads

6

Version

0.1.4

License

ISC

Unpacked Size

6.07 kB

Total Files

11

Last publish

Collaborators

  • verna