Skip to content

Commit

Permalink
chore: enable restrict-plus-operands internally (#3282)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Goldberg committed Apr 13, 2021
1 parent dd20eb2 commit 26d71b5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .eslintrc.js
Expand Up @@ -67,7 +67,6 @@ module.exports = {
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
// TODO - enable this
'@typescript-eslint/naming-convention': 'off',
Expand Down Expand Up @@ -188,6 +187,13 @@ module.exports = {
'jest/no-deprecated-functions': 'error',
},
},
// test utility scripts
{
files: ['tests/**/*.js'],
rules: {
'@typescript-eslint/restrict-plus-operands': 'off',
},
},
// plugin source files
{
files: [
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-estree/tests/ast-alignment/parse.ts
@@ -1,4 +1,4 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/restrict-plus-operands */

import type babelParser from '@babel/parser';
import { ParserPlugin } from '@babel/parser';
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-estree/tests/ast-alignment/utils.ts
@@ -1,5 +1,5 @@
// babel types are something we don't really care about
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/restrict-plus-operands */
import { AST_NODE_TYPES, TSESTree } from '../../src/ts-estree';
import { deeplyCopy, omitDeep } from '../../tools/test-utils';
import * as BabelTypes from '@babel/types';
Expand Down

0 comments on commit 26d71b5

Please sign in to comment.