From 2ac686f29dc8d66d43ed3d5a25bc4cc18e099d43 Mon Sep 17 00:00:00 2001 From: Lena Morita Date: Mon, 4 Oct 2021 15:33:29 +0900 Subject: [PATCH] Tweak eslintrc for better typescript support --- .eslintrc.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 3f109a34f..9b7040381 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -30,6 +30,8 @@ module.exports = { }, ignorePatterns: [ 'build/', 'build-*/', 'node_modules/', '*.d.ts' ], rules: { + 'jsdoc/check-line-alignment': 'off', + 'jsdoc/require-property-description': 'off', '@wordpress/dependency-group': 'error', '@wordpress/react-no-unsafe-timeout': 'error', 'no-restricted-syntax': [ @@ -140,4 +142,9 @@ module.exports = { ], }, ], + settings: { + jsdoc: { + mode: 'typescript', + }, + }, };