Skip to content

Commit d7035c9

Browse files
committed
chore: lint
1 parent 0a09501 commit d7035c9

File tree

2 files changed

+5
-5
lines changed
  • packages
    • plugin-logical-expressions/lib/remove-duplicates
    • plugin-typescript/lib/remove-useless-types-from-constants

2 files changed

+5
-5
lines changed

packages/plugin-logical-expressions/lib/remove-duplicates/index.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
'use strict';
22

33
const {createTest} = require('@putout/test');
4-
const LogicalExpression = require('.');
4+
const removeDuplicates = require('.');
55

66
const test = createTest(__dirname, {
77
plugins: [
8-
['-logical-expression', LogicalExpression],
8+
['logical-expression/remove-duplicates', removeDuplicates],
99
],
1010
});
1111

packages/plugin-typescript/lib/remove-useless-types-from-constants/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const {
99
isBooleanLiteral,
1010
isIdentifier,
1111
isBigIntLiteral,
12-
TSAnyKeyword,
12+
tsAnyKeyword,
1313
isTSUnionType,
1414
tsNumberKeyword,
1515
tsNullKeyword,
@@ -53,7 +53,7 @@ function getType(node) {
5353
if (compare(node, 'Symbol()'))
5454
return tsSymbolKeyword();
5555

56-
return TSAnyKeyword;
56+
return tsAnyKeyword;
5757
}
5858

5959
const checkType = ({__a, __b}) => {
@@ -69,7 +69,7 @@ const checkType = ({__a, __b}) => {
6969
const isPrimitiveType = (node) => {
7070
const type = getType(node);
7171

72-
return type !== TSAnyKeyword;
72+
return type !== tsAnyKeyword;
7373
};
7474

7575
const removeType = ({__a}, path) => {

0 commit comments

Comments
 (0)