3.2.0 • Published 2 years ago

@change-org/eslint-plugin-change v3.2.0

Weekly downloads
280
License
MIT
Repository
github
Last release
2 years ago

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

3.2.0

2 years ago

3.1.0

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.0.0

3 years ago

1.1.0

5 years ago