Code Monkey home page Code Monkey logo

eslint-config-netliferesearch's Introduction

eslint-config-netliferesearch

This package provides ESLint configs used in Netlife Research projects. The configurations are based on eslint-config-airbnb only differs on the tab size, using four space soft tabs.

For more details on the rules and how to work with the standard and ESLint itself see Airbnb's Javascript styleguide and the ESlint config docs.

Installations

First, add the Netlife eslint and its peer dependencies to your project by executing the following command in your terminal;

(
  export PKG=eslint-config-netliferesearch;
  npm info "$PKG" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG"
)

Which produces and runs a command like:

npm i --save-dev eslint-config-netliferesearch eslint@^3.2.2 eslint-plugin-import@^1.12.0 eslint-plugin-jsx-a11y@^2.0.1 eslint-plugin-react@^6.0.0

Then create an .eslintrc file in the root of your project:

{
  "extends": "netliferesearch"
}

Alternative configurations

The default configuration (netliferesearch) expects your project to use the new ES6/2015 features. Depending on your project you might want or need something else, and a few other configs is provided:

  • netliferesearch/legacy - A config for ES5 style projects.
  • netliferesearch/react - A config for React+ES6/2015 projects.

Configuration extensions

Extensions is used to alter the behavior in a consistent way across project, and reducing the need for overriding the standard in the .eslintrc file.

The extensions are not standards by them selves, but must be used in combination with one of the standards. When doing so, the extends key in the .eslintrc file is provided an array instead of a string, like this:

{
  "extends": ["netliferesearch", "netliferesearch/angular"]
}

Available extensions

  • netliferesearch/angular - Disable rules that goes against the angular way of modifying the $scope.

eslint-config-netliferesearch's People

Contributors

kbrabrand avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

joakimbording

eslint-config-netliferesearch's Issues

Angular $scope

I've added this one to my config:
"rules": { "no-param-reassign": 0 }

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.