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:
@@ -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.
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user