Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

cloudability/javascript-style-guide

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,843 Commits
1,843 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloudability JavaScript Style Guide() {

Based off the airbnb javascript style guide.

Installation

First install dependent packages and this package with the correct naming.

yarn add -D -E \
  eslint-plugin-cloudability@git://github.com/cloudability/javascript-style-guide.git#v1.0.0 \
  eslint@6

In a .eslintrc.js at root or any other relevant location, add a plugin:cloudability config to the extends array. For example:

module.exports = {
  extends: [
    'plugin:cloudability/base',
  ],
}

Besides base, the other configs are gui|guitTest|service|typescript.

Use with Typescript

yarn add -D -E typescript

Make sure the config being used is the cloudability/typescript one.

Use in VSCode

In VSCode's settings.json, add

{
    "eslint.validate": [
        "javascript",
        "javascriptreact",
        { "language": "typescript", "autoFix": true },
        { "language": "typescriptreact", "autoFix": true }
    ]
}

About

JavaScript Style Guide

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.