GithubHelp home page GithubHelp logo

hhy5277 / eslint-config-google Goto Github PK

View Code? Open in Web Editor NEW

This project forked from google/eslint-config-google

0.0 1.0 0.0 70 KB

ESLint shareable config for the Google JavaScript style guide

License: Apache License 2.0

JavaScript 100.00%

eslint-config-google's Introduction

eslint-config-google Build Status

ESLint shareable config for the Google JavaScript style guide (ES2015+ version)

Installation

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

Usage

Once the eslint-config-google package is installed, you can use it by specifying google in the extends section of your ESLint configuration.

{
  "extends": "google",
  "rules": {
    // Additional, per-project rules...
  }
}

Using the google config with eslint:recommended

There are several rules in the eslint:recommended ruleset that Google style is not opinionated about that you might want to enforce in your project.

To use Google style in conjunction with ESLint's recommended rule set, extend them both, making sure to list google last:

{
  "extends": ["eslint:recommended", "google"],
  "rules": {
    // Additional, per-project rules...
  }
}

To see how the google config compares with eslint:recommended, refer to the source code of index.js, which lists every ESLint rule along with whether (and how) it is enforced by the google config.

License

Apache-2 © Google

eslint-config-google's People

Contributors

addyosmani avatar appsforartists avatar chrisjshull avatar floftar avatar justinhelmer avatar mathiasbynens avatar nchavez324 avatar ntwb avatar philipwalton avatar posquit0 avatar pragmaticivan avatar shikchen avatar sindresorhus avatar stramel avatar

Watchers

 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.