Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

eslint-plugin-googshift

Package Overview
Dependencies
1
Maintainers
1
Versions
4
Issues
File Explorer

Advanced tools

eslint-plugin-googshift

Custom ESLint rules for checking Google Compiler projects

    0.9.3latest

Version published
Maintainers
1
Yearly downloads
10,438
decreased by-42.66%

Weekly downloads

Readme

Source

Custom ESLint Rules for Google Compiler projects

This package is used as an ESLint plugin for the Google Compiler projects. The rules are meant to help with the transition away from the Closure Library and may be removed when that is complete.

Example use

In your .eslintrc.yaml:

{ extends: [ ..., '.eslintrc-googshift.yaml' ] }

In a dedicated eslintrc file .eslintrc-googshift.yaml:

{ plugins: [ 'googshift' ], rules: { 'googshift/no-duplicate-requires': 'error', 'googshift/no-missing-requires': ['error', { prefixes: ['app', 'ol', 'ngeo'], exceptions: ['ngeo.module.requires.push'] }], 'googshift/no-unused-requires': 'error', 'googshift/one-provide-or-module': ['error', { entryPoints: ['app'], root: 'suissealpine/static' }], 'googshift/requires-first': 'error', 'googshift/valid-provide-and-module': ['error', { entryPoints: ['app'], root: 'suissealpine/static' }], 'googshift/valid-requires': 'error' } }

Acknowledgments

This work is a continuation and generalization of an initial work from Tim Schaub.

Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc