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

eslint-plugin-extendscript

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-extendscript

Mainly environment variables for Adobes Extendscript

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Eslint Plugin ExtendScript

Add environment globals for extendscript

Table of Contents

  • Installation
  • Setup
  • Contributions
  • Contributors
  • License

Installation

This module is distributed via npm which comes bundled with node. Install it as one of your projects devDependencies.

# with npm
npm i --save-dev eslint-plugin-extendscript

# or with yarn
yarn add --dev eslint-plugin-extendscript

Setup

Remember to first install Eslint as well, otherwise this plugin will be utterly useless!

Then define extendscript as one of the plugins inside .eslintrc and add the environments you like.

{
  "extends": "eslint:recommended", // or any other presets
  "plugins": ["extendscript"],
  "env": {
    "extendscript/base": true, // Basic suite available in all ExtenScript environments
    "extendscript/scriptui": true, // ScriptUI globals
    "extendscript/indesign": true, // InDesign globals
    "extendscript/photoshop": true, // Photoshop globals
    "extendscript/illustrator": true, // Illustrator globals
  }
}

If you don't know or want to work on all environments you can use the environment "extendscript/extendscript" instead. This will give you all environment globals form all the ExtendScript environments.

{
  "extends": "eslint:recommended", // or any other presets
  "plugins": ["extendscript"],
  "env": {
    "extendscript/extendscript": true, // All available globals
  }
}

Contributions

Contributions are more than welcome. Especially if you like to add more environments to this setup.

The globals are generated autotaically from ExtendScript documentation which might be quite hard to find sometimes. Reach out to me via issues or email and we might get something working.

All globals are found in src/globals.json. They are generated by running npm run get-globals.

Contributors


Adam Bergman

💻 📖

License

MIT

Keywords

FAQs

Package last updated on 06 Dec 2017

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