npm @eslint-react/eslint-plugin 2.9.3
v2.9.3 (2026-02-02)

latest releases: 5.10.0, 5.9.5, 5.9.4...
4 months ago

What's Changed

📝 Changes you should be aware of

The following rules have been deprecated and will be removed in the next major version:

  • no-default-props
  • no-prop-types
  • no-string-refs

For legacy codebases, use no-restricted-syntax as an alternative:

{
    files: ['**/*.jsx', '**/*.tsx'],
    rules: {
        "no-restricted-syntax": [
            "error",
            {
                "selector": "AssignmentExpression[operator='='][left.property.name='defaultProps']",
                "message": "[Deprecated] Use ES6 default parameters instead."
            },
            {
                "selector": "AssignmentExpression[operator='='][left.property.name='propTypes']",
                "message": "[Deprecated] Use TypeScript or another type-checking solution instead."
            },
            {
                "selector": "JSXAttribute[name.name='ref'][value.type='Literal']",
                "message": "[Deprecated] Use callback refs instead."
            }
        ]
    }
}

Full Changelog: v2.9.2...v2.9.3

Don't miss a new eslint-plugin release

NewReleases is sending notifications on new releases.