New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-v8-func-inline

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-v8-func-inline

ESLint rule to warn if a function is near 600 characters

  • 1.1.4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
9
Maintainers
1
Weekly downloads
 
Created
Source

ESLint-plugin-v8-func-inline

Node.js's V8 optimizer (crankshaft) inlines the functions whose body length, including the comments, is less than 600 characters. This rule finds functions that could possibly be shortened to increase performance while running in V8 (Node.js).

Installation

Install ESLint either locally or globally.

$ npm install eslint

Install the plugin.

$ npm install eslint-plugin-v8-func-inline

Configuration

Add plugins section and specify ESLint-plugin-v8-func-inline as a plugin.

Set the max threshold for characters in your .eslintrc file

rules : {
  "v8-func-inline/v8-func-inline" : [1, 615]
},
plugins: [
  "v8-func-inline"
]

License

ESLint-plugin-v8-func-inline is licensed under the MIT License.

FAQs

Package last updated on 08 Jan 2016

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