debian-image-builder-frontend/.eslintrc.yml
lucasgarfield c73824cd22 eslint: Disabled rulesdir/forbid-pf-relative-imports
Commit #3e84abba3f bumped
@redhat-cloud-services/eslint-config-redhat-cloud-services from 1.3.0 to
2.0.3.

This introduced a new rule that broke a number of our imports. This
commit forbids the rule for now.

(rulesdir/forbid-pf-relative-imports: off)
2023-10-11 18:03:58 +02:00

42 lines
906 B
YAML

extends: [
"@redhat-cloud-services/eslint-config-redhat-cloud-services",
"react-app",
"react-app/jest"
]
globals:
insights: 'readonly'
shallow: readonly
render: 'readonly'
mount: 'readonly'
plugins:
- import
rules:
rulesdir/forbid-pf-relative-imports: off
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
eqeqeq: error
overrides:
- files: "**/*.ts?(x)"
parser: "@typescript-eslint/parser"
extends: ".eslintrc-typescript.yml"