Enable eslint import/order plugin

This commit is contained in:
Mattias Granlund 2024-01-29 09:42:14 +01:00
parent 45c84564d4
commit 80b48778f8
2 changed files with 15 additions and 0 deletions

View File

@ -32,6 +32,20 @@ module.exports = {
},
rules: {
'import/no-cycle': 'error',
'import/order': [
'error',
{
alphabetize: { order: 'asc', orderImportKind: 'asc', caseInsensitive: false },
groups: ['index', 'sibling', 'parent', 'internal', 'external', 'builtin', 'object', 'type'],
'newlines-between': 'never'
}
],
'import/no-unresolved': [
'error',
{
ignore: ['^\\$app', '^\\$env']
}
],
'svelte/no-at-html-tags': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-empty-function': 'off',

View File

@ -13,6 +13,7 @@
"check:watch": "pnpm check --watch",
"lint": "prettier --no-editorconfig --check . && eslint .",
"format": "prettier --no-editorconfig --write .",
"fix": "eslint --fix .",
"tauri": "tauri",
"prepare": "svelte-kit sync"
},