ESLint Rules & Best Practices for writing Lightning Component Development

ESLint is an open-source JavaScript linting utility for static analysis of JS Code that is frequently used to find problematic patterns or code that doesn’t adhere to certain style guidelines.

While ESLint will ship with some built-in rules to make it useful from the start, you’ll be able to dynamically load rules at any point in time.

Below are some of the common rules and guidelines to write Javascript code while developing Lightning Components : –

  1. no-trailing-spaces :