flatlint 1.58.0 → 1.59.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 +10 -0
- package/README.md +9 -0
- package/lib/flatlint.js +0 -1
- package/lib/plugins/add-missing-curly-brace/index.js +5 -0
- package/lib/plugins.js +2 -0
- package/package.json +2 -1
package/ChangeLog
CHANGED
package/README.md
CHANGED
|
@@ -49,6 +49,15 @@ module.exports = 2;
|
|
|
49
49
|
|
|
50
50
|
</details>
|
|
51
51
|
|
|
52
|
+
<details><summary>add missing curly brace</summary>
|
|
53
|
+
|
|
54
|
+
```diff
|
|
55
|
+
-function a({b, c) {}
|
|
56
|
+
-function a({b, c}) {}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
</details>
|
|
60
|
+
|
|
52
61
|
<details><summary>add missing round brace</summary>
|
|
53
62
|
|
|
54
63
|
```diff
|
package/lib/flatlint.js
CHANGED
package/lib/plugins.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as addMissingArrow from './plugins/add-missing-arrow/index.js';
|
|
2
2
|
import * as addMissingAssign from './plugins/add-missing-assign/index.js';
|
|
3
|
+
import * as addMissingCurlyBrace from './plugins/add-missing-curly-brace/index.js';
|
|
3
4
|
import * as addMissingRoundBrace from './plugins/add-missing-round-brace/index.js';
|
|
4
5
|
import * as addMissingSquireBrace from './plugins/add-missing-square-brace/index.js';
|
|
5
6
|
import * as addMissingQuote from './plugins/add-missing-quote/index.js';
|
|
@@ -17,6 +18,7 @@ import * as wrapAssignmentInParens from './plugins/wrap-assignment-in-parens/ind
|
|
|
17
18
|
export const plugins = [
|
|
18
19
|
['add-missing-arrow', addMissingArrow],
|
|
19
20
|
['add-missing-assign', addMissingAssign],
|
|
21
|
+
['add-missing-curly-brace', addMissingCurlyBrace],
|
|
20
22
|
['add-missing-round-brace', addMissingRoundBrace],
|
|
21
23
|
['add-missing-squire-brace', addMissingSquireBrace],
|
|
22
24
|
['add-missing-semicolon', addMissingSemicolon],
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flatlint",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.59.0",
|
|
4
4
|
"description": "JavaScript tokens-based linter",
|
|
5
5
|
"main": "lib/flatlint.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
8
|
+
".": "./lib/flatlint.js",
|
|
8
9
|
"./with-plugins": "./lib/with-plugins.js"
|
|
9
10
|
},
|
|
10
11
|
"imports": {
|