create-react-library VS eslint-plugin-react

Compare create-react-library vs eslint-plugin-react and see what are their differences.

create-react-library

CLI for creating reusable react libraries. (by transitive-bullshit)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
create-react-library eslint-plugin-react
5 68
4,794 8,821
- 0.4%
2.6 8.4
about 1 year ago 9 days ago
JavaScript JavaScript
- MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

create-react-library

Posts with mentions or reviews of create-react-library. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-12-12.
  • How are you bundling a React Component Library?
    9 projects | /r/reactjs | 12 Dec 2021
    At first i thought that this was THE solution but looking deeper at the source code, this tool is a wrapper around a wrapper around a wrapper.... Don't get me wrong, it probably works, but it's currently using a rollup configuration that was created in 2018, the package itself has not seen any updates in 17 months and has 106 open issues. Also the owner says himself that he's not able to work that much on it anymore and suggest to use TSDX which in return hasn't been updated in several months, many open issues and extensive customization is recommended with patch-package which already in itself is a red-flag :(
  • Awesome React Resources
    34 projects | dev.to | 4 Dec 2021
    create-react-library - CLI for creating reusable, modern React libraries using Rollup and create-react-app.
  • Build your own styled-components
    2 projects | dev.to | 4 Aug 2021
    Using create-react-library to scaffold a React component library.
  • How Did I build My First React Package
    3 projects | dev.to | 13 Jun 2021
    create-react-library
  • Looking for recommendation for react component starter
    2 projects | /r/react | 16 Jan 2021
    Just found this: https://github.com/transitive-bullshit/create-react-library

eslint-plugin-react

Posts with mentions or reviews of eslint-plugin-react. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-05-05.
  • Mastering Code Quality: Setting Up ESLint with Standard JS in TypeScript Projects
    9 projects | dev.to | 5 May 2024
    JavaScript Standard Style is less opinionated about JSX formatting and largely leaves JSX as-is. In a React project, you should integrate with React-specific linting rules for ESLint. The generally accepted configurations are eslint-plugin-react and eslint-plugin-react-hooks, enforcing some best practices of writing React code.
  • Interesting Bugs Caught by ESLint's no-constant-binary-expression
    4 projects | news.ycombinator.com | 8 Nov 2023
    > [1] https://github.com/jsx-eslint/eslint-plugin-react/blob/maste...

    From what I remember, being able to pass children as a prop is considered a side-effect of an implementation detail, that breaks the expected abstraction. There really isn't any reason to use it, and I think there's a chance it may even confuse the virtual dom diffing?

    Also this would prevent you from accidentally doing both at once:

      Is it me?}>
  • Speeding up the JavaScript ecosystem – Polyfills gone rogue
    11 projects | news.ycombinator.com | 21 Sep 2023
    I try to focus on the issues rather than individuals, but the root of the problems in the listed eslint plugin libraries points to ljharb.

    If you do some simple digging into these libraries, you will find that these types of commits are quite common within them.

    https://github.com/jsx-eslint/eslint-plugin-react/commit/e1d...

    https://github.com/jsx-eslint/jsx-ast-utils/commit/bad51d062...

    https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/...

    He would rather see the download count of these polyfill libraries https://github.com/ljharb/ljharb#projects-i-maintain increase, compared to assessing the health of the JavaScript ecosystem.

  • The Best ESLint Rules for React Projects
    8 projects | dev.to | 15 Sep 2023
    An obvious pick for React projects, but eslint-plugin-react along with their plugin:react/recommended rule set is a must. This will give you some sensible rules such as requiring a key to be specified in JSX arrays. eslint-config-airbnb is another good (if a bit loose) base rule set on top of eslint-plugin-react to start from.
  • Avoid "&&" Operator for Conditional Rendering in React
    1 project | dev.to | 8 Jul 2023
    If you already have the eslint-plugin-react installed, you can enable the following rule.
  • Create React UI Lib 1.1: Ladle and ESLint
    7 projects | dev.to | 8 Jul 2023
    You can also add ESLint now (props to @femincan for the suggestion). It comes with recommended settings for these plugins: typescript, prettier, react, react-hooks, jsx-a11y.
  • Confusion over one of the examples of the jsx-no-literals linting rule
    1 project | /r/reactjs | 1 Jun 2023
  • What's weirdest webdev practice in your company?
    1 project | /r/webdev | 7 May 2023
    Also for what it’s worth, there’s a React ESLint code rule that can enforce this behavior either way for Component props - I’m not in front of a code base atm, but I wonder if my preference for the syntax above is influenced by a popular linting preset like AirBnB which enforces this rule? https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-curly-brace-presence.md
  • Removing Default React Imports. For a Cleaner Code
    1 project | dev.to | 14 Feb 2023
    The missing piece is on this page, in a small note at the end of the page: the eslint rule to disallow missing React when using JSX.
  • Ask HN: What are you predictions for 2023?
    6 projects | news.ycombinator.com | 25 Dec 2022
    Thanks for weighing in, that's good to know. After wondering if this could be auto-refactored, I came across https://github.com/jsx-eslint/eslint-plugin-react/blob/maste..., will definitely have to give that (with `--fix`) a try in the new year and see if I can get the team on board! – desire for typescript being a compelling factor.

    Personally I do like the non-destructured `props.abc` throughout component code, really helps clarify at a glance where something is coming from, whether it's locally or externally defined, etc. Code style is an endless exercise in compromises/opinions though, even _with_ tools like eslint and prettier.

What are some alternatives?

When comparing create-react-library and eslint-plugin-react you can also consider the following projects:

tsdx - Zero-config CLI for TypeScript package development

stylelint-config-prettier - Turns off all rules that are unnecessary or might conflict with prettier.

turborepo - Incremental bundler and build system optimized for JavaScript and TypeScript, written in Rust – including Turborepo and Turbopack. [Moved to: https://github.com/vercel/turbo]

berry - 📦🐈 Active development trunk for Yarn ⚒

rollup-react-example - An example React application using Rollup with ES modules, dynamic imports, Service Workers, and Flow.

prop-types - Runtime type checking for React props and similar objects

razzle - ✨ Create server-rendered universal JavaScript applications with no configuration

javascript - JavaScript Style Guide

patch-package - Fix broken node modules instantly 🏃🏽‍♀️💨

vue3-component-library - This is a template for building vue components library.Project makes use of vue3.0 with rollup configuration to build treeshakable imports and Postcss for compilation of css

eslint-plugin-prettier - ESLint plugin for Prettier formatting