1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-03 12:55:23 +02:00

chore(eslint): add rule to check imports [EE-6730] (#11201)

This commit is contained in:
Chaim Lev-Ari 2024-02-15 17:46:03 +02:00 committed by GitHub
parent 7b89b04667
commit 50946e087c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 48 additions and 4 deletions

View file

@ -10,6 +10,7 @@ globals:
extends:
- 'eslint:recommended'
- 'plugin:storybook/recommended'
- 'plugin:import/typescript'
- prettier
plugins:
@ -29,6 +30,7 @@ rules:
no-empty: warn
no-empty-function: warn
no-useless-escape: 'off'
import/named: error
import/order:
[
'error',
@ -51,6 +53,8 @@ settings:
- ['@@', './app/react/components']
- ['@', './app']
extensions: ['.js', '.ts', '.tsx']
typescript: true
node: true
overrides:
- files:
@ -75,6 +79,7 @@ overrides:
settings:
react:
version: 'detect'
rules:
import/order:
[