From 89ec49c6c9c2af820bfa1de9702079612842fc53 Mon Sep 17 00:00:00 2001 From: pakaoraki Date: Thu, 18 Apr 2024 12:08:19 +0200 Subject: [PATCH] Linter: remove jsdoc plugin --- .eslintrc.yml | 1 - .github/workflows/linter.yml | 2 +- Makefile | 4 ++-- lint/eslintrc-gjs.yml | 15 --------------- 4 files changed, 3 insertions(+), 19 deletions(-) diff --git a/.eslintrc.yml b/.eslintrc.yml index 2ddac3c0..dea116a0 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -13,5 +13,4 @@ rules: #Override some of the upstream rules to match this codebase curly: - error - all - jsdoc/require-jsdoc: off prefer-template: off diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 06bae682..3aa21ce8 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -16,7 +16,7 @@ jobs: version: 1.0 - name: Install eslint run: | - npm install -g eslint eslint-plugin-jsdoc + npm install -g eslint - name: Run linter target run: | diff --git a/Makefile b/Makefile index 9bb564f8..c83f1739 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ translations: @./update-locale.sh lint: - eslint -c .eslintrc.yml --resolve-plugins-relative-to "$(shell npm root -g)" $(EXTENSION_DIR) + eslint -c .eslintrc.yml $(EXTENSION_DIR) lint-fix: - eslint -c .eslintrc.yml --resolve-plugins-relative-to "$(shell npm root -g)" --fix $(EXTENSION_DIR) + eslint -c .eslintrc.yml --fix $(EXTENSION_DIR) diff --git a/lint/eslintrc-gjs.yml b/lint/eslintrc-gjs.yml index 8a1cdb8a..2bdc1bd3 100644 --- a/lint/eslintrc-gjs.yml +++ b/lint/eslintrc-gjs.yml @@ -4,8 +4,6 @@ env: es2021: true extends: 'eslint:recommended' -plugins: - - jsdoc rules: array-bracket-newline: - error @@ -63,16 +61,6 @@ rules: - 'CallExpression[callee.object.name=GObject][callee.property.name=registerClass] > ClassExpression:first-child' # Allow dedenting chained member expressions MemberExpression: 'off' - jsdoc/check-alignment: error - jsdoc/check-param-names: error - jsdoc/check-tag-names: error - jsdoc/check-types: error - jsdoc/implements-on-classes: error - jsdoc/require-jsdoc: error - jsdoc/require-param: error - jsdoc/require-param-description: error - jsdoc/require-param-name: error - jsdoc/require-param-type: error key-spacing: - error - beforeColon: false @@ -243,9 +231,6 @@ rules: - inside yield-star-spacing: error yoda: error -settings: - jsdoc: - mode: typescript globals: ARGV: readonly Debugger: readonly