Skip to content

Commit

Permalink
fix(eslint-plugin): use typings in @typescript-eslint/experimental-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
otofu-square committed Jun 17, 2019
1 parent 9908a89 commit 8443aa4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
@@ -1,5 +1,4 @@
import { TSESTree } from '@typescript-eslint/typescript-estree';
import { RuleFix } from 'ts-eslint';
import { TSESLint, TSESTree } from '@typescript-eslint/experimental-utils';
import * as util from '../util';

export default util.createRule({
Expand Down Expand Up @@ -39,7 +38,7 @@ export default util.createRule({
messageId: 'interfaceOverType',
fix(fixer) {
const typeNode = node.typeParameters || node.id;
const fixes: RuleFix[] = [];
const fixes: TSESLint.RuleFix[] = [];

const firstToken = sourceCode.getFirstToken(node);
if (firstToken) {
Expand Down Expand Up @@ -73,7 +72,7 @@ export default util.createRule({
messageId: 'typeOverInterface',
fix(fixer) {
const typeNode = node.typeParameters || node.id;
const fixes: RuleFix[] = [];
const fixes: TSESLint.RuleFix[] = [];

const firstToken = sourceCode.getFirstToken(node);
if (firstToken) {
Expand Down
2 changes: 1 addition & 1 deletion packages/experimental-utils/src/ts-eslint/Rule.ts
Expand Up @@ -62,7 +62,7 @@ interface RuleMetaData<TMessageIds extends string> {
/**
* The name of the rule this rule was replaced by, if it was deprecated.
*/
replacedBy?: string;
replacedBy?: string[];
/**
* The options schema. Supply an empty array if there are no options.
*/
Expand Down

0 comments on commit 8443aa4

Please sign in to comment.