Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 26d71b5

Browse files
author
Josh Goldberg
authored
chore: enable restrict-plus-operands internally (typescript-eslint#3282)
1 parent dd20eb2 commit 26d71b5

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.eslintrc.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ module.exports = {
6767
'@typescript-eslint/no-unsafe-call': 'off',
6868
'@typescript-eslint/no-unsafe-member-access': 'off',
6969
'@typescript-eslint/no-unsafe-return': 'off',
70-
'@typescript-eslint/restrict-plus-operands': 'off',
7170
'@typescript-eslint/restrict-template-expressions': 'off',
7271
// TODO - enable this
7372
'@typescript-eslint/naming-convention': 'off',
@@ -188,6 +187,13 @@ module.exports = {
188187
'jest/no-deprecated-functions': 'error',
189188
},
190189
},
190+
// test utility scripts
191+
{
192+
files: ['tests/**/*.js'],
193+
rules: {
194+
'@typescript-eslint/restrict-plus-operands': 'off',
195+
},
196+
},
191197
// plugin source files
192198
{
193199
files: [

packages/typescript-estree/tests/ast-alignment/parse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable @typescript-eslint/no-explicit-any */
1+
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/restrict-plus-operands */
22

33
import type babelParser from '@babel/parser';
44
import { ParserPlugin } from '@babel/parser';

packages/typescript-estree/tests/ast-alignment/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// babel types are something we don't really care about
2-
/* eslint-disable @typescript-eslint/no-explicit-any */
2+
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/restrict-plus-operands */
33
import { AST_NODE_TYPES, TSESTree } from '../../src/ts-estree';
44
import { deeplyCopy, omitDeep } from '../../tools/test-utils';
55
import * as BabelTypes from '@babel/types';

0 commit comments

Comments
 (0)