Add the deprecation plugin to the default linter setup, switched off.

This allows to disable deprecation warnings for `backstage-cli repo list-deprecations` with inline comments.

Signed-off-by: Axel Hecht <axel@pike.org>
This commit is contained in:
Axel Hecht
2024-03-06 15:19:10 +01:00
parent 02a79cbe4c
commit e3c213eccf
2 changed files with 9 additions and 1 deletions
+7
View File
@@ -0,0 +1,7 @@
---
'@backstage/cli': patch
---
Add the deprecation plugin to the default linter setup, switched off.
This allows to disable deprecation warnings for `backstage-cli repo list-deprecations` with inline comments.
+2 -1
View File
@@ -66,7 +66,7 @@ function createConfig(dir, extraConfig = {}) {
...(extraExtends ?? []),
],
parser: '@typescript-eslint/parser',
plugins: ['import', 'unused-imports', ...(plugins ?? [])],
plugins: ['import', 'unused-imports', 'deprecation', ...(plugins ?? [])],
env: {
jest: true,
...env,
@@ -84,6 +84,7 @@ function createConfig(dir, extraConfig = {}) {
...(ignorePatterns ?? []),
],
rules: {
'deprecation/deprecation': 'off',
'no-shadow': 'off',
'no-redeclare': 'off',
'@typescript-eslint/no-shadow': 'error',