debian-image-builder-frontend/.eslintrc.yml
regexowl 0363ad7611 ESLint: Add no-console rule
This adds `no-console` rule to throw an error when using any of the `console` methods as those are used only for debugging purposes.
2023-03-27 11:51:56 +02:00

32 lines
643 B
YAML

extends: "@redhat-cloud-services/eslint-config-redhat-cloud-services"
globals:
insights: 'readonly'
shallow: readonly
render: 'readonly'
mount: 'readonly'
plugins:
- import
rules:
import/order:
- error
- groups:
- builtin
- external
- internal
- sibling
- parent
- index
alphabetize:
order: asc
caseInsensitive: true
newlines-between: always
pathGroups: # ensures the import of React is always on top
- pattern: react
group: builtin
position: before
pathGroupsExcludedImportTypes:
- react
prefer-const:
- error
- destructuring: any
no-console: 2