All Projects → google → Eslint Closure

google / Eslint Closure

Licence: apache-2.0
ESLint Plugin and Config for the Google JavaScript Style Guide

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Eslint Closure

gandalf-lint
Bad Code Shall Not Pass
Stars: ✭ 29 (+38.1%)
Mutual labels:  eslint, linter
Eslint
Find and fix problems in your JavaScript code.
Stars: ✭ 19,665 (+93542.86%)
Mutual labels:  eslint, linter
awesome-react-app
Always the latest version of "create-react-app" with awesome configurations (lint, commit lint, husk, editor config, etc)
Stars: ✭ 44 (+109.52%)
Mutual labels:  eslint, linter
eslint-config
An ESLint shareable config that I used in my projects
Stars: ✭ 15 (-28.57%)
Mutual labels:  eslint, linter
Esprint
Fast eslint runner
Stars: ✭ 556 (+2547.62%)
Mutual labels:  eslint, linter
standard-packages
List of packages that use `standard`
Stars: ✭ 32 (+52.38%)
Mutual labels:  eslint, linter
Awesome Standard
Documenting the explosion of packages in the standard ecosystem!
Stars: ✭ 300 (+1328.57%)
Mutual labels:  eslint, linter
Eslint Plugin Markdown
Lint JavaScript code blocks in Markdown documents
Stars: ✭ 242 (+1052.38%)
Mutual labels:  eslint, linter
Eslint Plugin Sonarjs
SonarJS rules for ESLint
Stars: ✭ 458 (+2080.95%)
Mutual labels:  eslint, linter
Eslint Config Standard React
ESLint Shareable Config for React/JSX support in JavaScript Standard Style
Stars: ✭ 416 (+1880.95%)
Mutual labels:  eslint, linter
codeclimate-eslint
Code Climate Engine for ESLint
Stars: ✭ 86 (+309.52%)
Mutual labels:  eslint, linter
Standard
🌟 JavaScript Style Guide, with linter & automatic code fixer
Stars: ✭ 26,433 (+125771.43%)
Mutual labels:  eslint, linter
eslint-config-kingstinct-react-native
Eslint configuration for React-native based on Airbnb with some great tweaks
Stars: ✭ 23 (+9.52%)
Mutual labels:  eslint, linter
elint
A easy way to lint your code
Stars: ✭ 38 (+80.95%)
Mutual labels:  eslint, linter
arcanist-linters
A collection of custom Arcanist linters
Stars: ✭ 64 (+204.76%)
Mutual labels:  eslint, linter
Lint Review
An automated code linting bot that integrates various code lint tools with github pull requests.
Stars: ✭ 279 (+1228.57%)
Mutual labels:  eslint, linter
Eslint Config Standard
ESLint Config for JavaScript Standard Style
Stars: ✭ 2,229 (+10514.29%)
Mutual labels:  eslint, linter
Grunt Eslint
Validate files with ESLint
Stars: ✭ 189 (+800%)
Mutual labels:  eslint, linter
Lynt
✨ A zero config JavaScript linter with support for Typescript, Flow, and React.
Stars: ✭ 390 (+1757.14%)
Mutual labels:  eslint, linter
Xo
❤️ JavaScript/TypeScript linter (ESLint wrapper) with great defaults
Stars: ✭ 6,277 (+29790.48%)
Mutual labels:  eslint, linter

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].