GithubHelp home page GithubHelp logo

alexxnica / eslint-closure Goto Github PK

View Code? Open in Web Editor NEW

This project forked from google/eslint-closure

0.0 1.0 0.0 4.18 MB

ESLint Plugin and Config for the Google JavaScript Style Guide

License: Apache License 2.0

JavaScript 93.53% Python 4.60% Makefile 1.88%

eslint-closure's Introduction

Closure Linter - ESLint Plugin and Config for the Google JavaScript Style Guide

A heavily customized ESLint config and plugin for JavaScript following the Google JavaScript style guide.

Check out the demo page.

Google Style Guide Specific Features

  • Recognizes goog.scope as an immediately invoked function expression (IIFE) that doesn't increase the indent.

    goog.scope(function() {
    var noIndent = 2;
    });
  • Recognizes goog.provide and goog.require.

    goog.provide('my.module');
    goog.require('other.module');
    
    my.module.Foo = other.module.Bar;
  • Avoids flagging typedef, export and other type-related tags as unused.

    /** @export {number} */
    my.module.foo = 2;

See the Google JavaScript style guide for the rest of the rules.

Disclaimer

This is not an official Google product (experimental or otherwise), it is just code that happens to be owned by Google.

Developing

Pull requests are always welcome. To get started, install Bazel, Google's open-source build system, and Yarn, an NPM replacement.

A typical development flow looks like this:

  1. make develop to download dependencies from NPM and to link the projects together.
  2. make test to ensure everything works first.
  3. Add a feature or fix a bug.
  4. make test
  5. git commit
  6. git push

eslint-closure's People

Contributors

jschaf 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.