Socket
Book a DemoInstallSign in
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
npmnpm
Version published
Weekly downloads
9
-97.53%
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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.