Giter Club home page Giter Club logo

eslint-config-dialexa's Introduction

Dialexa Javascript Style Guide

Installation

 npm install @dialexa/eslint-config-dialexa --save-dev

Lastly, make sure you have eslint installed in your project

npm install eslint --save-dev

If you are using the React settings, make sure you have babel-eslint installed, as well as eslint-plugin-react

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

Usage

Add one of the following to your project's .eslintrc file (based on your project type).

ES5

{
  "extends": "@dialexa/eslint-config-dialexa"
}

ES6

{
  "extends": "@dialexa/eslint-config-dialexa/es6"
}

Node 4.x +

{
  "extends": "@dialexa/eslint-config-dialexa/node-es6"
}

Ember

{
  "extends": "@dialexa/eslint-config-dialexa/ember"
}

React

{
  "extends": "@dialexa/eslint-config-dialexa/react"
}

eslint-config-dialexa's People

Contributors

chrismllr avatar dependabot[bot] avatar galenandrew avatar gordysc avatar tedchoward avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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

eslint-config-dialexa's Issues

Upgrade dependencies

It's been a while since this repository was last touched. This ticket should update the dependencies to the latest versions.

Use Standard JS in lieu of custom eslint config

js-standard-style

The javascript "Standard" code style is simple and straight forward. It has a really nice CLI, integration with editors, and workflow with tests and PRs. Check out relish as an example project using standard.

I propose we use this as our standard style guide/config. If we absolutely feel the need to extend it, we can look at "Semi-Standard" for inspiration.

Thoughts?

Organization Config is now breaking

Cannot find module '@dialexa/eslint-config-dialexa/node-es6' from '/Users/galenandrew/.nvm/versions/node/v4.3.1/lib/node_modules'
Referenced from: /Users/galenandrew/dialexa/cox/vehicle-maintenance/api/.eslintrc
Error: Cannot find module '@dialexa/eslint-config-dialexa/node-es6' from '/Users/galenandrew/.nvm/versions/node/v4.3.1/lib/node_modules'
Referenced from: /Users/galenandrew/dialexa/cox/vehicle-maintenance/api/.eslintrc
    at Function.module.exports [as sync] (/Users/galenandrew/.nvm/versions/node/v4.3.1/lib/node_modules/eslint/node_modules/resolve/lib/sync.js:33:11)
    at resolve (/Users/galenandrew/.nvm/versions/node/v4.3.1/lib/node_modules/eslint/lib/config/config-file.js:416:38)
    at load (/Users/galenandrew/.nvm/versions/node/v4.3.1/lib/node_modules/eslint/lib/config/config-file.js:435:24)
    at /Users/galenandrew/.nvm/versions/node/v4.3.1/lib/node_modules/eslint/lib/config/config-file.js:355:36
    at Array.reduceRight (native)
    at applyExtends (/Users/galenandrew/.nvm/versions/node/v4.3.1/lib/node_modules/eslint/lib/config/config-file.js:338:28)
    at Object.load (/Users/galenandrew/.nvm/versions/node/v4.3.1/lib/node_modules/eslint/lib/config/config-file.js:462:22)
    at loadConfig (/Users/galenandrew/.nvm/versions/node/v4.3.1/lib/node_modules/eslint/lib/config.js:67:33)
    at getLocalConfig (/Users/galenandrew/.nvm/versions/node/v4.3.1/lib/node_modules/eslint/lib/config.js:129:23)
    at Config.getConfig (/Users/galenandrew/.nvm/versions/node/v4.3.1/lib/node_modules/eslint/lib/config.js:223:22)```

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.