eslint-plugin-prefer-object-sp : ESLint rule for suggesting that object spread properties be used instead of Object.assign().. You can installing eslint-plugin-prefer-object-sp npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.
$ sudo npm install eslint-plugin-prefer-object-sp $ sudo npm install -g eslint-plugin-prefer-object-sp
If want to update the eslint-plugin-prefer-object-sp package execute the command as below,
$ sudo npm update eslint-plugin-prefer-object-sp
Update package globally,
$ npm install -g eslint-plugin-prefer-object-sp
$ sudo git clone https://github.com/rektide/eslint-plugin-prefer-object-sp.git
$ sudo npm install -g ./eslint-plugin-prefer-object-sp
eslint-plugin-prefer-object-sp@1.2.1 /usr/lib/node_modules/eslint-plugin-prefer-object-sp
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall eslint-plugin-prefer-object-sp
Package Name | eslint-plugin-prefer-object-sp |
Version | 1.2.1 |
Description | ESLint rule for suggesting that object spread properties be used instead of Object.assign(). |
Released Date | 2017-04-18T16:48:52.568Z |
Published by | bryanrsmith |
How to Learn | https://www.npmjs.com/package/eslint-plugin-prefer-object-sp/tutorial |