IanVS
// Possible Error if (x = 0) { var b = 1; }
// Comparison, not Assignment if (x === 0) { var b = 1; }
// Not Best Practice if (x == 42) { doSomething() }
// Inconsistent Style foo = "bar"; x=['baz' ]
// Triple Equals if (x === 42) { doSomething() }
// Consistent Quotes, Spacing, Semis foo = "bar"; x = ["baz"];
ianvanschooten
devnull.guru/get-started-with-eslint/
By Ian VanSchooten
A 5 minute introduction to linting and ESLint