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.10
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
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.

Alternatively, 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/limit-jsdoc-commentsDisallows /* comments longer than N characters:white_check_mark:
isaacscript/limit-slash-slash-commentsDisallows // comments longer than N characters:white_check_mark:
isaacscript/no-implicit-map-set-loopsDisallows implicit iteration for Maps and Sets:white_check_mark::thought_balloon:
isaacscript/no-let-anyDisallows declaring variables with let that do not have a type:white_check_mark::thought_balloon:
isaacscript/no-object-anyDisallows declaring objects and arrays that do not have a type:white_check_mark::thought_balloon:
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:

Contributing

Thanks for helping out with this open-source project!

If you are adding a new rule, start by using the NPM script to automate a few things:

npm run create-rule
git status # Show what the NPM script did

Additionally, You can contact me on Discord if you are doing a PR and have questions.

FAQs

Package last updated on 11 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