@putout/plugin-package-json 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,11 +1,9 @@
1
- # @putout/plugin-package-json [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL]
1
+ # @putout/plugin-package-json [![NPM version][NPMIMGURL]][NPMURL]
2
2
 
3
3
  [NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-package-json.svg?style=flat&longCache=true
4
4
  [NPMURL]: https://npmjs.org/package/@putout/plugin-package-json"npm"
5
- [DependencyStatusURL]: https://david-dm.org/coderaiser/package-json?path=packages/plugin-package-json
6
- [DependencyStatusIMGURL]: https://david-dm.org/coderaiser/package-json.svg?path=packages/plugin-package-json
7
5
 
8
- `putout` plugin helps to automate fixing `package-json` config.
6
+ 🐊[`Putout`](https://github.com/coderaiser/putout) plugin helps to automate fixing `package-json` config.
9
7
 
10
8
  ## Install
11
9
 
@@ -3,15 +3,12 @@
3
3
  const getKey = (a) => a.key;
4
4
  const isNYC = (a) => a.value === 'nyc';
5
5
 
6
- module.exports.report = () => 'Remove nyc section of package.json, use file .nycrc.json intead';
6
+ module.exports.report = () => `Remove 'nyc' section of 'package.json', use file '.nycrc.json' intead`;
7
7
 
8
8
  module.exports.match = () => ({
9
- '__putout_processor_json(__a)': ({__a}) => {
10
- return __a.properties
11
- .map(getKey)
12
- .filter(isNYC)
13
- .length;
14
- },
9
+ '__putout_processor_json(__a)': ({__a}) => __a.properties
10
+ .map(getKey)
11
+ .filter(isNYC).length,
15
12
  });
16
13
 
17
14
  module.exports.replace = () => ({
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@putout/plugin-package-json",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
5
  "description": "putout plugin for package.json",
6
- "homepage": "http://github.com/coderaiser/putout",
6
+ "homepage": "https://github.com/coderaiser/putout/tree/master/packages/plugin-package-json#readme",
7
7
  "main": "lib/index.js",
8
8
  "release": false,
9
9
  "tag": false,
@@ -30,11 +30,11 @@
30
30
  "package-json"
31
31
  ],
32
32
  "devDependencies": {
33
- "@putout/test": "^3.0.0",
33
+ "@putout/test": "^4.0.0",
34
34
  "c8": "^7.5.0",
35
- "eslint": "^7.6.0",
35
+ "eslint": "^8.0.1",
36
36
  "eslint-plugin-node": "^11.0.0",
37
- "eslint-plugin-putout": "^8.0.0",
37
+ "eslint-plugin-putout": "^12.0.0",
38
38
  "lerna": "^4.0.0",
39
39
  "madrun": "^8.0.1",
40
40
  "nodemon": "^2.0.1"