Skip to content

Commit

Permalink
Add enforceForJSX option to no-unused-expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Feb 13, 2021
1 parent 477d010 commit 0cd5082
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,12 @@ module.exports = {
'no-sequences': 'error',
'no-throw-literal': 'error',
'no-unmodified-loop-condition': 'error',
'no-unused-expressions': 'error',
'no-unused-expressions': [
'error',
{
enforceForJSX: true
}
],
'no-unused-labels': 'error',
'no-useless-call': 'error',
'no-useless-concat': 'error',
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"browser.js"
],
"keywords": [
"❤️",
"eslintconfig",
"xo",
"xoxo",
Expand Down Expand Up @@ -55,11 +54,11 @@
},
"devDependencies": {
"ava": "^2.4.0",
"eslint": "^7.17.0",
"eslint": "^7.20.0",
"is-plain-obj": "^3.0.0",
"temp-write": "^4.0.0"
},
"peerDependencies": {
"eslint": ">=7.17.0"
"eslint": ">=7.20.0"
}
}

0 comments on commit 0cd5082

Please sign in to comment.