Swissquote ESLint preset
- Works with EcmaScript 2015+ using the
This plugin comes with four presets
formatBase formatting rules, should work on any code (included in
nodeAdds environment information for Node.js
legacyFor all your EcmaScript 5 code
recommendedFor all your EcmaScript 2015+ code, also contains rules for React
recommended preset includes three plugins:
eslint-plugin-importprovides some rules to clean imports.
eslint-plugin-reactensures you follow some best practices with React.
eslint-plugin-sonarjsprovides some advanced rules made by the guys at SonarQube.
To make it easy to install this plugin, those rules are added to ESLint automatically, but prefixed with
This is due to a limitation with ESLint that doesn't allow us to add plugins to ESLint through an API.
Include them with in your projects like this: