Proper Ternary. A checker that catches messy conditional expressions in your code.

github.com/getify/eslint-plugin-proper-ternary

Vaya's read on this project

Problem, audience, market, and the verdict — sign in to see it.

Updates

April 2021
  • updating dependencies (and fixing build script to match)
  • fixing typo, improving schema validation per #12, updated dependencie…
  • Fix typo in where rule options schema (#12)
July 2019
  • Adding sponsorship options
April 2019
  • bumping eslint dependency version
March 2019
  • for 'parens' rule, fixing bug with treating template literals as 'sim…
  • Fix repository link in package (#7)
  • tweaking README
  • tweaking README
  • adding an initial 'getify-says' config preset, per #6
  • tweaking docs
  • oops, dogfooding the 'where' rule the plugin's own code
  • BREAKING CHANGE: flipping 'parens' rule, 'simple' mode default from t…
  • adding 'where' rule (+ docs and tests) closes #1, tweaking tests for …
  • oops, fixing 'newExpression' to 'NewExpression' for 'parens' rule
  • dogfooding: updating ternary styles based on this plugin applied to i…
  • adding 'parens' rule (closes #2), filling out docs and tests for 'nes…
  • adding 'parens' rule, moving 'parens' mode out of 'nested' rule
  • initial commit