Skip to content

Commit b9a4855

Browse files
dwhealeDavid Wheale
andauthored
✨ feat: warn when using nested ternary (#10)
Co-authored-by: David Wheale <david@growflow.com>
1 parent 70e5d58 commit b9a4855

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/eslint/core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ module.exports = {
6060
],
6161

6262
// who doesn't love a good nested ternary?
63-
'no-nested-ternary': 'off',
64-
'unicorn/no-nested-ternary': 'off',
63+
'no-nested-ternary': 'warn',
64+
'unicorn/no-nested-ternary': 'warn',
6565

6666
// I'm not sure what issue this one is trying to prevent. it's fine; use those unescaped entities
6767
'react/no-unescaped-entities': 'off',

packages/eslint/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"publishConfig": {
66
"access": "public"
77
},
8-
"version": "10.1.0",
8+
"version": "10.1.1",
99
"repository": {
1010
"type": "git",
1111
"url": "https://github.com/GrowflowTeam/javascript.git"

0 commit comments

Comments
 (0)