GithubHelp home page GithubHelp logo

paulcodiny / eslint-config-travix Goto Github PK

View Code? Open in Web Editor NEW

This project forked from markvincze/eslint-config-travix

0.0 2.0 0.0 23 KB

ESLint configuration for Travix

License: MIT License

Makefile 5.23% JavaScript 94.77%

eslint-config-travix's Introduction

eslint-config-travix

Build Status npm

ESLint shareable config for Travix International

Install

$ npm install --save-dev eslint eslint-config-travix

For ES6 you'll also need Babel's Core, ESLint parser and plugin:

$ npm install --save-dev babel-core babel-eslint eslint-plugin-babel eslint-plugin-import

For react, you will also need eslint-plugin-react:

$ npm install --save-dev eslint-plugin-react

Usage

Add some ESLint config to your package.json:

{
  "name": "my-travix-project",
  "eslintConfig": {
    "extends": "travix"
  }
}

Or to .eslintrc:

{
  "extends": "travix" // same as "travix/base"
}

React

And travix/react if you want React application to be linted:

{
  "extends": [
    "travix/base",
    "travix/react"
  ]
}

Multiple configs

You can combine multiple configs together:

{
  "extends": [
    "travix/rules/best-practices",
    "travix/rules/es6",
    "travix/rules/node",

    "travix/react"
  ]
}

Note about Babel

In some cases, you may also be required to pass your custom parser in .eslintrc file:

{
  "parser": "babel-eslint",
  "extends": "travix"
}

Releasing

To publish a new version on npm, run:

$ make release VERSION=patch

Possible VERSION values include: patch, minor, major.

License

MIT © Travix International

eslint-config-travix's People

Contributors

fahad19 avatar greenkeeper[bot] avatar maininfection avatar markvincze avatar

Watchers

 avatar  avatar

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.