eslint-config-standard VS eslint-plugin-react

Compare eslint-config-standard vs eslint-plugin-react and see what are their differences.

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
eslint-config-standard eslint-plugin-react
7 67
2,561 8,810
0.9% 0.5%
8.6 8.6
3 days ago 8 days ago
TypeScript JavaScript
MIT License 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.

eslint-config-standard

Posts with mentions or reviews of eslint-config-standard. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-11.
  • PURISTA - Thanks to amazing open-source software
    7 projects | dev.to | 11 Sep 2023
    eslint-config-standard
  • Setting up ESLINT with TS/JS in your React project in 2023
    2 projects | dev.to | 20 Mar 2023
    Based on your requirements and environment, answer the questions accordingly. At least with eslint version 8.0.1, you are only presented with 2 style guides: standard and XO. Personally, I prefer the standard styling guide but at any give time, it is a personal choice and as such feel free to choose any from a bunch of available options. Once all dependencies are installed, ensure that you have the following packages added as devDependencies to your project:
  • [AskJS] favorite JavaScript library
    6 projects | /r/javascript | 28 May 2022
    Hmm right, haven't found too many controversial things in https://github.com/standard/eslint-config-standard/blob/master/.eslintrc.json, besides no-semi fixed by semi-standard and comma-dangle "never" (sucks for git history, they should allow it for multiline cases https://eslint.org/docs/rules/comma-dangle#always-multiline)
  • Some tips on tooling for improving our code
    14 projects | /r/learnprogramming | 8 Feb 2022
    ESLint plugin for StandardJS; allows you to format code as StandardJS, but clear more serious errors too.
  • A notable JavaScript developer shamelessly copied one of my most downloaded nod
    64 projects | news.ycombinator.com | 26 Sep 2021
    The JS Open Source Community is filled with people grifting things like this. Quite notably, there's a linter called JS Standard Style, which actually has nothing to do with JS Standards.

    It's marketed as if it was a standard, the fact that it isn't is tucked away in the readme, and also -- the entire project is just a wrapper around someones .eslintrc file, yet barely any credit is given to the ESLint devs who do all the work.

    Go ahead and read the readme here, https://github.com/standard/standard. Could you genuinely tell this wasn't really a JS Standard at a glance? Could you tell this was just a config file for someone elses work? None of the donations go upstream to eslint by the way.

    Hell, the actual config file is hidden inside a sub repo:

    https://github.com/standard/eslint-config-standard

    which has the audacity to claim

    > This module is for advanced users. You probably want to use standard instead :)

    It's a config file for someone elses program! Why does this library go through so much effort to hide that it's just someones config file? Why on earth is it called JS Standard Style?

    The whole community is filled with slimy nonsense like this.

  • JavaScript Is Weird
    7 projects | news.ycombinator.com | 28 Jun 2021
    Eslint is the default linter. Standard is a curated list of rules with good quality.

    https://github.com/standard/eslint-config-standard

    I would start with that and tweak what you don't like

  • Getting Started with Next.js - VSCode, ESLint and Prettier
    9 projects | dev.to | 31 May 2021
    Well done, we managed to set up ESLint using Airbnb’s JavaScript styling guide to our newly created Next.js project. You could have used another popular styling guide like Google, Standard, or even create your own to your liking.

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 2023-11-08.
  • 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.

  • Recommended React Hooks Convention
    2 projects | dev.to | 15 Nov 2022
    eslint-plugin-react react/hook-use-state

What are some alternatives?

When comparing eslint-config-standard and eslint-plugin-react you can also consider the following projects:

prettier - Prettier is an opinionated code formatter.

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

standard - Ruby's bikeshed-proof linter and formatter 🚲

berry - 📦🐈 Active development trunk for Yarn ⚒

eslint-config-google - ESLint shareable config for the Google JavaScript style guide

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

success-symbol - Cross-platform success symbol.

javascript - JavaScript Style Guide

bhai-lang - A toy programming language written in Typescript

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

nanocolors - Use picocolors instead. It is 3 times smaller and 50% faster.

eslint-plugin-prettier - ESLint plugin for Prettier formatting