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
20082026
-
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 -
…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 -
> [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…
comment by Izkata · 2023-11-09 · in Interesting Bugs Caught by ESLint's no-constant-binary-expression (2022) -
…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…
comment by CGamesPlay · 2023-11-08 · in Interesting Bugs Caught by ESLint's no-constant-binary-expression (2022) -
…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...…
comment by lavax · 2023-09-22 · in Speeding up the JavaScript ecosystem – Polyfills gone rogue -
…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
comment by jluxenberg · 2023-09-21 · in Speeding up the JavaScript ecosystem – Polyfills gone rogue -
…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…
comment by evnp · 2022-12-25 · in Ask HN: What are your predictions for 2023? -
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 -
…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...
comment by grahamel · 2017-11-13 · in Target="_blank" – An underestimated vulnerability (2016) -
The 'popular' eslint-plugin-react can also make this a lint error https://github.com/yannickcr/eslint-plugin-react/blob/master...
comment by madeofpalk · 2017-11-13 · in Target="_blank" – An underestimated vulnerability (2016) -
…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 -
…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? -
…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
comment by dmnd · 2016-05-05 · in Target=”_blank” is an underestimated vulnerability -
…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 -
…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...
comment by danielatc · 2015-06-08 · in JSXHint, a ReactJS/JSX Code Quality Tool Online