@putout/plugin-gitignore 3.0.1 → 3.1.0

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-gitignore [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL]
1
+ # @putout/plugin-gitignore [![NPM version][NPMIMGURL]][NPMURL]
2
2
 
3
3
  [NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-gitignore.svg?style=flat&longCache=true
4
4
  [NPMURL]: https://npmjs.org/package/@putout/plugin-gitignore"npm"
5
- [DependencyStatusURL]: https://david-dm.org/coderaiser/putout?path=packages/plugin-gitignore
6
- [DependencyStatusIMGURL]: https://david-dm.org/coderaiser/putout.svg?path=packages/plugin-gitignore
7
5
 
8
- `putout` plugin helps with `putout` plugins development.
6
+ 🐊[`Putout`](https://github.com/coderaiser/putout) plugin helps with 🐊[`Putout`](https://github.com/coderaiser/putout) plugins development.
9
7
 
10
8
  ## Install
11
9
 
@@ -48,6 +46,15 @@ Adds `*.swp` into .gitignore.
48
46
  node_modules
49
47
  ```
50
48
 
49
+ ## Add `.idea` Files
50
+
51
+ Adds `*.swp` into .gitignore.
52
+
53
+ ```diff
54
+ +.idea
55
+ node_modules
56
+ ```
57
+
51
58
  ## License
52
59
 
53
60
  MIT
package/lib/gitignore.js CHANGED
@@ -5,6 +5,7 @@ const {StringLiteral} = types;
5
5
  const getValue = ({value}) => value;
6
6
 
7
7
  const names = [
8
+ '.idea',
8
9
  '*.swp',
9
10
  'yarn-error.log',
10
11
  'coverage',
@@ -42,6 +43,7 @@ module.exports.replace = ({options}) => {
42
43
  if (!list.includes(name))
43
44
  __a.elements.push(StringLiteral(name));
44
45
  }
46
+
45
47
  return path;
46
48
  },
47
49
  };
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@putout/plugin-gitignore",
3
- "version": "3.0.1",
3
+ "version": "3.1.0",
4
+ "type": "commonjs",
4
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
6
  "description": "putout plugin helps with .gitignore",
6
- "homepage": "http://github.com/coderaiser/putout",
7
+ "homepage": "https://github.com/coderaiser/putout/tree/master/packages/plugin-gitignore#readme",
7
8
  "main": "lib/gitignore.js",
8
9
  "release": false,
9
10
  "tag": false,
@@ -30,11 +31,11 @@
30
31
  "gitignore"
31
32
  ],
32
33
  "devDependencies": {
33
- "@putout/test": "^3.0.0",
34
+ "@putout/test": "^4.0.0",
34
35
  "c8": "^7.5.0",
35
- "eslint": "^7.6.0",
36
+ "eslint": "^8.0.1",
36
37
  "eslint-plugin-node": "^11.0.0",
37
- "eslint-plugin-putout": "^8.0.0",
38
+ "eslint-plugin-putout": "^12.0.0",
38
39
  "lerna": "^4.0.0",
39
40
  "madrun": "^8.0.1",
40
41
  "nodemon": "^2.0.1"