0.0.2 • Published 2 years ago

eslint-plugin-extendscript-plus v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

eslint-plugin-extendscript-plus

npm npm test

polyfill global variables & provide some awesome rules

Installation

npm install eslint-plugin-extendscript-plus -D

# pnpm
pnpm add eslint-plugin-extendscript-plus -D

# pnpm monorepo
pnpm -w add eslint-plugin-extendscript-plus -D

Usage

Add extendscript-plus to the plugins section of your .eslintrc configuration file.

{
  "extends": [...others, "plugin:extendscript-plus/photoshop"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "extendscript-plus/no-let": 0
  }
}

TODOs

  • AE support

rules

  • prefer-const-to-var
  • no-redeclare-const

Supported Rules

Each rule has emojis denoting:

  • ✅ if it is enable by default
  • 🔧 if some problems reported by the rule are automatically fixable by the --fix command line option
  • 💡 if some problems reported by the rule are manually fixable by editor suggestions
Name                                        Description🔧💡
no-letImprove regexes by making them shorter, consistent, and safer.🔧
no-consoleEnforce a specific parameter name in catch clauses.🔧
no-arrow-funcUse destructured variables over properties.🔧
no-property-shorthandMove function definitions to the highest possible scope.🔧

Thanks

I learn a lot from these awesome projects: