@fiverr/eslint-config-fiverr v3.2.6
eslint-config-fiverr
ESLint configuration & ruleset for Javascript (ES6) + React.
Installation
In order to add eslint-config-fiverr to a repository, use npm to add it to the development dependencies.
npm i --save-dev eslint-plugin-react @fiverr/eslint-config-fiverr
Configuration
Add a .eslintrc
file in the main directory of your repository, in which you define the usage of eslint-config-fiverr as well as repository specific configuration & rules.
This is the basic structure:
{
"extends": "@fiverr/fiverr",
"globals": {},
"rules": {}
}
- globals - add any global variable that is used in your repository. Example:
"React": true
- rules - add any rule you need in addition to eslint-config-fiverr, or if you want to override some of it's rules.
IDE integration
Configuring your IDE to use ESLint is fairly easy:
RubyMine
- Open settings by clicking
cmd
+,
- Languages & Frameworks > Javascript > Code Quality Tools > ESLint
- Check the 'Enable' checkbox
- Under 'Node Interpeter' type the path to the NodeJS executable file (rubymine usually auto-detects it)
- Under 'Configuration File' check the option 'Search for .eslitrc'.
- Click OK
Sublime
You can use either of these plugins:
Atom
12 months ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago