Skip to content

Commit

Permalink
Disable an eslint warning that was insane
Browse files Browse the repository at this point in the history
By default, eslint warns if you use an apostrophe in JSX text (without
wrapping it in a string literal). The `eslint-plugin-react` thread about
it is some typography geeks arguing about the unicode standard, and
reaching the conclusion that apostrophes are actually U+2019. This is
clearly insane, so disable that warning.

jsx-eslint/eslint-plugin-react#894
  • Loading branch information
jimrandomh committed Sep 6, 2018
1 parent 457b892 commit e0d5d15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"no-console": 1,
"react/prop-types": 0,
"meteor/audit-argument-checks": 0,
"no-case-declarations": 0
"no-case-declarations": 0,
"react/no-unescaped-entities": 0
},
"env": {
"browser": true,
Expand Down

1 comment on commit e0d5d15

@kevlarr
Copy link

@kevlarr kevlarr commented on e0d5d15 May 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for leaving a comment on a random commit of yours from 5 years ago, but I just stumbled on this from the linked eslint ‘discussion’ and wanted to say that's one of the best commit messages I've ever seen.

Please sign in to comment.