Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@formidable-webview/eslint-config-webjs

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@formidable-webview/eslint-config-webjs

An eslint configuration to validate scripts injected in WebViews.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by300%
Maintainers
1
Weekly downloads
 
Created
Source

@formidable-webview/eslint-config-webjs

An eslint configuration to validate scripts injected in WebViews. Thanks to the awesome eslint-plugin-compat, this config basically makes sure your script can be executed in Android WebView ≥ 4.1 and iOS Safari WebView ≥ 7.0. It checks both syntax (ECMAScript 5) and the DOM API. This config is notably meant to be used with @formidable-webview/webshell to implement features.

Install

npm install estlint-plugin-compat @formidable-webview/eslint-config-webjs

Setup

After install, edit your eslint.js and use the overrides attribute to set a special config for files ending in .webjs or whichever arbitrary extension you chose for your DOM scripts.

module.exports = {
  root: true,
  overrides: [
    {
      files: ["*.webjs"],
      extends: "@formidable-webview/eslint-config-webjs",
    },
  ],
};

You can override the WebView versions checked by explicitly setting the compat/compat rule.

Keywords

FAQs

Package last updated on 08 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc