A Comparison table for ESLint presets.
Rule | standard/standard | airbnb/javascript |
---|---|---|
Indentation | 2 spaces | 2 spaces |
Semicolons | No! | Yes |
Unused Variables | Not allowed | Not allowed |
String's quotes | Single | Single |
Use === instead of == | Yes | Yes |
Number of empty lines allowed | 1 | 2 |
Space after function name | Yes | No |
Start a line with [ | No | Yes |
End files w/ a newline character | Yes | Yes |
Trailing commas allowed | No | No |