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

@change-org/eslint-plugin-change

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@change-org/eslint-plugin-change

Eslint rules for change javascript repos

  • 3.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
916
decreased by-1.61%
Maintainers
4
Weekly downloads
 
Created
Source

eslint-plugin-change

Custom lint rules for change javascript repos.

Setup

npm install

Available rules

change/prefer-object-spread-to-lodash

Valid
_.extend(foo, { bar: 'baz' });
_.assignIn(foo, { bar: 'baz' });
_.extend({}, ...foo);
_.assignIn({}, ...foo);
Invalid
_.extend({}, foo, { bar: 'baz' });
_.assignIn({}, foo, { bar: 'baz' });
Suggested fix
{
  ...foo,
  bar: 'baz',
};

Development

Run tests

npm test

Creating a new rule

Writing your rule

TODO

https://astexplorer.net/ is very helpful here.

Testing your rule

See https://eslint.org/docs/developer-guide/nodejs-api#ruletester

FAQs

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