Merge pull request #1918 from dolanmiu/feature/upgrade-code-cov

Fix eslint issues
This commit is contained in:
Dolan
2023-02-02 17:37:17 +00:00
committed by GitHub
2 changed files with 10 additions and 5 deletions

View File

@ -96,8 +96,8 @@ module.exports = {
"@typescript-eslint/explicit-function-return-type": [
"error",
{
allowExpressions: false,
allowTypedFunctionExpressions: false,
allowExpressions: true,
allowTypedFunctionExpressions: true,
allowHigherOrderFunctions: false,
allowDirectConstAssertionInArrowFunctions: true,
allowConciseArrowFunctionExpressionsStartingWithVoid: true,
@ -214,7 +214,6 @@ module.exports = {
"no-sequences": "error",
"no-shadow": "off",
"no-sparse-arrays": "error",
"no-template-curly-in-string": "error",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
@ -243,7 +242,6 @@ module.exports = {
"unicorn/prefer-ternary": "error",
"use-isnan": "error",
"valid-typeof": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"functional/immutable-data": [
"error",
{
@ -264,6 +262,7 @@ module.exports = {
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/dot-notation": "off",
"prefer-destructuring": "off",
"@typescript-eslint/explicit-function-return-type": "off",
},
},
],

View File

@ -1,4 +1,10 @@
const createLsdException = (name: string, uiPriority?: number, qFormat?: number, semiHidden?: number, unhideWhenUsed?: number) => {
const createLsdException = (
name: string,
uiPriority?: number,
qFormat?: number,
semiHidden?: number,
unhideWhenUsed?: number,
): readonly object[] => {
"use strict";
return [