@putout/plugin-gitignore 4.0.0 → 5.0.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.
Files changed (2) hide show
  1. package/lib/gitignore.js +4 -5
  2. package/package.json +10 -10
package/lib/gitignore.js CHANGED
@@ -1,6 +1,5 @@
1
- 'use strict';
1
+ import {types, operator} from 'putout';
2
2
 
3
- const {types, operator} = require('putout');
4
3
  const {__ignore} = operator;
5
4
  const {StringLiteral} = types;
6
5
  const getValue = ({value}) => value;
@@ -12,9 +11,9 @@ const names = [
12
11
  'coverage',
13
12
  ];
14
13
 
15
- module.exports.report = () => `Dot files should be added to .gitignore`;
14
+ export const report = () => `Dot files should be added to .gitignore`;
16
15
 
17
- module.exports.match = ({options}) => {
16
+ export const match = ({options}) => {
18
17
  const {dismiss = []} = options;
19
18
  const newNames = filterNames(names, dismiss);
20
19
 
@@ -32,7 +31,7 @@ module.exports.match = ({options}) => {
32
31
  };
33
32
  };
34
33
 
35
- module.exports.replace = ({options}) => {
34
+ export const replace = ({options}) => {
36
35
  const {dismiss = []} = options;
37
36
  const newNames = filterNames(names, dismiss);
38
37
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@putout/plugin-gitignore",
3
- "version": "4.0.0",
4
- "type": "commonjs",
3
+ "version": "5.0.0",
4
+ "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout plugin helps with .gitignore",
7
7
  "homepage": "https://github.com/coderaiser/putout/tree/master/packages/plugin-gitignore#readme",
@@ -31,21 +31,21 @@
31
31
  "gitignore"
32
32
  ],
33
33
  "devDependencies": {
34
- "@putout/test": "^7.0.0",
35
- "c8": "^8.0.0",
36
- "eslint": "^8.0.1",
37
- "eslint-plugin-n": "^16.0.0",
38
- "eslint-plugin-putout": "^21.0.0",
34
+ "@putout/test": "^9.0.0",
35
+ "c8": "^9.0.0",
36
+ "eslint": "^9.0.0-alpha.0",
37
+ "eslint-plugin-n": "^17.0.0-0",
38
+ "eslint-plugin-putout": "^22.0.0",
39
39
  "lerna": "^6.0.1",
40
- "madrun": "^9.0.0",
40
+ "madrun": "^10.0.0",
41
41
  "nodemon": "^3.0.1"
42
42
  },
43
43
  "peerDependencies": {
44
- "putout": ">=33"
44
+ "putout": ">=35"
45
45
  },
46
46
  "license": "MIT",
47
47
  "engines": {
48
- "node": ">=16"
48
+ "node": ">=18"
49
49
  },
50
50
  "publishConfig": {
51
51
  "access": "public"