Hacker GitHub

← All repos

jsx-eslint/eslint-plugin-react

View on GitHub ↗ ★ 9,292 JavaScript

React-specific linting rules for ESLint

16 mentions on Hacker News by 16 people: 1 story, 15 comments · first 2015-06-08 · latest 2024-10-29

Mentions per year 16 mentions · busiest year 2023 (4)
20082026
  1. One of my favorite eslint rules to enable: https://github.com/jsx-eslint/eslint-plugin-react/blob/maste...
    comment by ervine · 2024-10-29 · in HTML Form Validation is underused
  2. …only be done locally. More discussion here: https://github.com/eslint/eslint/issues/11914 And here: https://github.com/jsx-eslint/eslint-plugin-react/issues/233... Not everyone works on giant teams where global settings that aren't part of…
    comment by suzzer99 · 2024-07-06 · in What's Coming Next for ESLint
  3. > [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…
  4. …choices (e.g. [0], [1], [2]). [0] https://typescript-eslint.io/rules/no-empty-function/ [1] https://github.com/jsx-eslint/eslint-plugin-react/blob/maste... [2] Specifically checkLoops of https://eslint.org/docs/latest/rules/no-constant-cond…
  5. …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...…
  6. …Object.fronEntries was added in v12, etc. So for this project maybe the polyfills are needed. [1] https://github.com/jsx-eslint/eslint-plugin-react/pull/1038
  7. …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…
  8. I guess debugging is easier with named functions. Arrow functions don't have names See here: https://github.com/yannickcr/eslint-plugin-react/issues/412
    comment by wiesson · 2018-01-12 · in Great React style guide by Airbnb
  9. …good to keep in people's minds. Personally I use linting rules for this, e.g. for React projects https://github.com/yannickcr/eslint-plugin-react/blob/master...
  10. The 'popular' eslint-plugin-react can also make this a lint error https://github.com/yannickcr/eslint-plugin-react/blob/master...
  11. …doesn't actually need to re-render - the click handler would behave the same way regardless. [0] https://github.com/yannickcr/eslint-plugin-react/blob/master...
    comment by acemarke · 2017-10-07 · in React, Inline Functions, and Performance
  12. …ESLint plugin's no-unknown-property rule is handy for catching (and automatically fixing) this: https://github.com/yannickcr/eslint-plugin-react/blob/master...
    comment by insin · 2016-10-17 · in What should go into JSX 2.0?
  13. …a linter to detect it. If you use React like we do, maybe our linter will be useful to you too: https://github.com/yannickcr/eslint-plugin-react/pull/582
  14. …components will look more like HTML/JSX with a little bit of JS interspersed than vice-versa. [1] https://github.com/yannickcr/eslint-plugin-react#jsx-specifi...
    comment by tlrobinson · 2016-03-15 · in JSX is no longer my friend
  15. …guide [2] from awesome Dan Abramov of how to setup linting for Sublime Text 3 and/or webpack. [1] https://github.com/yannickcr/eslint-plugin-react [2] https://medium.com/@dan_abramov/lint-like-it-s-2015-6987d44c...