Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reformat imports #146

Merged
merged 2 commits into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 34 additions & 23 deletions frontend/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
root: true
extends:
- 'eslint:recommended'
- 'plugin:@typescript-eslint/recommended'
- 'plugin:svelte/recommended'
- 'prettier'
- eslint:recommended
- plugin:@typescript-eslint/recommended
- plugin:svelte/recommended
- plugin:import/recommended
- plugin:import/typescript
- prettier
parser: '@typescript-eslint/parser'
plugins:
- '@typescript-eslint'
- import
parserOptions:
sourceType: 'module'
ecmaVersion: 2020
extraFileExtensions: ['.svelte']
settings:
import/parsers:
'@typescript-eslint/parser': ['.ts']
import/resolver:
typescript:
alwaysTryTypes: true
project: true
env:
browser: true
es2017: true
Expand All @@ -20,22 +30,23 @@ overrides:
parser: 'svelte-eslint-parser'
parserOptions:
parser: '@typescript-eslint/parser'
#rules:
# indent:
# - error
# - 4
# linebreak-style:
# - error
# - unix
# quotes:
# - error
# - single
# semi:
# - error
# - always
# no-unused-vars:
# - error
# - varsIgnorePattern: '^_'
# argsIgnorePattern: '^_'
# no-trailing-spaces:
# - error
rules:
import/no-unresolved: off # Cannot handle $app correctly
'@typescript-eslint/consistent-type-imports': error
'@typescript-eslint/no-import-type-side-effects': error
'import/order':
- error
- newlines-between: always
alphabetize:
order: asc
orderImportKind: asc
caseInsensitive: false
groups:
- builtin
- external
- internal
- unknown # $app
- parent
- sibling
- index
- object
Loading