Skip to content

Commit a3c6b36

Browse files
committed
Remove unnecessary disabled rules
These rules are already disabled in the base config, so they don't need to be disabled individually anymore.
1 parent 5f382a5 commit a3c6b36

File tree

2 files changed

+0
-61
lines changed

2 files changed

+0
-61
lines changed

extensions/ql-vscode/.eslintrc.js

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,6 @@ module.exports = {
9595
],
9696
rules: {
9797
...baseConfig.rules,
98-
"filenames/match-regex": "off",
99-
"import/named": "off",
100-
"import/no-namespace": "off",
101-
"import/no-unresolved": "off",
102-
"no-unused-vars": "off",
10398
},
10499
settings: {
105100
react: {
@@ -119,28 +114,6 @@ module.exports = {
119114
],
120115
rules: {
121116
...baseConfig.rules,
122-
"@typescript-eslint/no-explicit-any": "off",
123-
"@typescript-eslint/no-invalid-this": "off",
124-
"@typescript-eslint/no-shadow": "off",
125-
camelcase: "off",
126-
eqeqeq: "off",
127-
"filenames/match-regex": "off",
128-
"i18n-text/no-en": "off",
129-
"import/named": "off",
130-
"import/no-dynamic-require": "off",
131-
"import/no-dynamic-required": "off",
132-
"import/no-namespace": "off",
133-
"import/no-unresolved": "off",
134-
"jsx-a11y/anchor-is-valid": "off",
135-
"jsx-a11y/no-noninteractive-element-interactions": "off",
136-
"jsx-a11y/no-static-element-interactions": "off",
137-
"jsx-a11y/click-events-have-key-events": "off",
138-
"no-console": "off",
139-
"no-invalid-this": "off",
140-
"no-undef": "off",
141-
"no-unused-vars": "off",
142-
"no-shadow": "off",
143-
"github/array-foreach": "off",
144117
},
145118
settings: {
146119
react: {
@@ -156,20 +129,6 @@ module.exports = {
156129
env: {
157130
jest: true,
158131
},
159-
rules: {
160-
...baseConfig.rules,
161-
"@typescript-eslint/no-explicit-any": "off",
162-
"@typescript-eslint/no-shadow": "off",
163-
camelcase: "off",
164-
"filenames/match-regex": "off",
165-
"i18n-text/no-en": "off",
166-
"import/no-namespace": "off",
167-
"import/no-unresolved": "off",
168-
"no-console": "off",
169-
"no-shadow": "off",
170-
"no-undef": "off",
171-
"github/array-foreach": "off",
172-
},
173132
},
174133
{
175134
files: ["test/vscode-tests/**/*"],
@@ -193,21 +152,6 @@ module.exports = {
193152
},
194153
},
195154
],
196-
"@typescript-eslint/no-explicit-any": "off",
197-
"@typescript-eslint/no-shadow": "off",
198-
"@typescript-eslint/no-invalid-this": "off",
199-
eqeqeq: "off",
200-
"filenames/match-regex": "off",
201-
"filenames/match-regexp": "off",
202-
"i18n-text/no-en": "off",
203-
"import/no-anonymous-default-export": "off",
204-
"import/no-dynamic-require": "off",
205-
"import/no-mutable-exports": "off",
206-
"import/no-namespace": "off",
207-
"import/no-unresolved": "off",
208-
"no-console": "off",
209-
"github/array-foreach": "off",
210-
"github/no-then": "off",
211155
},
212156
},
213157
{

extensions/ql-vscode/test/matchers/toEqualPath.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { expect } from "@jest/globals";
22
import type { MatcherFunction } from "expect";
33
import { pathsEqual } from "../../src/pure/files";
44

5-
// eslint-disable-next-line func-style -- We need to have access to this and specify the type of the function
65
const toEqualPath: MatcherFunction<[expectedPath: unknown]> = function (
76
actual,
87
expectedPath,
@@ -15,20 +14,16 @@ const toEqualPath: MatcherFunction<[expectedPath: unknown]> = function (
1514
if (pass) {
1615
return {
1716
message: () =>
18-
// eslint-disable-next-line @typescript-eslint/no-invalid-this
1917
`expected ${this.utils.printReceived(
2018
actual,
21-
// eslint-disable-next-line @typescript-eslint/no-invalid-this
2219
)} to equal path ${this.utils.printExpected(expectedPath)}`,
2320
pass: true,
2421
};
2522
} else {
2623
return {
2724
message: () =>
28-
// eslint-disable-next-line @typescript-eslint/no-invalid-this
2925
`expected ${this.utils.printReceived(
3026
actual,
31-
// eslint-disable-next-line @typescript-eslint/no-invalid-this
3227
)} to equal path ${this.utils.printExpected(expectedPath)}`,
3328
pass: false,
3429
};

0 commit comments

Comments
 (0)