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

eslint-plugin-isaacscript

Package Overview
Dependencies
Maintainers
1
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-isaacscript

`eslint-plugin-isaacscript` is a collection of [ESLint](https://eslint.org/) rules that can help make your JavaScript/TypeScript code more safe.

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1K
decreased by-24.12%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-plugin-isaacscript

eslint-plugin-isaacscript is a collection of ESLint rules that can help make your JavaScript/TypeScript code more safe.

This plugin is named after (and used in) the IsaacScript framework. But you don't have to know anything about IsaacScript to use it - you can use this plugin with any JavaScript/TypeScript project.

If you want to get off the ground and running with ESLint + TypeScript in a new project, then you should check out the isaacscript-lint meta-package.

This project is written in TypeScript.


Install / Usage

  • npm install --save-dev eslint eslint-plugin-isaacscript
  • Add "plugin:isaacscript/recommended" to the extends section of your .eslintrc.js file. (This will automatically add the plugin and add all of the recommended rules.)
    • Alternatively, if you want to only enable some specific rules, then add "isaacscript" to the plugins section of your .eslintrc.js file, and then add the specific rules that you want in the rules section.

Configs

  • recommended - Enables just the recommended rules.
  • all - Enables all the rules.

Rules

Each rule has emojis denoting:

  • :white_check_mark: - if it belongs to the recommended configuration
  • :wrench: - if some problems reported by the rule are automatically fixable by the --fix command line option
  • :thought_balloon: - if it requires type information
NameDescription:white_check_mark::wrench::thought_balloon:
isaacscript/eqeqeq-fixRequires the use of === and !== (and automatically fixes):white_check_mark:
isaacscript/no-let-anyDisallows declaring variables with let that do not have a type:white_check_mark:
isaacscript/no-object-anyDisallows declaring objects and arrays that do not have a type:white_check_mark:
isaacscript/no-template-curly-in-string-fixDisallows template literal placeholder syntax in regular strings (and automatically fixes):white_check_mark:
isaacscript/no-void-return-typeDisallows void return types on non-exported functions:white_check_mark:

FAQs

Package last updated on 06 May 2022

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