Fix eslint issues

This commit is contained in:
Dolan Miu
2023-02-02 16:59:37 +00:00
parent bc0a197ba1
commit fcba817a4a
2 changed files with 4 additions and 5 deletions

View File

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

View File

@ -1,4 +1,4 @@
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"; "use strict";
return [ return [