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:
parent
7b89b04667
commit
50946e087c
6 changed files with 48 additions and 4 deletions
|
@ -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:
|
||||
[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue