diff --git a/.eslintrc.js b/.eslintrc.js index d25922b741..e537d1fd45 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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", }, }, ], diff --git a/src/file/styles/sample/default-style.ts b/src/file/styles/sample/default-style.ts index 4796968a7c..a53693ab25 100644 --- a/src/file/styles/sample/default-style.ts +++ b/src/file/styles/sample/default-style.ts @@ -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 [