flatlint 1.59.0 → 1.60.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 +5 -0
- package/lib/flatlint.js +1 -0
- package/lib/plugins/add-missing-semicolon/index.js +2 -0
- package/lib/types/types.js +1 -0
- package/package.json +2 -4
package/ChangeLog
CHANGED
package/lib/flatlint.js
CHANGED
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
dot,
|
|
9
9
|
question,
|
|
10
10
|
openRoundBrace,
|
|
11
|
+
or,
|
|
11
12
|
} from '#types';
|
|
12
13
|
|
|
13
14
|
export const report = () => 'Add missing semicolon';
|
|
@@ -44,6 +45,7 @@ export const match = () => ({
|
|
|
44
45
|
openRoundBrace,
|
|
45
46
|
dot,
|
|
46
47
|
question,
|
|
48
|
+
or,
|
|
47
49
|
];
|
|
48
50
|
|
|
49
51
|
if (path.isNextPunctuator(punctuators))
|
package/lib/types/types.js
CHANGED
|
@@ -136,6 +136,7 @@ export const question = Punctuator('?');
|
|
|
136
136
|
export const more = Punctuator('>');
|
|
137
137
|
export const assign = Punctuator('=');
|
|
138
138
|
export const openRoundBrace = Punctuator('(');
|
|
139
|
+
export const or = Punctuator('||');
|
|
139
140
|
export const semicolon = Punctuator(';');
|
|
140
141
|
export const openCurlyBrace = Punctuator('{');
|
|
141
142
|
export const closeCurlyBrace = Punctuator('}');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flatlint",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.60.0",
|
|
4
4
|
"description": "JavaScript tokens-based linter",
|
|
5
5
|
"main": "lib/flatlint.js",
|
|
6
6
|
"type": "module",
|
|
@@ -68,9 +68,7 @@
|
|
|
68
68
|
"parallel",
|
|
69
69
|
"serial",
|
|
70
70
|
"run",
|
|
71
|
-
"
|
|
72
|
-
"commandline",
|
|
73
|
-
"command"
|
|
71
|
+
"commandline"
|
|
74
72
|
],
|
|
75
73
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (http://coderaiser.github.io/)",
|
|
76
74
|
"bugs": {
|