Chore: Add eslint rule for empty files and tidy up (#102288)

* Add eslint rule for empty files

* Remove empty files
pull/102294/head
Tom Ratcliffe 3 months ago committed by GitHub
parent 74705bd5b3
commit f1470de478
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      eslint.config.js
  2. 0
      public/app/core/context/ModalsProvider.ts
  3. 0
      public/app/core/services/SidecarService.ts
  4. 0
      public/app/features/alerting/unified/components/rule-editor/GrafanaRuleInspector.tsx
  5. 0
      public/app/features/trails/Breakdown/panelConfigs.ts
  6. 0
      public/test/helpers/fieldConfig.ts

@ -73,6 +73,7 @@ module.exports = [
'jsx-a11y': jsxA11yPlugin, 'jsx-a11y': jsxA11yPlugin,
'no-barrel-files': barrelPlugin, 'no-barrel-files': barrelPlugin,
'@grafana': grafanaPlugin, '@grafana': grafanaPlugin,
unicorn: unicornPlugin,
}, },
settings: { settings: {
@ -129,6 +130,7 @@ module.exports = [
// Use typescript's no-redeclare for compatibility with overrides // Use typescript's no-redeclare for compatibility with overrides
'no-redeclare': 'off', 'no-redeclare': 'off',
'@typescript-eslint/no-redeclare': ['error'], '@typescript-eslint/no-redeclare': ['error'],
'unicorn/no-empty-file': 'error',
}, },
}, },
{ {

Loading…
Cancel
Save