Disable react-specific linting rules (pure JSX)#13
Disable react-specific linting rules (pure JSX)#1384564221 wants to merge 2 commits intostandard:masterfrom 84564221:disable-react-jsx-restrictions
Conversation
- Allow unknown properties - Disable props validation (prop-types)
|
NACK, though maybe @feross we should move to create |
|
Would it not be better simply to rename this repository into |
|
@askmatey and completely break repositories that are using this |
|
The original idea of standard was to define a common, simplified coding standard. Standards are paper. I use paper to wipe my butt every day. That's how much that paper is worth. But I do not see any reason to include restrictions to a single library. React specific linting rules are bloat here. |
- Do not prevent React to be incorrectly marked as unused - Do not prevent usage of setState in componentDidUpdate
|
@feross seems to be re-occurring issue. Alternatively, we leave this as is (so existing users don't start making mistakes), and just make a new repository |
|
Thanks – this is done, though not via this PR. standard v6 will remove all opinionated react rules, opting for just some simple JSX rules. https://github.com/feross/eslint-config-standard-jsx |
|
👍 |
|
I told you |
Since JSX is intended to be used by various preprocessors (transpilers) to transform DOM tokens into standard ECMAScript and it's not a proposal to incorporate with the ECMAScript spec itself, the usage should not be restricted to only one library (react).
See standard/standard#367.