From 1c9d9942b3731eb7a7a432280a1644043ec5417f Mon Sep 17 00:00:00 2001 From: David Mehren Date: Wed, 6 Jan 2021 23:37:05 +0100 Subject: [PATCH] Cleanup ESLint config The name of the plugin and the recommended config changed at some point, so we adapt to that Signed-off-by: David Mehren --- .eslintrc.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 590ba7bb7..952996713 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,16 +1,16 @@ /* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file) -* -* SPDX-License-Identifier: CC0-1.0 -*/ + * + * SPDX-License-Identifier: CC0-1.0 + */ module.exports = { parser: '@typescript-eslint/parser', parserOptions: { project: 'tsconfig.json', sourceType: 'module', }, - plugins: ['@typescript-eslint/eslint-plugin'], + plugins: ['@typescript-eslint'], extends: [ - 'plugin:@typescript-eslint/eslint-recommended', + 'eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier', 'prettier/@typescript-eslint', @@ -24,7 +24,10 @@ module.exports = { '@typescript-eslint/interface-name-prefix': 'off', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/no-explicit-any': 'off', - '@typescript-eslint/no-unused-vars': ['warn', { "argsIgnorePattern": "^_+$" }], + '@typescript-eslint/no-unused-vars': [ + 'warn', + { argsIgnorePattern: '^_+$' }, + ], '@typescript-eslint/explicit-module-boundary-types': 'off', }, };