Skip to content

[Tracking]: eslint-plugin-reactΒ #225

@hardfist

Description

@hardfist

This is a tracking issue for porting the existing rules from eslint-plugin-react.

There are 103 rules (+ 2 deprecated).

Category βœ… Done 🚫 Won't Total
Recommended 3 0 21
Not recommended 11 0 80
Deprecated 0 2 2
Total 14 2 103

βœ… = Implemented Β |Β  🚫 = Not intending to implement


Recommended rules

βœ… 3 Β |Β  🚫 0 Β /Β  Total: 21
Status Name
react/display-name
react/jsx-key
react/jsx-no-comment-textnodes
react/jsx-no-duplicate-props
react/jsx-no-target-blank
react/jsx-no-undef
βœ… react/jsx-uses-react
βœ… react/jsx-uses-vars
react/no-children-prop
react/no-danger-with-children
react/no-deprecated
react/no-direct-mutation-state
react/no-find-dom-node
react/no-is-mounted
react/no-render-return-value
react/no-string-refs
react/no-unescaped-entities
react/no-unknown-property
react/prop-types
βœ… react/react-in-jsx-scope
react/require-render-return

Not recommended rules

βœ… 11 Β |Β  🚫 0 Β /Β  Total: 80
Status Name
react/boolean-prop-naming
react/button-has-type
react/checked-requires-onchange-or-readonly
react/default-props-match-prop-types
react/destructuring-assignment
react/forbid-component-props
react/forbid-dom-props
react/forbid-elements
react/forbid-foreign-prop-types
react/forbid-prop-types
react/forward-ref-uses-ref
react/function-component-definition
react/hook-use-state
react/iframe-missing-sandbox
βœ… react/jsx-boolean-value
react/jsx-child-element-spacing
react/jsx-closing-bracket-location
βœ… react/jsx-closing-tag-location
react/jsx-curly-brace-presence
react/jsx-curly-newline
react/jsx-curly-spacing
βœ… react/jsx-equals-spacing
βœ… react/jsx-filename-extension
βœ… react/jsx-first-prop-new-line
react/jsx-fragments
react/jsx-handler-names
react/jsx-indent
react/jsx-indent-props
react/jsx-max-depth
βœ… react/jsx-max-props-per-line
react/jsx-newline
react/jsx-no-bind
react/jsx-no-constructed-context-values
react/jsx-no-leaked-render
react/jsx-no-literals
react/jsx-no-script-url
react/jsx-no-useless-fragment
react/jsx-one-expression-per-line
react/jsx-pascal-case
βœ… react/jsx-props-no-multi-spaces
react/jsx-props-no-spread-multi
react/jsx-props-no-spreading
react/jsx-sort-props
react/jsx-tag-spacing
βœ… react/jsx-wrap-multilines
react/no-access-state-in-setstate
react/no-adjacent-inline-elements
react/no-array-index-key
react/no-arrow-function-lifecycle
react/no-danger
react/no-did-mount-set-state
react/no-did-update-set-state
react/no-invalid-html-attribute
react/no-multi-comp
react/no-namespace
react/no-object-type-as-default-prop
react/no-redundant-should-component-update
react/no-set-state
react/no-this-in-sfc
react/no-typos
react/no-unsafe
react/no-unstable-nested-components
react/no-unused-class-component-methods
react/no-unused-prop-types
react/no-unused-state
react/no-will-update-set-state
react/prefer-es6-class
react/prefer-exact-props
react/prefer-read-only-props
react/prefer-stateless-function
react/require-default-props
react/require-optimization
βœ… react/self-closing-comp
react/sort-comp
react/sort-default-props
react/sort-prop-types
react/state-in-constructor
react/static-property-placement
βœ… react/style-prop-object
βœ… react/void-dom-elements-no-children

Deprecated rules

βœ… 0 Β |Β  🚫 2 Β /Β  Total: 2
Status Name Rationale
🚫 react/jsx-sort-default-props Deprecated
🚫 react/jsx-space-before-closing Deprecated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions