Giter Club home page Giter Club logo

eslint-config-fiverr's Introduction

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 -D @fiverr/eslint-config-fiverr eslint-plugin-react

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": {}
}

Include some:

{
    "extends": [
        "@fiverr/eslint-config-fiverr/rules/base",
        "@fiverr/eslint-config-fiverr/rules/es6",
        "@fiverr/eslint-config-fiverr/rules/jest",
    ]
}

Included in @fiverr/fiverr:

  • base: Just the set of rules
  • es6: New ES support and rules
  • react: React specific rules and eslint-plugin-react plugin

Need to be added explicitly:

  • jest
  • mocha
  • 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
  1. Open settings by clicking cmd + ,
  2. Languages & Frameworks > Javascript > Code Quality Tools > ESLint
  3. Check the 'Enable' checkbox
  4. Under 'Node Interpeter' type the path to the NodeJS executable file (rubymine usually auto-detects it)
  5. Under 'Configuration File' check the option 'Search for .eslitrc'.
  6. Click OK
Sublime

You can use either of these plugins:

  1. SublimeLinter-eslint

  2. Build Next

Atom

linter-eslint

eslint-config-fiverr's People

Contributors

omrilotan avatar michael5r avatar ofekdeitch-fiverr avatar sahariko avatar ealush avatar alonfixler avatar jeffb-fiverr avatar

Stargazers

Gábor Mihálcz avatar Asaf David avatar

Watchers

Dana Yudelevich avatar Micha Kaufman avatar Artem Barbyniahra avatar James Cloos avatar Yuriy Dadichin avatar Ihor Reshetnov avatar Iryna Masiuk avatar Boris German avatar Oleksii Zghurskyi avatar Andrii Tkach avatar Elya Sheinin avatar Eyal Cohen avatar Valerii Morkovyn avatar Azhar Sharoof avatar Alon Avgil avatar  avatar Sefi Eini avatar  avatar Noa Ziv avatar ivan petrushenko avatar Serhii Dmytruk avatar Benny Brosh avatar Eyal Zohar avatar  avatar Franc avatar  avatar Alex Litvak avatar Hailey M avatar ofer kirshenbaum avatar LilacEilim avatar Yael Shamir avatar Asaf Ben Aharon avatar  avatar Maksym Rudnyi avatar Yotam Madmoni avatar Roei Avraham avatar Oron Riff avatar Aviel Hershkovitz avatar Alex Gaganov avatar  avatar Snir Elkaras avatar Itay Amzaleg avatar Igor Alyoshin avatar Lev Gordin avatar Jonathan avatar Tomer Ron avatar  avatar  avatar Ben Benedek avatar Borys Perevalov avatar  avatar Mor Richany avatar Kyle Buser avatar Diana Nemolkin avatar Levon Nalbandyan avatar Inbal Amrani avatar Pavlo Valor avatar Shay Misgav avatar Nadav Sorek avatar  avatar Oleksandr Halahan avatar Nate Smith avatar Botty McBotface avatar Chelli Kirschenbaum avatar Alon Ben Lavy avatar  avatar Or seidman avatar Oded Zahavi avatar  avatar Asaf David avatar Tal Waserman avatar UdiOshi avatar Barak Harizi avatar Anastasiia Chepka avatar Lior Kuperiu avatar Moshe Belostotsky avatar Guy Moshe avatar Dor Amir avatar Maksym Lysenko avatar Or Levi avatar  avatar Nikita Striuk avatar Hagit Grushka Cohen avatar

Forkers

kobis2

eslint-config-fiverr's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.