flatlint 4.6.2 → 4.7.1
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
|
@@ -7,9 +7,15 @@ import {
|
|
|
7
7
|
plus,
|
|
8
8
|
question,
|
|
9
9
|
semicolon,
|
|
10
|
+
strictEqual,
|
|
10
11
|
} from '#types';
|
|
11
12
|
|
|
12
|
-
const EXCLUDED = [
|
|
13
|
+
const EXCLUDED = [
|
|
14
|
+
assign,
|
|
15
|
+
and,
|
|
16
|
+
plus,
|
|
17
|
+
strictEqual,
|
|
18
|
+
];
|
|
13
19
|
|
|
14
20
|
export const report = () => 'Add missing assign';
|
|
15
21
|
|
|
@@ -3,4 +3,5 @@ export const report = () => `Use 'import from' instead of 'import form'`;
|
|
|
3
3
|
export const replace = () => ({
|
|
4
4
|
'import __a form "__b"': 'import __a from "__b"',
|
|
5
5
|
'import {__a} form "__b"': 'import {__a} from "__b"',
|
|
6
|
+
'import * as __a form "__b"': 'import * as __a from "__b"',
|
|
6
7
|
});
|
package/lib/types/types.js
CHANGED
|
@@ -154,6 +154,7 @@ export const more = Punctuator('>');
|
|
|
154
154
|
export const less = Punctuator('<');
|
|
155
155
|
export const assign = Punctuator('=');
|
|
156
156
|
export const openRoundBrace = Punctuator('(');
|
|
157
|
+
export const strictEqual = Punctuator('===');
|
|
157
158
|
export const or = Punctuator('||');
|
|
158
159
|
export const and = Punctuator('&&');
|
|
159
160
|
export const binaryOr = Punctuator('|');
|