Remove unnecessary disabled rules
These rules are already disabled in the base config, so they don't need to be disabled individually anymore.
This commit is contained in:
@@ -95,11 +95,6 @@ module.exports = {
|
||||
],
|
||||
rules: {
|
||||
...baseConfig.rules,
|
||||
"filenames/match-regex": "off",
|
||||
"import/named": "off",
|
||||
"import/no-namespace": "off",
|
||||
"import/no-unresolved": "off",
|
||||
"no-unused-vars": "off",
|
||||
},
|
||||
settings: {
|
||||
react: {
|
||||
@@ -119,28 +114,6 @@ module.exports = {
|
||||
],
|
||||
rules: {
|
||||
...baseConfig.rules,
|
||||
"@typescript-eslint/no-explicit-any": "off",
|
||||
"@typescript-eslint/no-invalid-this": "off",
|
||||
"@typescript-eslint/no-shadow": "off",
|
||||
camelcase: "off",
|
||||
eqeqeq: "off",
|
||||
"filenames/match-regex": "off",
|
||||
"i18n-text/no-en": "off",
|
||||
"import/named": "off",
|
||||
"import/no-dynamic-require": "off",
|
||||
"import/no-dynamic-required": "off",
|
||||
"import/no-namespace": "off",
|
||||
"import/no-unresolved": "off",
|
||||
"jsx-a11y/anchor-is-valid": "off",
|
||||
"jsx-a11y/no-noninteractive-element-interactions": "off",
|
||||
"jsx-a11y/no-static-element-interactions": "off",
|
||||
"jsx-a11y/click-events-have-key-events": "off",
|
||||
"no-console": "off",
|
||||
"no-invalid-this": "off",
|
||||
"no-undef": "off",
|
||||
"no-unused-vars": "off",
|
||||
"no-shadow": "off",
|
||||
"github/array-foreach": "off",
|
||||
},
|
||||
settings: {
|
||||
react: {
|
||||
@@ -156,20 +129,6 @@ module.exports = {
|
||||
env: {
|
||||
jest: true,
|
||||
},
|
||||
rules: {
|
||||
...baseConfig.rules,
|
||||
"@typescript-eslint/no-explicit-any": "off",
|
||||
"@typescript-eslint/no-shadow": "off",
|
||||
camelcase: "off",
|
||||
"filenames/match-regex": "off",
|
||||
"i18n-text/no-en": "off",
|
||||
"import/no-namespace": "off",
|
||||
"import/no-unresolved": "off",
|
||||
"no-console": "off",
|
||||
"no-shadow": "off",
|
||||
"no-undef": "off",
|
||||
"github/array-foreach": "off",
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ["test/vscode-tests/**/*"],
|
||||
@@ -193,21 +152,6 @@ module.exports = {
|
||||
},
|
||||
},
|
||||
],
|
||||
"@typescript-eslint/no-explicit-any": "off",
|
||||
"@typescript-eslint/no-shadow": "off",
|
||||
"@typescript-eslint/no-invalid-this": "off",
|
||||
eqeqeq: "off",
|
||||
"filenames/match-regex": "off",
|
||||
"filenames/match-regexp": "off",
|
||||
"i18n-text/no-en": "off",
|
||||
"import/no-anonymous-default-export": "off",
|
||||
"import/no-dynamic-require": "off",
|
||||
"import/no-mutable-exports": "off",
|
||||
"import/no-namespace": "off",
|
||||
"import/no-unresolved": "off",
|
||||
"no-console": "off",
|
||||
"github/array-foreach": "off",
|
||||
"github/no-then": "off",
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
@@ -2,7 +2,6 @@ import { expect } from "@jest/globals";
|
||||
import type { MatcherFunction } from "expect";
|
||||
import { pathsEqual } from "../../src/pure/files";
|
||||
|
||||
// eslint-disable-next-line func-style -- We need to have access to this and specify the type of the function
|
||||
const toEqualPath: MatcherFunction<[expectedPath: unknown]> = function (
|
||||
actual,
|
||||
expectedPath,
|
||||
@@ -15,20 +14,16 @@ const toEqualPath: MatcherFunction<[expectedPath: unknown]> = function (
|
||||
if (pass) {
|
||||
return {
|
||||
message: () =>
|
||||
// eslint-disable-next-line @typescript-eslint/no-invalid-this
|
||||
`expected ${this.utils.printReceived(
|
||||
actual,
|
||||
// eslint-disable-next-line @typescript-eslint/no-invalid-this
|
||||
)} to equal path ${this.utils.printExpected(expectedPath)}`,
|
||||
pass: true,
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
message: () =>
|
||||
// eslint-disable-next-line @typescript-eslint/no-invalid-this
|
||||
`expected ${this.utils.printReceived(
|
||||
actual,
|
||||
// eslint-disable-next-line @typescript-eslint/no-invalid-this
|
||||
)} to equal path ${this.utils.printExpected(expectedPath)}`,
|
||||
pass: false,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user