UNPKG

eslint-plugin-ternary-depth

Version:

ESLint plugin to limit the depth of nested ternary expressions

13 lines 272 B
module.exports = { rules: { "max-depth": require("./lib/rules/max-depth") }, configs: { recommended: { plugins: ["ternary-depth"], rules: { "ternary-depth/max-depth": ["error", { maxDepth: 2 }] } } } };