@putout/processor-ignore 4.0.0 → 4.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/lib/ignore.js +1 -2
- package/package.json +6 -9
package/lib/ignore.js
CHANGED
|
@@ -3,6 +3,7 @@ const rmLast = (a) => !a.endsWith('\n') ? a : a.slice(0, -1);
|
|
|
3
3
|
|
|
4
4
|
const prefix = '__putout_processor_ignore(';
|
|
5
5
|
const sufix = ');\n';
|
|
6
|
+
|
|
6
7
|
const parse = (a) => {
|
|
7
8
|
const fn = Function(`return ${a}`);
|
|
8
9
|
return fn();
|
|
@@ -18,7 +19,6 @@ export const branch = (rawSource) => {
|
|
|
18
19
|
const source = `${prefix}${array}${sufix}`;
|
|
19
20
|
|
|
20
21
|
return [{
|
|
21
|
-
startLine: 0,
|
|
22
22
|
source,
|
|
23
23
|
extension: 'json',
|
|
24
24
|
}];
|
|
@@ -39,4 +39,3 @@ function convertToArray(str) {
|
|
|
39
39
|
|
|
40
40
|
return stringify(lines);
|
|
41
41
|
}
|
|
42
|
-
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/processor-ignore",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "🐊Putout processor adds ability to lint ignore",
|
|
@@ -31,19 +31,16 @@
|
|
|
31
31
|
],
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@putout/engine-processor": "*",
|
|
34
|
-
"@putout/test": "^
|
|
35
|
-
"c8": "^
|
|
34
|
+
"@putout/test": "^7.0.0",
|
|
35
|
+
"c8": "^8.0.0",
|
|
36
36
|
"eslint": "^8.0.1",
|
|
37
|
-
"eslint-plugin-n": "^
|
|
38
|
-
"eslint-plugin-putout": "^
|
|
37
|
+
"eslint-plugin-n": "^16.0.0",
|
|
38
|
+
"eslint-plugin-putout": "^21.0.0",
|
|
39
39
|
"lerna": "^6.0.1",
|
|
40
40
|
"madrun": "^9.0.0",
|
|
41
|
-
"nodemon": "^
|
|
41
|
+
"nodemon": "^3.0.1",
|
|
42
42
|
"putout": "*"
|
|
43
43
|
},
|
|
44
|
-
"peerDependencies": {
|
|
45
|
-
"putout": ">=29"
|
|
46
|
-
},
|
|
47
44
|
"license": "MIT",
|
|
48
45
|
"engines": {
|
|
49
46
|
"node": ">=16"
|