flatlint 3.0.0 → 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/ChangeLog
CHANGED
package/README.md
CHANGED
|
@@ -67,6 +67,17 @@ module.exports = 2;
|
|
|
67
67
|
|
|
68
68
|
</details>
|
|
69
69
|
|
|
70
|
+
<details><summary>convert colon to comma</summary>
|
|
71
|
+
|
|
72
|
+
```diff
|
|
73
|
+
export const rules = [
|
|
74
|
+
- ['apply-nesting': applyNesting],
|
|
75
|
+
+ ['apply-nesting', applyNesting],
|
|
76
|
+
];
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
</details>
|
|
80
|
+
|
|
70
81
|
<details><summary>convert <code>from</code> to <code>require</code></summary>
|
|
71
82
|
|
|
72
83
|
```diff
|
package/lib/plugins.js
CHANGED
|
@@ -15,6 +15,8 @@ import * as removeUselessDot from './plugins/remove-useless-dot/index.js';
|
|
|
15
15
|
import * as removeInvalidCharacter from './plugins/remove-invalid-character/index.js';
|
|
16
16
|
import * as removeUselessRoundBrace from './plugins/remove-useless-round-brace/index.js';
|
|
17
17
|
import * as convertSemicolonToComma from './plugins/convert-semicolon-to-comma/index.js';
|
|
18
|
+
import * as convertColonToComma from './plugins/convert-colon-to-comma/index.js';
|
|
19
|
+
import * as convertColonToSemicolon from './plugins/convert-colon-to-semicolon/index.js';
|
|
18
20
|
import * as wrapAssignmentInParens from './plugins/wrap-assignment-in-parens/index.js';
|
|
19
21
|
|
|
20
22
|
export const plugins = [
|
|
@@ -29,6 +31,8 @@ export const plugins = [
|
|
|
29
31
|
['add-const-to-export', addConstToExport],
|
|
30
32
|
['apply-import-order', applyImportOrder],
|
|
31
33
|
['convert-comma-to-semicolon', convertCommaToSemicolon],
|
|
34
|
+
['convert-colon-to-comma', convertColonToComma],
|
|
35
|
+
['convert-colon-to-semicolon', convertColonToSemicolon],
|
|
32
36
|
['convert-semicolon-to-comma', convertSemicolonToComma],
|
|
33
37
|
['convert-from-to-require', convertFromToRequire],
|
|
34
38
|
['remove-useless-comma', removeUselessComma],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flatlint",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "JavaScript tokens-based linter",
|
|
5
5
|
"main": "lib/flatlint.js",
|
|
6
6
|
"type": "module",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"mock-require": "^3.0.3",
|
|
93
93
|
"montag": "^1.0.0",
|
|
94
94
|
"nodemon": "^3.0.1",
|
|
95
|
-
"putout": "^
|
|
95
|
+
"putout": "^40.0.10",
|
|
96
96
|
"supertape": "^11.0.4"
|
|
97
97
|
},
|
|
98
98
|
"engines": {
|